Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] build: add 'file' option for 'make defconfig'
@ 2012-02-11  0:03 Felipe Contreras
  2012-02-11 16:01 ` Arnout Vandecappelle
  0 siblings, 1 reply; 10+ messages in thread
From: Felipe Contreras @ 2012-02-11  0:03 UTC (permalink / raw)
  To: buildroot

So that this works:

 % make defconfig file=~/busybox-defconfig

Right now we have to do:

 % make $PWD/output/build/buildroot-config/conf
 % $PWD/output/build/buildroot-config/conf --defconfig=~/busybox-defconfig Config.in

And the first command would through an error. Not nice.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 25da853..5a26961 100644
--- a/Makefile
+++ b/Makefile
@@ -594,7 +594,7 @@ silentoldconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
 
 defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
 	@mkdir -p $(BUILD_DIR)/buildroot-config
-	@$(COMMON_CONFIG_ENV) $< --defconfig $(CONFIG_CONFIG_IN)
+	@$(COMMON_CONFIG_ENV) $< --defconfig$(addprefix =,$(file)) $(CONFIG_CONFIG_IN)
 
 %_defconfig: $(BUILD_DIR)/buildroot-config/conf $(TOPDIR)/configs/%_defconfig outputmakefile
 	@mkdir -p $(BUILD_DIR)/buildroot-config
-- 
1.7.9.1.g97f7d

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-02-15 11:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-11  0:03 [Buildroot] [PATCH] build: add 'file' option for 'make defconfig' Felipe Contreras
2012-02-11 16:01 ` Arnout Vandecappelle
2012-02-11 17:29   ` Felipe Contreras
2012-02-14  9:46   ` Thomas De Schampheleire
2012-02-14 12:44     ` Felipe Contreras
2012-02-14 13:53       ` Arnout Vandecappelle
2012-02-14 16:15         ` Felipe Contreras
2012-02-15  6:58         ` Thomas De Schampheleire
2012-02-15 11:53           ` Felipe Contreras
2012-02-15 11:54             ` Thomas De Schampheleire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox