mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tools: Add mechanism to provide a manifest of frozen files.
This introduces a new build variable FROZEN_MANIFEST which can be set to a manifest listing (written in Python) that describes the set of files to be frozen in to the firmware.
This commit is contained in:
5
py/py.mk
5
py/py.mk
@@ -202,6 +202,11 @@ PY_EXTMOD_O = $(addprefix $(BUILD)/, $(PY_EXTMOD_O_BASENAME))
|
||||
# this is a convenience variable for ports that want core, extmod and frozen code
|
||||
PY_O = $(PY_CORE_O) $(PY_EXTMOD_O)
|
||||
|
||||
# object file for frozen code specified via a manifest
|
||||
ifneq ($(FROZEN_MANIFEST),)
|
||||
PY_O += $(BUILD)/$(BUILD)/frozen_content.o
|
||||
endif
|
||||
|
||||
# object file for frozen files
|
||||
ifneq ($(FROZEN_DIR),)
|
||||
PY_O += $(BUILD)/$(BUILD)/frozen.o
|
||||
|
||||
Reference in New Issue
Block a user