Skip to content

Commit 285793a

Browse files
committed
py/mpconfig: Add make show-config to output build config.
1 parent 45ab801 commit 285793a

File tree

2 files changed

+406
-0
lines changed

2 files changed

+406
-0
lines changed

py/mkrules.mk

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

149+
$(HEADER_BUILD)/mpconfig.cfg: $(SRC_QSTR) $(QSTR_GLOBAL_DEPENDENCIES) $(HEADER_BUILD)/moduledefs.h $(GEN_PINS_HDR) | $(QSTR_GLOBAL_REQUIREMENTS)
150+
$(ECHO) "GEN $@"
151+
$(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 $^
152+
153+
149154
# $(sort $(var)) removes duplicates
150155
#
151156
# The net effect of this, is it causes the objects to depend on the
@@ -244,4 +249,8 @@ print-def:
244249
@$(CC) -E -Wp,-dM __empty__.c
245250
@$(RM) -f __empty__.c
246251

252+
show-config: $(HEADER_BUILD)/mpconfig.cfg
253+
@echo "Build configuration recorded in: $(HEADER_BUILD)/mpconfig.cfg"
254+
.PHONY: show-config
255+
247256
-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