[PATCH] x86: Use CONFIG_64BIT to select between 32 and 64 bit in Kconfig

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: Sam Ravnborg <sam@...>
Date: Saturday, November 10, 2007 - 4:43 pm

This change allow us to use the new syntax:
make K64BIT={n,y} to select between 32 and 64 bit.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
 arch/x86/Kconfig |   26 ++++++++------------------
 1 files changed, 8 insertions(+), 18 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 153c26c..0d86611 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1,34 +1,24 @@
 # x86 configuration
 
 # Select 32 or 64 bit
-choice
-	bool "Select 32 or 64 bit"
-	default X86_32
+config 64BIT
+	bool "64 Bit kernel"
+	default n
+	help
+	  Say yes to build a 64 bit kernel - formerly known as x86_64
+	  Say no to build a 32 bit kernel - formerly known as i386
 
 config X86_32
-	bool "32 bit (former ARCH=i386)"
-	help
-	  This is Linux's home port.  Linux was originally native to the Intel
-	  386, and runs on all the later x86 processors including the Intel
-	  486, 586, Pentiums, and various instruction-set-compatible chips by
-	  AMD, Cyrix, and others.
+	def_bool !64BIT
 
 config X86_64
-	bool "64 bit (former ARCH=x86_64)"
-	help
-	  Port to the x86-64 architecture. x86-64 is a 64-bit extension to the
-	  classical 32-bit x86 architecture. For details see
-	  <http://www.x86-64.org/>.
-endchoice
+	def_bool 64BIT
 
 ### Arch settings
 config X86
 	bool
 	default y
 
-config 64BIT
-	def_bool X86_64
-
 config GENERIC_TIME
 	bool
 	default y
-- 
1.5.3.4.1157.g0e74-dirty

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

Messages in current thread:
[PATCH] kconfig: factor out code in confdata.c, Sam Ravnborg, (Sat Nov 10, 4:43 pm)
[PATCH 3/3] use environment option, Roman Zippel, (Sun Jan 13, 11:51 pm)
[PATCH 2/3] environment symbol support, Roman Zippel, (Sun Jan 13, 11:50 pm)
[PATCH 1/3] explicitly introduce expression list, Roman Zippel, (Sun Jan 13, 11:50 pm)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*confi..., Guillaume Chazarain, (Sat Nov 10, 4:55 pm)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*confi..., Guillaume Chazarain, (Sun Nov 11, 8:43 am)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*confi..., Guillaume Chazarain, (Sun Nov 11, 10:59 am)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*confi..., Guillaume Chazarain, (Sun Nov 11, 11:55 am)
[PATCH] x86: Use CONFIG_64BIT to select between 32 and 64 bi..., Sam Ravnborg, (Sat Nov 10, 4:43 pm)
[PATCH] kconfig: document make K64BIT=y in README, Sam Ravnborg, (Sat Nov 10, 4:43 pm)
Re: [PATCH] kconfig: document make K64BIT=y in README, Randy Dunlap, (Sat Nov 10, 6:23 pm)