diff options
Diffstat (limited to 'pintos-progos/misc/gcc-3.3.6-cross-howto')
| -rw-r--r-- | pintos-progos/misc/gcc-3.3.6-cross-howto | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pintos-progos/misc/gcc-3.3.6-cross-howto b/pintos-progos/misc/gcc-3.3.6-cross-howto new file mode 100644 index 0000000..ad25173 --- /dev/null +++ b/pintos-progos/misc/gcc-3.3.6-cross-howto | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Here are the commands we used to build and install the SPARC | ||
| 2 | cross-compiler: | ||
| 3 | |||
| 4 | PINTOSROOT=$HOME/private/pintos | ||
| 5 | |||
| 6 | PREFIX=/usr/class/cs140/`uname -m` | ||
| 7 | PATH=$PATH:$PREFIX/bin | ||
| 8 | TMP=`pwd` | ||
| 9 | |||
| 10 | wget ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.15.tar.bz2 | ||
| 11 | wget ftp://sources.redhat.com/pub/newlib/newlib-1.13.0.tar.gz | ||
| 12 | wget ftp://ftp.gnu.org/pub/gnu/gcc/gcc-3.3.6/gcc-core-3.3.6.tar.bz2 | ||
| 13 | wget ftp://ftp.gnu.org/pub/gnu/gdb/gdb-6.3.tar.bz2 | ||
| 14 | |||
| 15 | bzcat binutils-2.15.tar.bz2 | tar x | ||
| 16 | tar xzf newlib-1.13.0.tar.gz | ||
| 17 | bzcat gcc-core-3.3.6.tar.bz2 | tar x | ||
| 18 | bzcat gdb-6.3.tar.bz2 | tar x | ||
| 19 | |||
| 20 | cd $TMP/binutils-2.15 | ||
| 21 | mkdir i386 | ||
| 22 | cd i386 | ||
| 23 | ../configure --target=i386-elf --prefix=$PREFIX | ||
| 24 | make LDFLAGS=-lintl | ||
| 25 | make install | ||
| 26 | |||
| 27 | cd $TMP/gcc-3.3.6 | ||
| 28 | mkdir i386 | ||
| 29 | cd i386 | ||
| 30 | ../configure --target=i386-elf --prefix=$PREFIX --with-gnu-as --with-as=$PREFIX/bin/i386-elf-as --with-gnu-ld --with-ld=$PREFIX/bin/i386-elf-ld --with-headers=$TMP/newlib-1.13.0/newlib/libc/include --with-newlib | ||
| 31 | make | ||
| 32 | make install | ||
| 33 | |||
| 34 | cd $TMP/gdb-6.3 | ||
| 35 | mkdir i386 | ||
| 36 | cd i386 | ||
| 37 | ../configure --target=i386-elf --prefix=$PREFIX --disable-tui | ||
| 38 | make LDFLAGS=-lintl | ||
| 39 | make install | ||
