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
7
7
MICROPY_SSL_AXTLS = 1
8
8
MICROPY_PY_BTREE = 1
9
9
10
+ FROZEN_DIR = scripts
11
+ FROZEN_MPY_DIR = modules
12
+
10
13
# include py core make definitions
11
14
include ../py/py.mk
12
15
13
16
MPY_CROSS = ../mpy-cross/mpy-cross
14
17
MPY_TOOL = ../tools/mpy-tool.py
15
18
16
- FROZEN_DIR = scripts
17
- FROZEN_MPY_DIR = modules
18
19
PORT ?= /dev/ttyACM0
19
20
BAUD ?= 115200
20
21
FLASH_MODE ?= qio
@@ -90,7 +91,6 @@ SRC_C = \
90
91
modmachine.c \
91
92
modonewire.c \
92
93
ets_alt_task.c \
93
- $(BUILD ) /frozen.c \
94
94
fatfs_port.c \
95
95
axtls_helpers.c \
96
96
hspi.c \
Original file line number Diff line number Diff line change @@ -237,6 +237,10 @@ PY_O_BASENAME = \
237
237
# prepend the build destination prefix to the py object files
238
238
PY_O = $(addprefix $(PY_BUILD ) /, $(PY_O_BASENAME ) )
239
239
240
+ ifneq ($(FROZEN_DIR ) ,)
241
+ PY_O += $(BUILD ) /$(BUILD ) /frozen.o
242
+ endif
243
+
240
244
# Sources that may contain qstrings
241
245
SRC_QSTR_IGNORE = nlr% emitnx% emitnthumb% emitnarm%
242
246
SRC_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 \
41
41
lib/utils/interrupt_char.c \
42
42
lib/utils/pyhelp.c \
43
43
lib/mp-readline/readline.c \
44
- $(BUILD ) /frozen.c \
45
44
$(SRC_MOD )
46
45
47
46
# List of sources for qstr extraction
You can’t perform that action at this time.
0 commit comments