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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Thursday, May 27, 2010 - 11:46 am

On Thu, May 27, 2010 at 11:49:16AM -0400, Christoph Hellwig wrote:

The request when we did the merge of 32 and 64 bit was that we
should continue to build 64bit kernels on 64 bit machines.
And likewise for 32bit.
Because this was what the users where used to.

We could simplify metters by defining new rules.
As you suggest that uname on an intel box always resulted in ARCH=x86.
But then people would complain why a 32 bit kernel is default when
the box is 64 bit.

Something like this:
[The escape chars align nicely in the patched Makefile]

	Sam

diff --git a/Makefile b/Makefile
index ebc8225..e7f97a5 100644
--- a/Makefile
+++ b/Makefile
@@ -161,10 +161,11 @@ export srctree objtree VPATH
 # 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/ \
-				  -e s/arm.*/arm/ -e s/sa110/arm/ \
+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/ \
+				  -e s/ppc.*/powerpc/ -e s/mips.*/mips/  \
 				  -e s/sh[234].*/sh/ )
 
 # Cross compiling and selecting different set of gcc/bin-utils

--
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 ..., Sam Ravnborg, (Thu May 27, 11:46 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 ..., 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)