Re: [PATCH 1/2] Kbuild: Treat KBUILD_DEFCONFIG=old as request to use .config as the base

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14.9.2010 05:50, Ben Hutchings wrote:
> Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
> ---
> This should work as a substitute for Debian's updateoldconfig.
> 
> Ben.
> 
>  scripts/kconfig/Makefile |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index cef3f75..19558a7 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -112,9 +112,13 @@ defconfig: $(obj)/conf
>  ifeq ($(KBUILD_DEFCONFIG),)
>  	$< --defconfig $(Kconfig)
>  else
> +ifeq ($(KBUILD_DEFCONFIG),old)
> +	$< --defconfig=.config $(Kconfig)
> +else
>  	@echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
>  	$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
>  endif
> +endif

KBUILD_DEFCONFIG is an internal variable used by arch Makefiles to
select the defconfig file, it should not be abused for a completely
different purpose. Also, the same can be achieved with 'make
oldnoconfig' or 'yes "" | make oldconfig' in older kernels.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux