Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*config targets

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roman Zippel
Date: Thursday, November 15, 2007 - 6:28 pm

Hi,

On Thu, 15 Nov 2007, Sam Ravnborg wrote:


This patch only adds some extra features.


To make this easy I attached the patch which reverts the problematic 
changes and then you only need this simple change to force the 64BIT value 
for ARCH={i386,x86_64}, otherwise it's set by the user:

bye, Roman

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>

---
 Makefile         |    3 ++-
 arch/x86/Kconfig |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

Index: linux-2.6/Makefile
===================================================================
--- linux-2.6.orig/Makefile
+++ linux-2.6/Makefile
@@ -165,7 +165,8 @@ export srctree objtree VPATH TOPDIR
 # then ARCH is assigned, getting whatever value it gets normally, and 
 # SUBARCH is subsequently ignored.
 
-SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
+				  -e s/sun4u/sparc64/ \
 				  -e s/arm.*/arm/ -e s/sa110/arm/ \
 				  -e s/s390x/s390/ -e s/parisc64/parisc/ \
 				  -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
Index: linux-2.6/arch/x86/Kconfig
===================================================================
--- linux-2.6.orig/arch/x86/Kconfig
+++ linux-2.6/arch/x86/Kconfig
@@ -3,8 +3,8 @@ mainmenu "Linux Kernel Configuration for
 
 # Select 32 or 64 bit
 config 64BIT
-	bool "64-bit kernel"
-	default n
+	bool "64-bit kernel" if ARCH="x86"
+	default ARCH="x86_64"
 	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
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, 1:43 pm)
[PATCH] kconfig: document make K64BIT=y in README, Sam Ravnborg, (Sat Nov 10, 1:43 pm)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sat Nov 10, 1:55 pm)
Re: [PATCH] kconfig: document make K64BIT=y in README, Randy Dunlap, (Sat Nov 10, 3:23 pm)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sun Nov 11, 5:43 am)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sun Nov 11, 7:59 am)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sun Nov 11, 8:55 am)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Roman Zippel, (Thu Nov 15, 6:28 pm)
[PATCH 2/3] environment symbol support, Roman Zippel, (Sun Jan 13, 8:50 pm)
[PATCH 3/3] use environment option, Roman Zippel, (Sun Jan 13, 8:51 pm)