[Buildroot] [PATCH v2 2/3] config: make it possible to specify which config file to use for 'make defconfig'

Luca Ceresoli luca at lucaceresoli.net
Mon Mar 5 09:58:33 UTC 2012


Arnout Vandecappelle (Essensium/Mind) wrote:
> From: "Arnout Vandecappelle (Essensium/Mind)"<arnout at mind.be>
>
> So that this works:
>
>   % make defconfig DEFCONFIG=~/busybox-defconfig
>
> Right now we have to do:
>
>   % cp ~/busybox-defconfig configs/busybox_defconfig
>   % make busybox_defconfig
>
> That would dirty the buildroot tree and requires it to be writable.
>
> Signed-off-by: Felipe Contreras<felipe.contreras at gmail.com>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind)<arnout at mind.be>
> ---
>   Makefile |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 30099d9..b450b8f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -602,7 +602,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$(patsubst %,=%,$(BR2_DEFCONFIG)) $(CONFIG_CONFIG_IN)
>
>   %_defconfig: $(BUILD_DIR)/buildroot-config/conf $(TOPDIR)/configs/%_defconfig outputmakefile
>   	@mkdir -p $(BUILD_DIR)/buildroot-config

Acked-by: Luca Ceresoli <luca at lucaceresoli.net>





More information about the buildroot mailing list