Re: [gentoo-user] kernel cross compilation

2009-06-28 Thread Xavier Parizet
Dirk Heinrichs a écrit :
 Am Samstag 27 Juni 2009 19:33:48 schrieb David Relson:
 My workstation is an AMD64 and I want to build a 486 kernel.  I've
 tried oldconfig, menuconfig, and xconfig and they all change
 the .config from X86_32 to X86_64.  How do I stop this behavior?
 
 make CROSS_COMPILE=i686-pc-linux-gnu- ARCH=i386 ...

Try also linux32 command from sys-apps/util-linux .

 HTH...
 
   Dirk


-- 
  Xavier Parizet
YaGB :   http://gentooist.com
GPG  :DC81 6FEE 6EBE FCE4
1C18 202F E575 4A5D 036D 1408




signature.asc
Description: OpenPGP digital signature


[gentoo-user] kernel cross compilation

2009-06-27 Thread David Relson
My workstation is an AMD64 and I want to build a 486 kernel.  I've
tried oldconfig, menuconfig, and xconfig and they all change
the .config from X86_32 to X86_64.  How do I stop this behavior?

FWIW, below is a partial diff between the 486 .config and the new
config.

Thanks.

David


r...@osage linux # diff -u .config.old .config 
--- .config.old 2009-04-15 18:47:58.0 -0400 
+++ .config 2009-06-27 13:26:53.0 -0400 
@@ -1,18 +1,19 @@
 #
 # Automatically generated make config: don't edit
-# Linux kernel version: 2.6.27
-# Wed Apr 15 18:47:58 2009
+# Linux kernel version: 2.6.27.25
+# Sat Jun 27 13:26:53 2009
 #
-# CONFIG_64BIT is not set
-CONFIG_X86_32=y
-# CONFIG_X86_64 is not set
+CONFIG_64BIT=y
+# CONFIG_X86_32 is not set
+CONFIG_X86_64=y
 CONFIG_X86=y
-CONFIG_ARCH_DEFCONFIG=arch/x86/configs/i386_defconfig
+CONFIG_ARCH_DEFCONFIG=arch/x86/configs/x86_64_defconfig
 # CONFIG_GENERIC_LOCKBREAK is not set
...



Re: [gentoo-user] kernel cross compilation

2009-06-27 Thread Dirk Heinrichs
Am Samstag 27 Juni 2009 19:33:48 schrieb David Relson:
 My workstation is an AMD64 and I want to build a 486 kernel.  I've
 tried oldconfig, menuconfig, and xconfig and they all change
 the .config from X86_32 to X86_64.  How do I stop this behavior?

make CROSS_COMPILE=i686-pc-linux-gnu- ARCH=i386 ...

HTH...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] kernel cross compilation

2009-06-27 Thread David Relson
On Sat, 27 Jun 2009 20:13:25 +0200
Dirk Heinrichs wrote:

 Am Samstag 27 Juni 2009 19:33:48 schrieb David Relson:
  My workstation is an AMD64 and I want to build a 486 kernel.  I've
  tried oldconfig, menuconfig, and xconfig and they all change
  the .config from X86_32 to X86_64.  How do I stop this behavior?
 
 make CROSS_COMPILE=i686-pc-linux-gnu- ARCH=i386 ...
 
 HTH...
 
   Dirk

Exactly the sort of answer I wanted.

Thanks, Dirk.