zephyr: Enable frozen modules support.
This commit is contained in:
parent
b3a65791b1
commit
7e3b21ec54
@ -15,6 +15,8 @@ BOARD ?= qemu_x86
|
|||||||
# Zephyr 1.6.0
|
# Zephyr 1.6.0
|
||||||
OUTDIR_PREFIX = $(BOARD)
|
OUTDIR_PREFIX = $(BOARD)
|
||||||
|
|
||||||
|
FROZEN_DIR = scripts
|
||||||
|
|
||||||
# Zephyr (generated) config files - must be defined before include below
|
# Zephyr (generated) config files - must be defined before include below
|
||||||
Z_SYSGEN_H = outdir/$(OUTDIR_PREFIX)/misc/generated/sysgen/sysgen.h
|
Z_SYSGEN_H = outdir/$(OUTDIR_PREFIX)/misc/generated/sysgen/sysgen.h
|
||||||
Z_EXPORTS = outdir/$(OUTDIR_PREFIX)/Makefile.export
|
Z_EXPORTS = outdir/$(OUTDIR_PREFIX)/Makefile.export
|
||||||
@ -36,6 +38,7 @@ SRC_C = main.c \
|
|||||||
lib/utils/printf.c \
|
lib/utils/printf.c \
|
||||||
lib/utils/pyexec.c \
|
lib/utils/pyexec.c \
|
||||||
lib/mp-readline/readline.c \
|
lib/mp-readline/readline.c \
|
||||||
|
$(BUILD)/frozen.c \
|
||||||
$(SRC_MOD)
|
$(SRC_MOD)
|
||||||
|
|
||||||
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
|
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#define MICROPY_PY_BUILTINS_COMPLEX (0)
|
#define MICROPY_PY_BUILTINS_COMPLEX (0)
|
||||||
#define MICROPY_HW_BOARD_NAME "zephyr-generic"
|
#define MICROPY_HW_BOARD_NAME "zephyr-generic"
|
||||||
#define MICROPY_HW_MCU_NAME "unknown-cpu"
|
#define MICROPY_HW_MCU_NAME "unknown-cpu"
|
||||||
|
#define MICROPY_MODULE_FROZEN_STR (1)
|
||||||
|
|
||||||
typedef int mp_int_t; // must be pointer size
|
typedef int mp_int_t; // must be pointer size
|
||||||
typedef unsigned mp_uint_t; // must be pointer size
|
typedef unsigned mp_uint_t; // must be pointer size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user