summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/samples.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/samples/samples.mk b/samples/samples.mk
index 411d97d..980ce5f 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