cross compile linux
From: Matthias Brugger <hidden>
Date: 2012-02-11 10:02:26
On 02/11/2012 10:15 AM, Daniel Baluta wrote:
On Sat, Feb 11, 2012 at 9:05 AM, chromaticwt zac[off-list ref] wrote:quoted
what is the proper way to cross compile the linux kernel from one arch to another? specifically, i386 -> ppc.You should use a cross-compiler. I recommend you crosstool-ng. Use google for references. [1] thanks, Daniel. [1] http://forum.samdroid.net/wiki/showwiki/How+to+build+cross+toolchains+for+ARM+crosstool-NG _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Apart from that in the Makefile you have to specify with ARCH ?= ppc and in CROSS_COMPILE the prefix of your cross compiler (e.g. pcc-linux-) beware that the corss compile toolchain is in you $PATH. If you want to cross compile for an embedded Linux board, have a look at buildroot. With this tool you can build the whole userspace environment to get a shell running. good luck, matthias -- --- http://motzblog.wordpress.com/