= Tool chain creation = Let's create a Mipsel toolchain, with no libc (for [wiki:MutekS] or [wiki:MutekD] compilation). == Get the sources == You will need gnu binutils and gcc. They are available on ftp.gnu.org or any gnu mirror. Let's unpack sources: {{{ $ mkdir src $ cd src $ tar xjf ..../binutils-2.16.tar.bz2 $ tar xjf ..../gcc-3.4.6.tar.bz2 }}} == Compilation == Now lets compile. I assume we'll need to compile more toolchains later, so let's share the sources and compile in a separate directory: {{{ $ cd .. $ mkdir build build/mipsel build/mipsel/binutils build/mipsel/gcc }}} First, binutils {{{ $ cd build/mipsel/binutils $ ../../../src/binutils-2.16/configure --prefix=/where/to/put/it --target=mipsel-unknown-elf --program-prefix=mipsel-unknown-elf- $ make $ make install }}} Now gcc {{{ $ cd ../gcc $ ../../../src/gcc-3.4.6/configure --program-prefix=mipsel-unknown-elf- --prefix=/where/to/put/it --enable-languages=c --target=mipsel-unknown-elf --host=i686-pc-linux-gnu $ make $ make install }}} We're done !