From mboxrd@z Thu Jan 1 00:00:00 1970 From: matthias.bgg@googlemail.com (Matthias Brugger) Date: Sat, 11 Feb 2012 11:02:26 +0100 Subject: cross compile linux In-Reply-To: References: Message-ID: <4F363CB2.4040402@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 02/11/2012 10:15 AM, Daniel Baluta wrote: > On Sat, Feb 11, 2012 at 9:05 AM, chromaticwt zac wrote: >> 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/