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 diff --git a/samples/samples.mk b/samples/samples.mk index 76023e9..a42ea40 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 7113585..f6eb8b2 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 v0.10.2-6-g49f6