Skip to content

Commit 3967ca7

Browse files
committed
stmhal/Makefile: Use standard rules for frozen module generation.
As defined in py/py.mk.
1 parent b440307 commit 3967ca7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

stmhal/Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,9 @@ $(PY_BUILD)/mpprint.o: COPT += -Os
274274
all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
275275

276276
ifneq ($(FROZEN_DIR),)
277+
# To use frozen source modules, put your .py files in a subdirectory (eg scripts/)
278+
# and then invoke make with FROZEN_DIR=scripts (be sure to build from scratch).
277279
CFLAGS += -DMICROPY_MODULE_FROZEN_STR
278-
OBJ += $(BUILD)/frozen-files.o
279-
280-
$(BUILD)/frozen-files.o: $(BUILD)/frozen-files.c
281-
$(call compile_c)
282-
283-
$(BUILD)/frozen-files.c: $(shell find $(FROZEN_DIR) -type f)
284-
@$(ECHO) "Creating $@"
285-
$(Q)$(PYTHON) $(MAKE_FROZEN) $(FROZEN_DIR) > $@
286280
endif
287281

288282
ifneq ($(FROZEN_MPY_DIR),)

0 commit comments

Comments
 (0)