cross PPC for Linux

THIEBOLT Francois thiebolt@irit.fr
Tue Feb 3 02:17:00 GMT 1998


Hi,

As so many people ask me about PPC cross-compiling installation...so OK.
-----------------------------------------------------------------------------
This is a walktrough to setup a PPC cross-compiling tool chain for
Linux.

First of all, i'm using Linux with PPC603e ATLAS Motherboard running
PPCBUG.
Go and find egcs_1.0.1 along with infrastructure/gas970915 and
newlib_1.8.0 
(plus a fix i can give you) at ftp.cygnus.com /pub/embedded/cross-gcc.

Then come the gas installation...
#> cd gasxxxx
#> ./configure --target=ppc-motorola-eabi
#> make
#> make install

Then come the egcs installation
#> cd egcs_1.0.1
#> ./configure  --target=ppc-motorola-eabi \
		--with-cpu=603e \
		--with-gnu-as \
		--with-gnu-ld \
		--with-newlib
#> make cross LANGUAGES=C
#> make install LANGUAGES=C

Then come the newlib_1.8.0 (patched) installation
(there is a bug in makefiles for PPC version, ask me about it)
#> cd newlib-1.8.0
#> ./configure  --target=ppc-motorola-eabi \
		--with-cpu=603e \
		--with-gnu-as \
		--with-gnu-ld \
		--with-newlib \
	
--with-headers=/usr/local/lib/gcc-lib/ppc-motorola-eabi/egcs-2.90.23/include
#> make
#> make install

Then your PPC cross-compiling tool chain is ready.
You must then have a makefile with proper flags (along with -mmvme for
PPCBUG)

May the force be with you!

Good luck.

thiebolt@irit.fr
-----------------------------------------------------------------------------------------

-- 
-------------------------------------------------------------
THIEBOLT Francois \ You think your computer run too slow ?
UPS Toulouse III  \ - Check nobody's asked for tea !
thiebolt@irit.fr  \ "The Hitchikers Guide to the Galaxy" D.Adams
-------------------------------------------------------------



More information about the crossgcc mailing list