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

From: Florian Weimer <fw@email-addr-hidden>
Date: Sun Dec 11 2005 - 20:21:53 EET

* Lee Revell:

> All I am trying to do is compile an x86_64 kernel on i386 machine. It
> dos not work:

This a few helper scripts; building an AMD64 kernel on i386 is not
exactly cross-compiling. Basically, the helper scripts must invoke
"gcc -m64" when no -m32 option is given, and "gcc" if there's an
"-m32" option ("-m64 -m32" does *not* override the -m64). More magic
is required for objcopy, otherwise the compiled kernel will crash on
boot.

The Debian kernel package building infrastructure contains the
necessary scripts AFAIK.
Received on Mon Dec 12 00:15:04 2005

This archive was generated by hypermail 2.1.8 : Mon Dec 12 2005 - 00:15:04 EET