From 964d20b1c74a733c390e5460a2c7143760067376 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 31 Jan 2010 20:10:14 +0100 Subject: scripts: dump the current tuple with show-config --- samples/samples.mk | 3 ++- scripts/showSamples.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/samples.mk b/samples/samples.mk index 76023e99..a42ea40f 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -39,7 +39,8 @@ help-env:: # Print the details of current configuration PHONY += show-config show-config: .config - @$(CT_LIB_DIR)/scripts/showSamples.sh -v current + @export current_tuple=$(shell $(MAKE) -rf "$(CT_NG)" show-tuple ); \ + $(CT_LIB_DIR)/scripts/showSamples.sh -v current # Prints the details of a sample PHONY += $(patsubst %,show-%,$(CT_SAMPLES)) diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index 71135854..f6eb8b2b 100755 --- a/scripts/showSamples.sh +++ b/scripts/showSamples.sh @@ -23,6 +23,8 @@ dump_single_sample() { case "${sample}" in current) sample_type="l" + sample="${current_tuple}" + width="${#sample}" . .config ;; *) if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then -- cgit v1.2.3