summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-31 19:10:14 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-31 19:10:14 (GMT)
commit964d20b1c74a733c390e5460a2c7143760067376 (patch)
treed858e1afe3480b2037d0c9c1f3b2654a6d0f451a
parent3fb046353628229bb16fb0cacb11316b1d9534e7 (diff)
scripts: dump the current tuple with show-config
-rw-r--r--samples/samples.mk3
-rwxr-xr-xscripts/showSamples.sh2
2 files changed, 4 insertions, 1 deletions
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