Changes between Version 3 and Version 4 of Cross Compiler
- Timestamp:
- Nov 26, 2007, 1:17:19 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Cross Compiler
v3 v4 1 1 = Get the sources = 2 2 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 3 You will need gnu binutils, gcc and gdb. They are available on ftp.gnu.org or any gnu mirror. 4 http://ftp.gnu.org/gnu/binutils, http://ftp.gnu.org/gnu/gcc, http://ftp.gnu.org/gnu/gdb 5 5 Let's unpack sources: 6 6 … … 10 10 $ tar xjf ..../binutils-2.xx.tar.bz2 11 11 $ tar xjf ..../gcc-x.x.x.tar.bz2 12 $ tar xjf ..../gdb-x.x.x.tar.bz2 12 13 $ 13 14 }}} … … 25 26 $ cd build/mipsel/binutils 26 27 $ ../../../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 28 29 $ make 29 30 $ make install 31 $ make -C bfd install_libbfd 32 $ make -C libiberty install_to_libdir 30 33 $ 31 34 }}} … … 40 43 $ cd ../gcc 41 44 $ ../../../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 }}} 51 Now 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 43 56 $ make 44 57 $ make install … … 47 60 48 61 We're done ! 62 63 You may compile PowerPC toolchain as well, with the same lines, replacing `mipsel` by `powerpc`.