Re: [linux-audio-dev] Cross compiling the kernel

From: Kai Ruemmler <kairuemmler@email-addr-hidden>
Date: Thu Dec 08 2005 - 21:48:32 EET

* Lee Revell <rlrevell@email-addr-hidden-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
Received on Fri Dec 9 00:15:07 2005

This archive was generated by hypermail 2.1.8 : Fri Dec 09 2005 - 00:15:07 EET