1.1 --- a/samples/samples.mk Mon May 07 00:27:05 2012 +0200
1.2 +++ b/samples/samples.mk Mon May 07 21:37:59 2012 +0200
1.3 @@ -36,13 +36,18 @@
1.4 # Print the details of current configuration
1.5 PHONY += show-config
1.6 show-config: .config
1.7 - @export current_tuple=$(shell $(MAKE) -rf "$(CT_NG)" show-tuple ); \
1.8 - $(CT_LIB_DIR)/scripts/showSamples.sh -v current
1.9 + @cp .config .config.sample
1.10 + @$(CT_LIB_DIR)/scripts/showSamples.sh -v current
1.11 + @rm -f .config.sample
1.12
1.13 # Prints the details of a sample
1.14 PHONY += $(patsubst %,show-%,$(CT_SAMPLES))
1.15 -$(patsubst %,show-%,$(CT_SAMPLES)):
1.16 +$(patsubst %,show-%,$(CT_SAMPLES)): config_files
1.17 + @KCONFIG_CONFIG=$$(pwd)/.config.sample \
1.18 + $(CONF) --defconfig=$(call sample_dir,$(patsubst show-%,%,$(@)))/crosstool.config \
1.19 + $(KCONFIG_TOP) >/dev/null
1.20 @$(CT_LIB_DIR)/scripts/showSamples.sh -v $(patsubst show-%,%,$(@))
1.21 + @rm -f .config.sample
1.22
1.23 # Prints the details of all samples
1.24 PHONY += show-all