[linux-audio-dev] Cross compiling the kernel

Florian Weimer fw at deneb.enyo.de
Sun Dec 11 18:21:53 UTC 2005


* 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.



More information about the Linux-audio-dev mailing list