From: Sam Ravnborg <sam@xxxxxxxxxxxx> Subject: [PATCH] x86: use defconfig as last resort When using "make oldconfig" with no .config present try the list from init/Kconfig DEFCONFIG_LIST before resorting to use one of the defconfigs. Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx> --- I had the patch in my local tree but never got it posted. And then I forgot. I plan to redo this stuff soonish so we have a more clean and predictive approach. But the KCONFIG_ stuff was just more fun ;^) Sam arch/x86/Kconfig | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index fe361ae..393a169 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -26,18 +26,6 @@ config X86 select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64) select HAVE_ARCH_KGDB if !X86_VOYAGER -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" - config GENERIC_LOCKBREAK def_bool n @@ -205,6 +193,18 @@ config KTIME_SCALAR def_bool X86_32 source "init/Kconfig" +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" + menu "Processor type and features" source "kernel/time/Kconfig" -- 1.5.4.1.143.ge7e51 -- 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