ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] using Linaro cross compilers with ltib


From: Stuart Hughes
Subject: Re: [Ltib] using Linaro cross compilers with ltib
Date: Sun, 05 Dec 2010 13:17:15 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Rob,

I think it's probably easier to use the Custom toolchain feature of LTIB
(maybe you can update your wiki page).  To do this:

Install the distro's cross compiler as you describe, then:

./ltib -m config

Under: ---  Toolchain selection, choose: (*) Custom

You then need to enter:

* Toolchain path: this should be the absolute base directory where the
cross toolchain is installed, for example if I had:

/usr/local/gcc-4.3.74-eglibc-2.8.74/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc

You would enter:

/usr/local/gcc-4.3.74-eglibc-2.8.74/powerpc-linux-gnu

* Toolchain prefix: (ala CROSS) so for this example:

powerpc-linux-gnu-

* CFLAGS: enter any CFLAGS, for example -Os etc

Note: these flags get forcibly injected by the spoofing mechanism.

You can then save/exist and run ./ltib and it will force-rebuild
everything with the new toolchain setup.  Also note that LTIB caches the
binary rpms, so if you switch toolchains it will remove all packages and
re-install the ones matching the selected compiler without rebuilding
the packages.

Note: this relies of certain layouts of toolchain builds, that are valid
for CodeSourcery style toolchains (and crosstool)

Regards, Stuart

Rob Savoye wrote:
> I wanted to use a newer compiler with ltib in an easy fashion, so I
> installed the Linaro version of GCC 4.5 that are available via apt-get
> for Ubuntu. These newer tools have many optimizations done in the last 6
> - 12 months, and I wanted to take advantage of all of them. :-)
> 
> The downside is you loose all the nice path and tool name munging ltib
> does for you. But some of us like the extra flexibility of working
> external to ltib for some things, especially if you like playing with
> lots of compiler versions. Being an ex-Cygnus Support engineer, I'm
> kindof picky about my toolchains... :-) You can also use the ltib cross
> compilers the same way. Anyway, the whole writeup is now online at:
> 
> http://wiki.gnashdev.org/Building_for_ltib#Cross_Compiling_on_Ubuntu
> 
>       - rob -




reply via email to

[Prev in Thread] Current Thread [Next in Thread]