[patch 44/47] Kconfig: introduce ARCH_DEFCONFIG to DEFCONFIG_LIST

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Friday, June 13, 2008 - 5:12 pm

-stable review patch.  If anyone has any objections, please let us know.

------------------
From: Sam Ravnborg <sam@ravnborg.org>

commit 73531905ed53576d9e8707659a761e7046a60497 in mainline.

init/Kconfig contains a list of configs that are searched
for if 'make *config' are used with no .config present.
Extend this list to look at the config identified by
ARCH_DEFCONFIG.

With this change we now try the defconfig targets last.

This fixes a regression reported
by: Linus Torvalds <torvalds@linux-foundation.org>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 arch/x86/Kconfig |   13 +++----------
 init/Kconfig     |    1 +
 2 files changed, 4 insertions(+), 10 deletions(-)

--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -24,17 +24,10 @@ config X86
 	select HAVE_KRETPROBES
 	select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
 
-config DEFCONFIG_LIST
+config ARCH_DEFCONFIG
 	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"
+	default "arch/x86/configs/i386_defconfig" if X86_32
+	default "arch/x86/configs/x86_64_defconfig" if X86_64
 
 
 config GENERIC_LOCKBREAK
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -13,6 +13,7 @@ config DEFCONFIG_LIST
 	default "/lib/modules/$UNAME_RELEASE/.config"
 	default "/etc/kernel-config"
 	default "/boot/config-$UNAME_RELEASE"
+	default "$ARCH_DEFCONFIG"
 	default "arch/$ARCH/defconfig"
 
 menu "General setup"

-- 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/47] 2.6.25-stable review, Greg KH, (Fri Jun 13, 5:08 pm)
[patch 01/47] b43: Fix controller restart crash, Greg KH, (Fri Jun 13, 5:10 pm)
[patch 02/47] ipwireless: Fix blocked sending, Greg KH, (Fri Jun 13, 5:10 pm)
[patch 10/47] ecryptfs: clean up (un)lock_parent, Greg KH, (Fri Jun 13, 5:10 pm)
[patch 11/47] ecryptfs: fix missed mutex_unlock, Greg KH, (Fri Jun 13, 5:10 pm)
[patch 35/47] cciss: add new hardware support, Greg KH, (Fri Jun 13, 5:11 pm)
[patch 36/47] hgafb: resource management fix, Greg KH, (Fri Jun 13, 5:11 pm)
[patch 37/47] forcedeth: msi interrupts, Greg KH, (Fri Jun 13, 5:11 pm)
[patch 42/47] CPUFREQ: Fix format string bug., Greg KH, (Fri Jun 13, 5:12 pm)
[patch 44/47] Kconfig: introduce ARCH_DEFCONFIG to DEFCONF ..., Greg KH, (Fri Jun 13, 5:12 pm)
[patch 46/47] x86: fix recursive dependencies, Greg KH, (Fri Jun 13, 5:12 pm)