Skip to content

Commit 7869706

Browse files
committed
force FROZEN_MANIFEST build; add back make print-%
1 parent ca7be16 commit 7869706

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

py/mkrules.mk

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ GIT_SUBMODULES += lib/micropython-lib
185185
endif
186186

187187
# to build frozen_content.c from a manifest
188-
$(BUILD)/frozen_content.c: FORCE $(BUILD)/genhdr/qstrdefs.generated.h $(BUILD)/genhdr/root_pointers.h | $(MICROPY_MPYCROSS_DEPENDENCY)
188+
# CIRCUITPY: FROZEN_MANIFEST is constructed at build time
189+
$(BUILD)/frozen_content.c: FORCE $(BUILD)/genhdr/qstrdefs.generated.h $(BUILD)/genhdr/root_pointers.h $(FROZEN_MANIFEST) | $(MICROPY_MPYCROSS_DEPENDENCY)
189190
$(Q)test -e "$(MPY_LIB_DIR)/README.md" || (echo -e $(HELP_MPY_LIB_SUBMODULE); false)
190191
$(Q)$(MAKE_MANIFEST) -o $@ -v "MPY_DIR=$(TOP)" -v "MPY_LIB_DIR=$(MPY_LIB_DIR)" -v "PORT_DIR=$(shell pwd)" -v "BOARD_DIR=$(BOARD_DIR)" -b "$(BUILD)" $(if $(MPY_CROSS_FLAGS),-f"$(MPY_CROSS_FLAGS)",) --mpy-tool-flags="$(MPY_TOOL_FLAGS)" $(FROZEN_MANIFEST)
191192
endif
@@ -256,3 +257,9 @@ print-def:
256257
@$(RM) -f __empty__.c
257258

258259
-include $(OBJ:.o=.P)
260+
261+
# CIRCUITPY addition
262+
# Print out the value of a make variable.
263+
# https://stackoverflow.com/questions/16467718/how-to-print-out-a-variable-in-makefile
264+
print-%:
265+
@echo $* = $($*)

0 commit comments

Comments
 (0)