From: Ben Pfaff Date: Mon, 13 Sep 2004 22:59:23 +0000 (+0000) Subject: Add instructions for building cross-compiler. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d85eec5384e785ff31ff8afa8c213492491e3b2;p=pintos-anon Add instructions for building cross-compiler. --- diff --git a/src/TODO b/src/TODO index 72126d5..ee27d73 100644 --- a/src/TODO +++ b/src/TODO @@ -5,3 +5,24 @@ usage of kernel stacks. * Filesystem dumps should include filehdrs? + +* Cross-compile notes: + +cd /tmp +bzcat ~/binutils-2.15.tar.bz2 | tar x +tar xzf newlib-1.12.0.tar.gz +tar xzf gcc-core-3.3.2.tar.gz + +cd /tmp/binutils-2.15 +mkdir i386 +cd i386 +../configure --target=i386-elf --prefix=/usr/class/cs140/i386 +make LDFLAGS=-lintl +make install + +cd /tmp/gcc-core-3.3.2.tar.gz +mkdir i386 +cd i386 +PATH=$PATH:/usr/class/cs140/i386/bin ../configure --target=i386-elf --prefix=/usr/class/cs140/i386 --with-gnu-as --with-as=/usr/class/cs140/i386/bin/i386-elf-as --with-gnu-ld --with-ld=/usr/class/cs140/i386/bin/i386-elf-ld --with-headers=/tmp/newlib-1.12.0/newlib/libc/include --with-newlib +PATH=$PATH:/usr/class/cs140/i386/bin make +make install