aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-08-16 06:51:35 +1000
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2020-08-29 14:30:02 -0700
commit167daa9cf8c6376a1c9b92ae7dfaa8bdac21f62a (patch)
tree399620f59eb6e46f381ee49b94d199c9bf2bb741 /tmk_core
parentd00ac5dfb6388957d51f2666d8bd223bd3529151 (diff)
downloadfirmware-167daa9cf8c6376a1c9b92ae7dfaa8bdac21f62a.tar.gz
firmware-167daa9cf8c6376a1c9b92ae7dfaa8bdac21f62a.tar.bz2
firmware-167daa9cf8c6376a1c9b92ae7dfaa8bdac21f62a.zip
Add ability to dump all makefile variables for the specified target. (#8256)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/rules.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 9bb341ecb..a7053d185 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -396,6 +396,12 @@ show_path:
@echo SRC=$(SRC)
@echo OBJ=$(OBJ)
+dump_vars: ERROR_IF_EMPTY=""
+dump_vars: ERROR_IF_NONBOOL=""
+dump_vars: ERROR_IF_UNSET=""
+dump_vars:
+ @$(foreach V,$(sort $(.VARIABLES)),$(if $(filter-out environment% default automatic,$(origin $V)),$(info $V=$($V))))
+
objs-size:
for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE)
@@ -436,7 +442,7 @@ $(eval $(foreach OUTPUT,$(OUTPUTS),$(shell mkdir -p $(OUTPUT) 2>/dev/null)))
# Listing of phony targets.
-.PHONY : all finish sizebefore sizeafter qmkversion \
+.PHONY : all dump_vars finish sizebefore sizeafter qmkversion \
gccversion build elf hex eep lss sym coff extcoff \
clean clean_list debug gdb-config show_path \
program teensy dfu dfu-ee dfu-start \