summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-21 01:27:17 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-21 01:27:17 +0300
commit3967ca7390ff8257728ef6237b93977b63bde41d (patch)
treed4ad3b1eb6d7fe2110dad27743265184f5f74646 /stmhal
parentb440307b4a15a540413a7a9f699d388c7428a63c (diff)
downloadmicropython-3967ca7390ff8257728ef6237b93977b63bde41d.tar.gz
micropython-3967ca7390ff8257728ef6237b93977b63bde41d.zip
stmhal/Makefile: Use standard rules for frozen module generation.
As defined in py/py.mk.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 06be7acc89..e2e1dc6a15 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -274,15 +274,9 @@ $(PY_BUILD)/mpprint.o: COPT += -Os
all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
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
-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
ifneq ($(FROZEN_MPY_DIR),)