summaryrefslogtreecommitdiffstats
path: root/pintos-progos/misc/gcc-3.3.6-cross-howto
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
committermanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
commitb5f0874cd96ee2a62aabc645b9626c2749cb6a01 (patch)
tree1262e4bbe0634de6650be130c36e0538240f4cbf /pintos-progos/misc/gcc-3.3.6-cross-howto
downloadprogos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.gz
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.bz2
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.zip
initial pintos checkin
Diffstat (limited to 'pintos-progos/misc/gcc-3.3.6-cross-howto')
-rw-r--r--pintos-progos/misc/gcc-3.3.6-cross-howto39
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 @@
1Here are the commands we used to build and install the SPARC
2cross-compiler:
3
4PINTOSROOT=$HOME/private/pintos
5
6PREFIX=/usr/class/cs140/`uname -m`
7PATH=$PATH:$PREFIX/bin
8TMP=`pwd`
9
10wget ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.15.tar.bz2
11wget ftp://sources.redhat.com/pub/newlib/newlib-1.13.0.tar.gz
12wget ftp://ftp.gnu.org/pub/gnu/gcc/gcc-3.3.6/gcc-core-3.3.6.tar.bz2
13wget ftp://ftp.gnu.org/pub/gnu/gdb/gdb-6.3.tar.bz2
14
15bzcat binutils-2.15.tar.bz2 | tar x
16tar xzf newlib-1.13.0.tar.gz
17bzcat gcc-core-3.3.6.tar.bz2 | tar x
18bzcat gdb-6.3.tar.bz2 | tar x
19
20cd $TMP/binutils-2.15
21mkdir i386
22cd i386
23../configure --target=i386-elf --prefix=$PREFIX
24make LDFLAGS=-lintl
25make install
26
27cd $TMP/gcc-3.3.6
28mkdir i386
29cd 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
31make
32make install
33
34cd $TMP/gdb-6.3
35mkdir i386
36cd i386
37../configure --target=i386-elf --prefix=$PREFIX --disable-tui
38make LDFLAGS=-lintl
39make install