py/mkrules.mk: Automatically configure frozen options when manifest set.

Following how mkrules.cmake works.  This makes it easy for a port to enable
frozen code, by defining FROZEN_MANIFEST in its Makefile.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-06-06 14:24:41 +10:00
parent 30100e9b3d
commit f01d5fb657
12 changed files with 6 additions and 56 deletions

View File

@@ -200,12 +200,6 @@ $(BUILD)/uart.o: $(CONFVARS_FILE)
FROZEN_EXTRA_DEPS = $(CONFVARS_FILE)
ifneq ($(FROZEN_MANIFEST),)
CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
CFLAGS += -DMICROPY_MODULE_FROZEN_STR
endif
.PHONY: deploy
deploy: $(BUILD)/firmware-combined.bin