[ale] Kernel cross compilation

mike at trausch.us mike at trausch.us
Wed Sep 19 12:19:02 EDT 2012


On 09/19/2012 08:37 AM, Matt Hessel wrote:
> The best way to compile is to use cross compilation on ubuntu or
> similar.  The ending kernel isn't really any different than if you
> compiled it on the PI, just doesn't take 7 hours.
> 
> This is because you have to download the libraries for the architecture
> and use it in the compilation process.

Only if you're compiling userspace things, as well.

If you're just building the kernel, no libraries are necessary; the
host's libc and math libs will be used for the gcc cross compiler and
binutils, but the cross compiler doesn't need libraries for the target
--- the kernel provides all its functions internally (e.g., is compiled
with GCC in so-called "freestanding" mode).

	--- Mike

-- 
A man who reasons deliberately, manages it better after studying Logic
than he could before, if he is sincere about it and has common sense.
                                   --- Carveth Read, “Logic”

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 726 bytes
Desc: OpenPGP digital signature
Url : http://mail.ale.org/pipermail/ale/attachments/20120919/130ab485/attachment.bin 


More information about the Ale mailing list