Re: config automatically switches from 32-bit to 64-bit for x86

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michal Marek
Date: Thursday, June 3, 2010 - 6:30 am

On Thu, May 27, 2010 at 08:46:53PM +0200, Sam Ravnborg wrote:

Which is not acceptable, IMO. An x86_64 distro typically has a complete
64bit userspace including /sbin/init, so the default kernel has to be
64bit.

What about always making the prompt visible, so that the previously set
value gets reused? The downside is that 'make ARCH=i386 menuconfig' in a
clean tree on x86_64 will default to 64bit, because it will find the
setting in the config of the running 64bit kernel :(. But after manually
turning CONFIG_64BIT off, the setting will be preserved.

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index dcb0593..05ec418 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -3,7 +3,7 @@ mainmenu "Linux Kernel Configuration for x86"
 
 # Select 32 or 64 bit
 config 64BIT
-	bool "64-bit kernel" if ARCH = "x86"
+	bool "64-bit kernel"
 	default ARCH = "x86_64"
 	---help---
 	  Say yes to build a 64-bit kernel - formerly known as x86_64
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
config automatically switches from 32-bit to 64-bit for x86, Jaswinder Singh Rajput, (Wed May 26, 5:07 pm)
Re: config automatically switches from 32-bit to 64-bit fo ..., Rafael J. Wysocki, (Wed May 26, 5:13 pm)
Re: config automatically switches from 32-bit to 64-bit fo ..., Jaswinder Singh Rajput, (Wed May 26, 9:09 pm)
Re: config automatically switches from 32-bit to 64-bit fo ..., Jaswinder Singh Rajput, (Wed May 26, 10:23 pm)
Re: config automatically switches from 32-bit to 64-bit fo ..., Matthias Schniedermeyer, (Thu May 27, 8:19 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Christoph Hellwig, (Thu May 27, 8:49 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Matthias Schniedermeyer, (Thu May 27, 9:11 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Christoph Hellwig, (Thu May 27, 9:13 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Geert Uytterhoeven, (Thu May 27, 9:19 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Matthias Schniedermeyer, (Thu May 27, 9:35 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Rafael J. Wysocki, (Thu May 27, 1:21 pm)
Re: config automatically switches from 32-bit to 64-bit fo ..., Jaswinder Singh Rajput, (Thu May 27, 3:07 pm)
Re: config automatically switches from 32-bit to 64-bit fo ..., Jaswinder Singh Rajput, (Sat May 29, 10:19 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Michal Marek, (Thu Jun 3, 6:30 am)
Re: config automatically switches from 32-bit to 64-bit fo ..., Jaswinder Singh Rajput, (Thu Jun 3, 11:23 pm)
Re: config automatically switches from 32-bit to 64-bit fo ..., Jaswinder Singh Rajput, (Sat Jun 5, 9:14 pm)