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

Re: [patches] Re: Cross compiler build instructions - PowerPC



Khem Raj <raj.khem@xxxxxxxxx> writes:
> I a script based on these instructions which is uptodate and builds eglibc
> based toolchains
>
> https://github.com/kraj/ct-scripts/blob/master/toolchain-eglibc.sh

Is there any particular reason that you're not taking advantage of the
many person-years of effort that have been put into tools that do
exactly this?

I'm a very happy user of "crosstool-ng", which is itself an updated
version of "crosstool".

   http://crosstool-ng.org/

I'm currently building for PowerPC on x86-64 linux, and it's working
quite well.  It has support for multiple gcc versions, multiple libc
(glibc, eglibc, ulibc), various debugging packages (both on host and
on target), and takes care of build prereqs (cloog, ppl, etc).
There's a very active and responsive mailing list (crossgcc).

With version 5, the ELDK people have gone with the build system from
"Poky Linux" (which is an improvement over the ELDK4 method of "use a
virtual machine with FC7 x86-32 installed..."):

   http://www.denx.de/wiki/ELDK-5/EldkBuilding

And there's also OpenEmbedded, which has their own set of tools and
patches:

   http://www.openembedded.org/index.php/Main_Page

Finally, if your organization has any development funds at all,
CodeSourcery has pre-built toolkits (as well as Eclipse integration
etc) that could save you lots of time up front.  Given the huge amount
of work they do for GCC, supporting them if you can is a great thing.
(They also have free downloads of the raw toolchains.)

Regards,
Tony