[linux-audio-dev] Cross compiling the kernel

Kai Ruemmler kairuemmler at yahoo.de
Thu Dec 8 19:48:32 UTC 2005


* Lee Revell <rlrevell at joe-job.com> wrote:
> All I am trying to do is compile an x86_64 kernel on i386 machine.  It
> dos not work:
 
> $ ARCH=x86_64 make oldconfig
> <no errors>
 
> $ ARCH=x86_64 make 

[...]

> What gives?  Do I need a different compiler to build for x86_64?

Yes. 

Cross compiling the kernel works like this:

$ make ARCH=<arch> CROSS_COMPILE=<arch-prefix>

The gcc cross compiler for x86_64 is usually named x86_64-linux-gcc.

In the special case of x86 -> x86_64 a 64 bit enabled gcc is sufficient
though (if your binutils support 64 bit). In all other cases you need 
a "real" cross compiler.

Kai

	

	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de




More information about the Linux-audio-dev mailing list