[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross compiling with deb package



On Mon, 2012-07-30 at 16:17 -0500, kqt4at5v@gmail.com wrote: 
> I am sure it is easier to use the Debian kernel source package than to 
> start with the source from kernel.org. But if I wanted to get the latest 
> kernel source package for a arm processor and load it on a x86 machine 
> to cross compile how should I proceed.

Upstream sources are unified among the arches, and support cross
compiling. I
do not believe debian kernel package supports cross compiling.

To cross-compile, install the cross toolchain, and then configure with
ARCH=arm make nconfig

and set
CONFIG_CROSS_COMPILE="arm-linux-gnueabi-"
or
CONFIG_CROSS_COMPILE="arm-linux-gnueabihf-"

depending on which toolchain you installed (i believe they are equal
when it comes to compiling the kernel, but I am not sure, I have always
compiled with the "gnueabi" one.

> 
> Richard
> 
> 


-- 
-Shawn Landden


Reply to: