summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2012-05-06 22:27:05 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-05-06 22:27:05 (GMT)
commit99a6ddf3be35bd49566cf3d0e942729696684a6e (patch)
tree34059895ac523a0c35708973df3411fecb9502d9 /samples
parent27e8b280f9f9d514b029b21d3116cc845dc72bd1 (diff)
samples: use savedefconfig when saving samples
When saving a sample, use savedefconfig instead of copying the full .config file. This reduces the saved .config, and reduces clutter when it is later upgraded. Also use defconfig when retrieving a sample. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'samples')
-rw-r--r--samples/samples.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/samples.mk b/samples/samples.mk
index fa5134d..411d97d 100644
--- a/samples/samples.mk
+++ b/samples/samples.mk
@@ -83,9 +83,9 @@ endef
# How we do recall one sample
PHONY += $(CT_SAMPLES)
-$(CT_SAMPLES):
- $(SILENT)cp $(call sample_dir,$@)/crosstool.config .config
- $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) oldconfig
+$(CT_SAMPLES): config_files
+ @$(ECHO) " CONF $(KCONFIG_TOP)"
+ $(SILENT)$(CONF) --defconfig=$(call sample_dir,$@)/crosstool.config $(KCONFIG_TOP)
@echo
@echo '***********************************************************'
@echo