Changes between Initial Version and Version 1 of CrossToolChain


Ignore:
Timestamp:
Jul 31, 2006, 12:08:16 PM (18 years ago)
Author:
Nicolas Pouillon
Comment:

Xcompile

Legend:

Unmodified
Added
Removed
Modified
  • CrossToolChain

    v1 v1  
     1= Tool chain creation =
     2
     3Let's create a Mipsel toolchain, with no libc (for [wiki:MutekS] or [wiki:MutekD] compilation).
     4
     5== Get the sources ==
     6
     7You will need gnu binutils and gcc. They are available on ftp.gnu.org or any gnu mirror.
     8Let's unpack sources:
     9
     10{{{
     11$ mkdir src
     12$ cd src
     13$ tar xjf ..../binutils-2.16.tar.bz2
     14$ tar xjf ..../gcc-3.4.6.tar.bz2
     15}}}
     16
     17== Compilation ==
     18
     19Now lets compile. I assume we'll need to compile more toolchains later, so let's share the sources and compile in a separate directory:
     20
     21{{{
     22$ cd ..
     23$ mkdir build build/mipsel build/mipsel/binutils build/mipsel/gcc
     24}}}
     25First, binutils
     26{{{
     27$ cd build/mipsel/binutils
     28$ ../../../src/binutils-2.16/configure  --prefix=/where/to/put/it --target=mipsel-unknown-elf --program-prefix=mipsel-unknown-elf-
     29$ make
     30$ make install
     31}}}
     32Now gcc
     33{{{
     34$ cd ../gcc
     35$ ../../../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
     36$ make
     37$ make install
     38}}}
     39
     40We're done !