aboutsummaryrefslogtreecommitdiff
path: root/ports/esp8266/Makefile
diff options
context:
space:
mode:
authorJim Mussared2019-10-19 00:39:04 +1100
committerDamien George2019-10-21 23:21:14 +1100
commitdf7f632fd7003824500ec6c05f4395f667667d54 (patch)
tree21c89740589e2e32f95b0bc4b3e584ce4646149d /ports/esp8266/Makefile
parent7662501d5b7c93fad6466b972d9912ee4fcc7660 (diff)
esp8266: Allow building without a manifest.
Diffstat (limited to 'ports/esp8266/Makefile')
-rw-r--r--ports/esp8266/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile
index c4ffd4f81..f1b718c78 100644
--- a/ports/esp8266/Makefile
+++ b/ports/esp8266/Makefile
@@ -189,6 +189,15 @@ $(BUILD)/uart.o: $(CONFVARS_FILE)
FROZEN_EXTRA_DEPS = $(CONFVARS_FILE)
+ifneq ($(FROZEN_MANIFEST)$(FROZEN_MPY_DIR),)
+CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
+CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
+endif
+
+ifneq ($(FROZEN_MANIFEST)$(FROZEN_DIR),)
+CFLAGS += -DMICROPY_MODULE_FROZEN_STR
+endif
+
.PHONY: deploy
deploy: $(BUILD)/firmware-combined.bin