[uClinux-dev] How to install multiple versions of Snapgear toolchain?

Doug Kehn rdkehn at yahoo.com
Wed Oct 3 07:44:56 EDT 2007


Hi Dave,

--- Dave Rensberger wrote:

> Hi,
> 
> I have a situation that requires that I use an old
> (2003 era)  
> toolchain for an old product, but also need to use
> one of the newer  
> toolchains for a newer Snapgear 3.5 based product.  
> Is there any way  
> to easily install 2 different versions of the
> Snapgear toolchain on a  
> single computer?   Multiple installs will conflict
> with each other  
> because they always have to be installed in
> /usr/local.  I've thought  
> about installing the newer toolchain in an alternate
> location and  
> using chroot to create the illusion that it's
> actually at /usr/local,  
> but there would be complications with that too.  
> Has anyone else  
> encountered this problem and come up with a solution
> that works (and  
> hopefully isn't too messy)?
> 

It's not messy at all.  Below is advice from Greg for
supporting multiple arm-linux toolchains.  I can't
think of a reason why it wouldn't work for other
toolchains too.

---8<-----

I do this for the 20031127 and 20051123 toolchains.

Basically I install the old one first. Then in
/usr/local/bin
I rename each of the arm-linux- binaries and put a
-3.3.2- extension
in there, so:

     arm-linux-gcc -->>  arm-linux-3.3.2-gcc

Then install the newer tool chain.

The newer tool chain is the default (so if you use
arm-linux-gcc).
You can run the old using something like
"arm-linux-gcc -V 3.3.2".
But I prefer to change the config.arch files in the
dist and
use CC="arm-linux-3.3.2-" as the compiler binary.

Regards
Greg

----->8---

Hope this helps.  Regards,
...doug



       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting 


More information about the uClinux-dev mailing list