[Buildroot] [PATCH] build: add 'file' option for 'make defconfig'
Felipe Contreras
felipe.contreras at gmail.com
Sat Feb 11 00:03:16 UTC 2012
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 at 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
More information about the buildroot
mailing list