1 Building our toolchain is easy:
2 We use a GNU toolchain and require patches against binutils, gcc and gdb
3 for our processor architecture. We currently investigate forward porting
4 of these patches to more current versions.
8 (It is assumed that $PWD/README is this file)
9 - Grab binutils 2.10.1 from ftp://ftp.gnu.org/gnu/binutils/binutils-2.10.1.tar.gz
10 - tar -xvzf binutils-2.10.1.tar.gz
12 - cat ../patches/0001-binutils-EPSON-changes-to-binutils.patch | patch -p1
13 - cat ../patches/0002-binutils-EPSON-make-it-compile-hack-for-recent-gcc.patch | patch -p1
16 - CPPFLAGS="-D_FORTIFY_SOURCE=0" ../configure --prefix $PWD/../../install --target=c33-epson-elf (tab complete the path)
21 (It is assumed that $PWD/README is this file)
22 - export PATH=$PWD/install/bin:$PATH
23 - Grab gcc 3.3.2 from ftp://ftp.gnu.org/gnu/gcc/gcc-3.3.2.tar.gz
24 - tar -xvzf gcc-3.3.2.tar.gz
26 - cat ../patches/0001-gcc-EPSON-modified-sources.patch | patch -p1
27 - cat ../patches/0002-gcc-Force-that-the-assembly-of-libgcc-complies-wit.patch | patch -p1
28 - cat ../patches/0003-gcc-Use-the-C-implementations-for-division-and-mod.patch | patch -p1
31 - CPPFLAGS="-D_FORTIFY_SOURCE=0" ../configure --prefix $PWD/../../install --target=c33-epson-elf --enable-languages=c (tab complete the path)