scripts: dump the current tuple with show-config

This commit is contained in:
Yann E. MORIN" 2010-01-31 20:10:14 +01:00
parent 3fb0463536
commit 964d20b1c7
2 changed files with 4 additions and 1 deletions

View File

@ -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))

View File

@ -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