Re: [PATCH] x86: use defconfig as last resort

From: Linus Torvalds
Date: Sat May 24 2008 - 21:31:51 EST




On Sat, 24 May 2008, Sam Ravnborg wrote:
>
> When using "make oldconfig" with no .config
> present try the list from init/Kconfig DEFCONFIG_LIST
> before resorting to use one of the defconfigs.

Hmm. Why does placement matter here?

Also:

> +config DEFCONFIG_LIST
> + string
> + depends on X86_32
> + option defconfig_list
> + default "arch/x86/configs/i386_defconfig"
> +
> +config DEFCONFIG_LIST
> + string
> + depends on X86_64
> + option defconfig_list
> + default "arch/x86/configs/x86_64_defconfig"
> +

Wouldn't this be cleaner as just *one* entry, and then just have
different default statements, ie something like

config DEFCONFIG_LIST
string
option defconfig_list
default "arch/x86/configs/i386_defconfig" if X86_32
default "arch/x86/configs/x86_64_defconfig" if X86_64

instead?

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/