Skip to content

Commit a9621f1

Browse files
committed
py/mpconfig: Add make show-config to output build config.
1 parent 8baf05a commit a9621f1

File tree

2 files changed

+405
-0
lines changed

2 files changed

+405
-0
lines changed

py/mkrules.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ $(HEADER_BUILD)/compressed.collected: $(HEADER_BUILD)/compressed.split
123123
$(ECHO) "GEN $@"
124124
$(Q)$(PYTHON) $(PY_SRC)/makeqstrdefs.py cat compress _ $(HEADER_BUILD)/compress $@
125125

126+
$(HEADER_BUILD)/mpconfig.cfg: $(SRC_QSTR) $(QSTR_GLOBAL_DEPENDENCIES) $(HEADER_BUILD)/moduledefs.h $(GEN_PINS_HDR) | $(QSTR_GLOBAL_REQUIREMENTS)
127+
$(ECHO) "GEN $@"
128+
$(Q)$(PYTHON) $(PY_SRC)/mpconfig.py mpy $(TOP) debug $(DEBUG) pp $(CPP) output $(HEADER_BUILD)/mpconfig.cfg cflags $(QSTR_GEN_CFLAGS) cxxflags $(QSTR_GEN_CXXFLAGS) sources $^
129+
130+
126131
# $(sort $(var)) removes duplicates
127132
#
128133
# The net effect of this, is it causes the objects to depend on the
@@ -221,4 +226,8 @@ print-def:
221226
@$(CC) -E -Wp,-dM __empty__.c
222227
@$(RM) -f __empty__.c
223228

229+
show-config: $(HEADER_BUILD)/mpconfig.cfg
230+
@echo "Build configuration recorded in: $(HEADER_BUILD)/mpconfig.cfg"
231+
.PHONY: show-config
232+
224233
-include $(OBJ:.o=.P)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy