diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-09-17 21:15:58 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-10 21:40:08 +0300 |
commit | 7e3b21ec54643281ec71ab192724684f2918067b (patch) | |
tree | 0938d5a9433a453c89fe7c565ea66bd7c21f649c | |
parent | b3a65791b16dcc41281649a0a5faac4e8c00c8e3 (diff) | |
download | micropython-7e3b21ec54643281ec71ab192724684f2918067b.tar.gz micropython-7e3b21ec54643281ec71ab192724684f2918067b.zip |
zephyr: Enable frozen modules support.
-rw-r--r-- | zephyr/Makefile | 3 | ||||
-rw-r--r-- | zephyr/mpconfigport.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/Makefile b/zephyr/Makefile index d0dce488db..501fb0a310 100644 --- a/zephyr/Makefile +++ b/zephyr/Makefile @@ -15,6 +15,8 @@ BOARD ?= qemu_x86 # Zephyr 1.6.0 OUTDIR_PREFIX = $(BOARD) +FROZEN_DIR = scripts + # Zephyr (generated) config files - must be defined before include below Z_SYSGEN_H = outdir/$(OUTDIR_PREFIX)/misc/generated/sysgen/sysgen.h Z_EXPORTS = outdir/$(OUTDIR_PREFIX)/Makefile.export @@ -36,6 +38,7 @@ SRC_C = main.c \ lib/utils/printf.c \ lib/utils/pyexec.c \ lib/mp-readline/readline.c \ + $(BUILD)/frozen.c \ $(SRC_MOD) OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) diff --git a/zephyr/mpconfigport.h b/zephyr/mpconfigport.h index f125ab3993..5d021b6aa2 100644 --- a/zephyr/mpconfigport.h +++ b/zephyr/mpconfigport.h @@ -32,6 +32,7 @@ #define MICROPY_PY_BUILTINS_COMPLEX (0) #define MICROPY_HW_BOARD_NAME "zephyr-generic" #define MICROPY_HW_MCU_NAME "unknown-cpu" +#define MICROPY_MODULE_FROZEN_STR (1) typedef int mp_int_t; // must be pointer size typedef unsigned mp_uint_t; // must be pointer size |