[OpenBIOS] PPC cross-compiler defaults to 'powerpc-linux-gnu-'prefix

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Nov 25 13:21:17 CET 2009


Laurent Vivier wrote:

>> Is there any particular reason that we need the linux platform version, 
>> instead of the elf version which is used by SPARC? The reason I ask is 
>> that the Linux platform version is much much harder to compile as you 
>> need an extra set of glibc headers and have to bootstrap the gcc build 
>> by hand in order to produce the working final compiler.
> 
> The only reason is because I use "powerpc-linux-gnu-gcc", but I agree it is much harder to produce. But I produce my cross-compile environment from debian packages, which seems simpler.
> 
> Do you know if there is a "powerpc-elf-gdb" ?

Not sure, although I ended up building gdb by hand for my SPARC setup 
here and it seemed to work ok. Interestingly enough, I had to use 
'sparc64-linux' as a platform just for gdb in order to get the 64-bit 
register support built in, but it seems to work.

>> On my tests here everything seems to work fine with just the 
>> 'powerpc-elf-' prefix as far as I can tell.

> If you provide a patch, I agree to apply it.

I think the best overall solution would be to simply search for both the 
-elf and -linux versions in switch-arch and pick the first one found - 
does that work for everyone?


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list