summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorJan Čapek <jan.capek@braiins.cz>2016-03-16 07:47:40 +0000
committerDamien George <damien.p.george@gmail.com>2016-04-16 13:19:23 +0100
commit000eae121ccbbba2e2e4c7474c0b845ff0bd4ef7 (patch)
treecdce0e2526a2be5072aed8ab4508255c54a68712 /py
parent9a627e8881c1b5d8fad9f1a563b5af23716e1b55 (diff)
downloadmicropython-000eae121ccbbba2e2e4c7474c0b845ff0bd4ef7.tar.gz
micropython-000eae121ccbbba2e2e4c7474c0b845ff0bd4ef7.zip
py/py.mk: Add makefile variable for qstr autogeneration control.
- any architecture may explicitely build with qstring make QSTR_AUTOGEN_DISABLE=1 autogeneration disabled and provide its own list of qstrings by the standard mechanisms (qstrdefsport.h).
Diffstat (limited to 'py')
-rw-r--r--py/py.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/py.mk b/py/py.mk
index 1854461744..c6360599f6 100644
--- a/py/py.mk
+++ b/py/py.mk
@@ -7,8 +7,11 @@ HEADER_BUILD = $(BUILD)/genhdr
# file containing qstr defs for the core Python bit
PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
-# All collected qstr defs
+# If qstr autogeneration is not disabled we specify the output header
+# for all collected qstrings.
+ifneq ($(QSTR_AUTOGEN_DISABLE),1)
QSTR_DEFS_COLLECTED = $(HEADER_BUILD)/qstrdefs.collected.h
+endif
# some code is performance bottleneck and compiled with other optimization options
CSUPEROPT = -O3