Changes between Version 1 and Version 2 of CrossToolChain


Ignore:
Timestamp:
Mar 31, 2008, 2:14:59 PM (16 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CrossToolChain

    v1 v2  
    11= Tool chain creation =
    22
    3 Let's create a Mipsel toolchain, with no libc (for [wiki:MutekS] or [wiki:MutekD] compilation).
    4 
    5 == Get the sources ==
    6 
    7 You will need gnu binutils and gcc. They are available on ftp.gnu.org or any gnu mirror.
    8 Let'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 
    19 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:
    20 
    21 {{{
    22 $ cd ..
    23 $ mkdir build build/mipsel build/mipsel/binutils build/mipsel/gcc
    24 }}}
    25 First, 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 }}}
    32 Now 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 
    40 We're done !
     3There is a good step-by-step [https://www.soclib.fr/trac/dev/wiki/CrossCompiler howto] in soclib's trac...