Add patch to support serial terminals under Solaris.
[pintos-anon] / src / misc / bochs-2.2.6-build.sh
index fd2773d843e66c36f4328837e5c19fb6d1b9868e..2878fbd9f626effb42f5085e963aa040f1bf9ce1 100755 (executable)
@@ -17,17 +17,21 @@ cd bochs-2.2.6
 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
+cat $PINTOSDIR/src/misc/bochs-2.2.6-solaris-tty.patch | patch -p1
 if test "`uname -s`" = "SunOS"; then
-    cat $PINTOSDIR/src/misc/bochs-2.2.6-solaris.patch | patch -p1
+    cat $PINTOSDIR/src/misc/bochs-2.2.6-solaris-link.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
+       make install &&
+       cd ..
 mkdir with-dbg &&
        cd with-dbg &&
        ../configure --enable-debugger $CFGOPTS &&
        make &&
-       cp bochs $DSTDIR/bin/bochs-dbg
+       cp bochs $DSTDIR/bin/bochs-dbg &&
+       cd ..