path: root/samples
diff options
authorYann E. MORIN" <>2012-05-07 19:37:59 (GMT)
committerYann E. MORIN" <>2012-05-07 19:37:59 (GMT)
commit33a6cdd7ece062ebcf06c5660e88111300b2308f (patch)
tree9bb4df7100a44d3cc08c06bacbfbcca963019271 /samples
parent99a6ddf3be35bd49566cf3d0e942729696684a6e (diff)
samples: rework show-tuple
Now that we are using defconfig files, the samples do not contain the full configuration, so we can not simply parse them to show their content. Instead, we must fake recalling a sample, and parse the generated .config file. Signed-off-by: "Yann E. MORIN" <>
Diffstat (limited to 'samples')
1 files changed, 8 insertions, 3 deletions
diff --git a/samples/ b/samples/
index 411d97d..980ce5f 100644
--- a/samples/
+++ b/samples/
@@ -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/ -v current
+ @cp .config .config.sample
+ @$(CT_LIB_DIR)/scripts/ -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/ -v $(patsubst show-%,%,$(@))
+ @rm -f .config.sample
# Prints the details of all samples
PHONY += show-all