User Tools

Site Tools


buildtoolchain

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
buildtoolchain [2011/08/10 12:17]
alios created
buildtoolchain [2011/08/10 12:39] (current)
alios
Line 50: Line 50:
 === gcc === === gcc ===
  
 +checkout trunk version of gcc from svn
  
 +''​$ cd /​tmp/​toolchain/​src''​
 +
 +''​$ svn co svn checkout [[svn://​gcc.gnu.org/​svn/​gcc/​trunk gcc-trunk]]''​
 +
 +configure and build gcc
 +
 +''​$ cd /​tmp/​toolchain/​arm-elf''​
 +
 +''​$ mkdir gcc ''​
 +
 +''​$ cd gcc ''​
 +
 +''​$ ../​../​src/​gcc-trunk/​configure --prefix=$HOME/​arm-elf --target=arm-elf --disable-werror --disable-nls --enable-interwork --enable-multilib --enable-languages="​c,​c++"​ --enable-target-optspace --with-float=soft --with-newlib --with-headers=/​home/​alios/​src/​toolchain/​src/​newlib/​newlib/​libc/​include/ ​ --with-system-zlib ​ --disable-shared''​
 +
 +''​$ make''​
 +
 +''​$ make install''​
  
 === newlib === === newlib ===
 +
 +checkout newlib from cvs
 +
 +''​$ cd /​tmp/​toolchain/​src''​
 +
 +''​$ cvs -z 9 -d :​pserver:​anoncvs@sources.redhat.com:/​cvs/​src login   ## use '​anoncvs'​ as password ''​
 +
 +''​$ cvs -z 9 -d :​pserver:​anoncvs@sources.redhat.com:/​cvs/​src co newlib''​
 +
 +configure and build
 +
 +''​$ cd /​tmp/​toolchain/​arm-elf''​
 +
 +''​$ mkdir newlib ''​
 +
 +''​$ cd newlib ''​
 +
 +''​$ ../​../​src/​newlib/​configure --prefix=$HOME/​arm-elf --target=arm-elf --enable-interwork --enable-multilib --enable-target-optspace --with-float=soft''​
 +
 +''​$ make''​
 +
 +''​$ make install''​
 +
buildtoolchain.1312971450.txt.gz ยท Last modified: 2011/08/10 12:17 by alios