Skip to content
Snippets Groups Projects
Commit 3967ca73 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

stmhal/Makefile: Use standard rules for frozen module generation.

As defined in py/py.mk.
parent b440307b
Branches
No related tags found
No related merge requests found
...@@ -274,15 +274,9 @@ $(PY_BUILD)/mpprint.o: COPT += -Os ...@@ -274,15 +274,9 @@ $(PY_BUILD)/mpprint.o: COPT += -Os
all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
ifneq ($(FROZEN_DIR),) ifneq ($(FROZEN_DIR),)
# To use frozen source modules, put your .py files in a subdirectory (eg scripts/)
# and then invoke make with FROZEN_DIR=scripts (be sure to build from scratch).
CFLAGS += -DMICROPY_MODULE_FROZEN_STR CFLAGS += -DMICROPY_MODULE_FROZEN_STR
OBJ += $(BUILD)/frozen-files.o
$(BUILD)/frozen-files.o: $(BUILD)/frozen-files.c
$(call compile_c)
$(BUILD)/frozen-files.c: $(shell find $(FROZEN_DIR) -type f)
@$(ECHO) "Creating $@"
$(Q)$(PYTHON) $(MAKE_FROZEN) $(FROZEN_DIR) > $@
endif endif
ifneq ($(FROZEN_MPY_DIR),) ifneq ($(FROZEN_MPY_DIR),)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment