X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmisc%2Fbochs-2.2.6-build.sh;h=6c07a98c0805059df92919ced2976026c528498e;hb=0951a7af1bd8e78b5991edd7de9d0370b2d2d72b;hp=bdf38b0418415e81682981ece04c617573ebfd08;hpb=c756825357f433537caec55ac12cf0104be3a6f4;p=pintos-anon diff --git a/src/misc/bochs-2.2.6-build.sh b/src/misc/bochs-2.2.6-build.sh index bdf38b0..6c07a98 100755 --- a/src/misc/bochs-2.2.6-build.sh +++ b/src/misc/bochs-2.2.6-build.sh @@ -1,7 +1,7 @@ #! /bin/sh -e -if test -z "$SRCDIR" || test -z "$PINTOSROOT" || test -z "$DSTDIR"; then - echo "usage: env SRCDIR= PINTOSDIR= DSTDIR= $0" +if test -z "$SRCDIR" || test -z "$PINTOSDIR" || test -z "$DSTDIR"; then + echo "usage: env SRCDIR= PINTOSDIR= DSTDIR= sh $0" echo " where contains bochs-2.2.6.tar.gz" echo " and is the root of the pintos source tree" echo " and is the installation prefix (e.g. /usr/local)" @@ -14,16 +14,26 @@ cd $$ mkdir bochs-2.2.6 tar xzf $SRCDIR/bochs-2.2.6.tar.gz cd bochs-2.2.6 -patch -p1 < $PINTOSDIR/src/misc/bochs-2.2.6-*.patch - +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 +cat $PINTOSDIR/src/misc/bochs-2.2.6-page-fault-segv.patch | patch -p1 +cat $PINTOSDIR/src/misc/bochs-2.2.6-paranoia.patch | patch -p1 +if test "`uname -s`" = "SunOS"; then + 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) -(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 ..