diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-21 01:08:43 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-21 01:08:43 +0300 |
commit | b440307b4a15a540413a7a9f699d388c7428a63c (patch) | |
tree | cb63d67fd8b5e386d0cb74464768723b9d158e13 /py | |
parent | 3f251efb9bb22fe45ef5392b8ed9d6f9148415e7 (diff) | |
download | micropython-b440307b4a15a540413a7a9f699d388c7428a63c.tar.gz micropython-b440307b4a15a540413a7a9f699d388c7428a63c.zip |
py/py.mk: Automatically add frozen.c to source list if FROZEN_DIR is defined.
Now frozen modules generation handled fully by py.mk and available for reuse
by any port.
Diffstat (limited to 'py')
-rw-r--r-- | py/py.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -237,6 +237,10 @@ PY_O_BASENAME = \ # prepend the build destination prefix to the py object files PY_O = $(addprefix $(PY_BUILD)/, $(PY_O_BASENAME)) +ifneq ($(FROZEN_DIR),) +PY_O += $(BUILD)/$(BUILD)/frozen.o +endif + # Sources that may contain qstrings SRC_QSTR_IGNORE = nlr% emitnx% emitnthumb% emitnarm% SRC_QSTR = $(SRC_MOD) $(addprefix py/,$(filter-out $(SRC_QSTR_IGNORE),$(PY_O_BASENAME:.o=.c)) emitnative.c) |