Openrisc Toolchain Development Factory
Home
Copyleft Rich D'Addio 2007
GCC (Part II that's right part deux)
Ok so now we are headed back to the beast known as GCC, this step will integrate our uClibc
into GCC so we have a working C compiler.
First order of business let's unset the CC variable we set earlier then we wanted to
cross-compile uClibc but we damn sure do not want to cross-compile our cross-compiler
do we!!
Let's get back to base station:
ralphie:/video/new_or32/uClibc-0.9.27# cd ../
ralphie:/video/new_or32# cd b-gcc
now let's unset that damn variable:
ralphie:/video/new_or32/b-gcc# unset CC
Ok so now we have to reconfigure the GCC:
ralphie:/video/new_or32/b-gcc# ../gcc-3.4.4/configure --target=or32-uclinux --prefix=/video/new_or32/tools/or32-uclinux --with-local-prefix=/video/new_or32/tools/or32-uclinux/or32-uclinux --with-gnu-as --with-gnu-ld --verbose --enable-languages=c
And once again:
ralphie:/video/new_or32/b-gcc# make all install
Last steps:
ralphie:/video/new_or32/b-gcc# cd /video/new_or32/tools/or32-uclinux/or32-uclinux
ralphie:/video/new_or32/tools/or32-uclinux/or32-uclinux# ln -s ../include sys-include
ralphie:/video/new_or32/tools/or32-uclinux/or32-uclinux# cd lib
ralphie:/video/new_or32/tools/or32-uclinux/or32-uclinux/lib# cp ../../lib/*.* .
And the build of the tool chain is DONE!!
Piece of Cake ? Yes? Start No?Previous
Top