Add patch to make a triple fault break to the gdb stub if active.
[pintos-anon] / src / misc / bochs-2.2.6-build.sh
index 137a2736a31ed420885db8d1b1498baf474fb579..5b099914458a5f4e2c82d5aef56a656a9925ee31 100755 (executable)
@@ -14,16 +14,23 @@ cd $$
 mkdir bochs-2.2.6
 tar xzf $SRCDIR/bochs-2.2.6.tar.gz
 cd bochs-2.2.6
-cat $PINTOSDIR/src/misc/bochs-2.2.6-*.patch | patch -p1
-
+cat $PINTOSDIR/src/misc/bochs-2.2.6-ms-extensions.patch | patch -p1
+cat $PINTOSDIR/src/misc/bochs-2.2.6-big-endian.patch | patch -p1
+cat $PINTOSDIR/src/misc/bochs-2.2.6-jitter.patch | patch -p1
+cat $PINTOSDIR/src/misc/bochs-2.2.6-triple-fault.patch | patch -p1
+if test "`uname -s`" = "SunOS"; then
+    cat $PINTOSDIR/src/misc/bochs-2.2.6-solaris.patch | patch -p1
+fi
 CFGOPTS="--with-x --with-x11 --with-term --with-nogui --prefix=$DSTDIR"
-(mkdir plain &&
- cd plain && 
- ../configure $CFGOPTS --enable-gdb-stub && 
- make && 
- make install)
-(mkdir with-dbg &&
- cd with-dbg &&
- ../configure --enable-debugger $CFGOPTS &&
- make &&
- cp bochs $DSTDIR/bin/bochs-dbg)
+mkdir plain &&
+       cd plain && 
+       ../configure $CFGOPTS --enable-gdb-stub && 
+       make && 
+       make install &&
+       cd ..
+mkdir with-dbg &&
+       cd with-dbg &&
+       ../configure --enable-debugger $CFGOPTS &&
+       make &&
+       cp bochs $DSTDIR/bin/bochs-dbg &&
+       cd ..