diff -r 80151a249b85 -r 1e35d2fa54d7 samples/samples.mk --- a/samples/samples.mk Mon May 07 00:27:05 2012 +0200 +++ b/samples/samples.mk Mon May 07 21:37:59 2012 +0200 @@ -36,13 +36,18 @@ # Print the details of current configuration PHONY += show-config show-config: .config - @export current_tuple=$(shell $(MAKE) -rf "$(CT_NG)" show-tuple ); \ - $(CT_LIB_DIR)/scripts/showSamples.sh -v current + @cp .config .config.sample + @$(CT_LIB_DIR)/scripts/showSamples.sh -v current + @rm -f .config.sample # Prints the details of a sample PHONY += $(patsubst %,show-%,$(CT_SAMPLES)) -$(patsubst %,show-%,$(CT_SAMPLES)): +$(patsubst %,show-%,$(CT_SAMPLES)): config_files + @KCONFIG_CONFIG=$$(pwd)/.config.sample \ + $(CONF) --defconfig=$(call sample_dir,$(patsubst show-%,%,$(@)))/crosstool.config \ + $(KCONFIG_TOP) >/dev/null @$(CT_LIB_DIR)/scripts/showSamples.sh -v $(patsubst show-%,%,$(@)) + @rm -f .config.sample # Prints the details of all samples PHONY += show-all