diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/samples.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/samples/samples.mk b/samples/samples.mk index 411d97db..980ce5f3 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -36,13 +36,18 @@ help-env:: # 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 |