From bd29ac614d1b7154cc9ddb3b0738916666f4e932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Tue, 8 May 2018 18:10:04 +0200 Subject: [PATCH] makefiles/info.inc.mk: add a info-debug-variable-% target Add a target to print an internal variable value. Usage: make info-debug-variable-VARIABLENAME Example: make info-debug-variable-ELFFILE /path/to/riot/examples/hello-world/bin/native/hello-world.elf --- makefiles/info.inc.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefiles/info.inc.mk b/makefiles/info.inc.mk index 1ede0f6807..0ebe8b667b 100644 --- a/makefiles/info.inc.mk +++ b/makefiles/info.inc.mk @@ -1,6 +1,7 @@ .PHONY: info-objsize info-buildsizes info-build info-boards-supported \ info-features-missing info-modules info-cpu \ - info-features-provided info-features-required + info-features-provided info-features-required \ + info-debug-variable-% info-objsize: @case "$(SORTROW)" in \ @@ -125,3 +126,6 @@ info-features-required: info-features-missing: @for i in $(sort $(filter-out $(FEATURES_PROVIDED), $(FEATURES_REQUIRED))); do echo $$i; done + +info-debug-variable-%: + @echo $($*)