Changes between Version 3 and Version 4 of Cross Compiler


Ignore:
Timestamp:
Nov 26, 2007, 1:17:19 PM (16 years ago)
Author:
Nicolas Pouillon
Comment:

Add Gdb, PPC, more flags

Legend:

Unmodified
Added
Removed
Modified
  • Cross Compiler

    v3 v4  
    11= Get the sources =
    22
    3 You will need gnu binutils and gcc. They are available on ftp.gnu.org or any gnu mirror.
    4 http://ftp.gnu.org/gnu/binutils, http://ftp.gnu.org/gnu/gcc
     3You will need gnu binutils, gcc and gdb. They are available on ftp.gnu.org or any gnu mirror.
     4http://ftp.gnu.org/gnu/binutils, http://ftp.gnu.org/gnu/gcc, http://ftp.gnu.org/gnu/gdb
    55Let's unpack sources:
    66
     
    1010$ tar xjf ..../binutils-2.xx.tar.bz2
    1111$ tar xjf ..../gcc-x.x.x.tar.bz2
     12$ tar xjf ..../gdb-x.x.x.tar.bz2
    1213$
    1314}}}
     
    2526$ cd build/mipsel/binutils
    2627$ ../../../src/binutils-2.x/configure  --prefix=/where/to/put/it --target=mipsel-unknown-elf \
    27   --program-prefix=mipsel-unknown-elf-
     28  --program-prefix=mipsel-unknown-elf- --disable-nls
    2829$ make
    2930$ make install
     31$ make -C bfd install_libbfd
     32$ make -C libiberty install_to_libdir
    3033$
    3134}}}
     
    4043$ cd ../gcc
    4144$ ../../../src/gcc-x.x.x/configure  --program-prefix=mipsel-unknown-elf- --prefix=/where/to/put/it \
    42   --enable-languages=c --target=mipsel-unknown-elf
     45  --enable-languages=c --target=mipsel-unknown-elf --disable-nls --disable-werror --disable-libssp \
     46  --disable-threads --without-headers
     47$ make
     48$ make install
     49$
     50}}}
     51Now gdb
     52{{{
     53$ cd ../gdb
     54$ ../../../src/gdb-x.x.x/configure  --program-prefix=mipsel-unknown-elf- --prefix=/where/to/put/it \
     55  --target=mipsel-unknown-elf
    4356$ make
    4457$ make install
     
    4760
    4861We're done !
     62
     63You may compile PowerPC toolchain as well, with the same lines, replacing `mipsel` by `powerpc`.