3 if test -z "$SRCDIR" || test -z "$PINTOSDIR" || test -z "$DSTDIR"; then
4 echo "usage: env SRCDIR=<srcdir> PINTOSDIR=<srcdir> DSTDIR=<dstdir> sh $0"
5 echo " where <srcdir> contains bochs-2.2.6.tar.gz"
6 echo " and <pintosdir> is the root of the pintos source tree"
7 echo " and <dstdir> is the installation prefix (e.g. /usr/local)"
15 tar xzf $SRCDIR/bochs-2.2.6.tar.gz
17 cat $PINTOSDIR/src/misc/bochs-2.2.6-ms-extensions.patch | patch -p1
18 cat $PINTOSDIR/src/misc/bochs-2.2.6-big-endian.patch | patch -p1
19 cat $PINTOSDIR/src/misc/bochs-2.2.6-jitter.patch | patch -p1
20 if test "`uname -s`" = "SunOS"; then
21 cat $PINTOSDIR/src/misc/bochs-2.2.6-solaris.patch | patch -p1
23 CFGOPTS="--with-x --with-x11 --with-term --with-nogui --prefix=$DSTDIR"
26 ../configure $CFGOPTS --enable-gdb-stub &&
32 ../configure --enable-debugger $CFGOPTS &&
34 cp bochs $DSTDIR/bin/bochs-dbg &&