File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,15 @@ MICROPY_PY_USSL = 1
77MICROPY_SSL_AXTLS = 1
88MICROPY_PY_BTREE = 1
99
10+ FROZEN_DIR = scripts
11+ FROZEN_MPY_DIR = modules
12+
1013# include py core make definitions
1114include ../py/py.mk
1215
1316MPY_CROSS = ../mpy-cross/mpy-cross
1417MPY_TOOL = ../tools/mpy-tool.py
1518
16- FROZEN_DIR = scripts
17- FROZEN_MPY_DIR = modules
1819PORT ?= /dev/ttyACM0
1920BAUD ?= 115200
2021FLASH_MODE ?= qio
@@ -90,7 +91,6 @@ SRC_C = \
9091 modmachine.c \
9192 modonewire.c \
9293 ets_alt_task.c \
93- $(BUILD ) /frozen.c \
9494 fatfs_port.c \
9595 axtls_helpers.c \
9696 hspi.c \
Original file line number Diff line number Diff line change @@ -237,6 +237,10 @@ PY_O_BASENAME = \
237237# prepend the build destination prefix to the py object files
238238PY_O = $(addprefix $(PY_BUILD ) /, $(PY_O_BASENAME ) )
239239
240+ ifneq ($(FROZEN_DIR ) ,)
241+ PY_O += $(BUILD ) /$(BUILD ) /frozen.o
242+ endif
243+
240244# Sources that may contain qstrings
241245SRC_QSTR_IGNORE = nlr% emitnx% emitnthumb% emitnarm%
242246SRC_QSTR = $(SRC_MOD ) $(addprefix py/,$(filter-out $(SRC_QSTR_IGNORE ) ,$(PY_O_BASENAME:.o=.c ) ) emitnative.c)
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ SRC_C = main.c \
4141 lib/utils/interrupt_char.c \
4242 lib/utils/pyhelp.c \
4343 lib/mp-readline/readline.c \
44- $(BUILD ) /frozen.c \
4544 $(SRC_MOD )
4645
4746# List of sources for qstr extraction
You can’t perform that action at this time.
0 commit comments