Here is how I build the cross compilers for development:
gnu.org is where I got the dev tools from
- Downloaded binutils-2.21.tar.bz2
- Downloaded gcc-core-4.5.2.tar.bz2
- Downloaded gcc-g++-4.5.2.tar.bz2
After I installed the requirements ( GMP, MPFR, MPC ) I followed the rest of the cross-compiler setup guide.
The following were the commands as I modified them ( not much ):
- cd ~/Downloads/binutils*
- export PREFIX=/usr/local/cross
- export TARGET=i586-elf
- ./configure --target=$TARGET --prefix=$PREFIX --disable-nls
- make all
- sudo make install
- cd ~/Downloads/gcc*
- export PATH=$PATH:$PREFIX/bin
- ./configure --target=$TARGET --prefix=$PREFIX --disable-nls --without-headers --enable-languages=c,c++
- make all-gcc
- sudo make install-gcc
No comments:
Post a Comment