Tuesday, August 12, 2008

Linux Kernel Cross-compilation

Linux Kernel can be compiled in a machine for a different architecture. This is useful in fixing compilation issues for different architectures without actually using them.

Using ARCH option, the target architecture can be specified. It is also possible to specify the cross-compile toolchain through CROSS_COMPILE and specific compiler using CC options.

To compile the kernel for a 64-bit Intel platform,
# make ARCH=x86_64 defconfig

To compile with ARM toolchain at /usr/local/bin,

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]


Complete Story


Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy