summaryrefslogtreecommitdiffstats
path: root/misc/bochs-2.3.7-build.sh
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-27 11:51:08 +0200
committermanuel <manuel@mausz.at>2012-03-27 11:51:08 +0200
commit4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b (patch)
tree868c52e06f207b5ec8a3cc141f4b8b2bdfcc165c /misc/bochs-2.3.7-build.sh
parenteae0bd57f0a26314a94785061888d193d186944a (diff)
downloadprogos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.gz
progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.bz2
progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.zip
reorganize file structure to match the upstream requirements
Diffstat (limited to 'misc/bochs-2.3.7-build.sh')
-rwxr-xr-xmisc/bochs-2.3.7-build.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/misc/bochs-2.3.7-build.sh b/misc/bochs-2.3.7-build.sh
new file mode 100755
index 0000000..57e35d1
--- /dev/null
+++ b/misc/bochs-2.3.7-build.sh
@@ -0,0 +1,42 @@
1#! /bin/sh -e
2
3if 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.3.7.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)"
8 exit 1
9fi
10
11cd /tmp
12mkdir bochs-pintos-$$
13cd bochs-pintos-$$
14mkdir bochs-2.3.7
15tar xzf $SRCDIR/bochs-2.3.7.tar.gz
16cd bochs-2.3.7
17cat $PINTOSDIR/src/misc/0001-bochs-2.3.7-jitter.patch | patch -p1
18cat $PINTOSDIR/src/misc/0002-bochs-2.3.7-triple-fault.patch | patch -p1
19cat $PINTOSDIR/src/misc/0003-bochs-2.3.7-page-fault-segv.patch | patch -p1
20cat $PINTOSDIR/src/misc/bochs-2.3.7-gcc43.patch | patch -p1
21cat $PINTOSDIR/src/misc/bochs-2.3.7-typos.patch | patch -p1
22cat $PINTOSDIR/src/misc/bochs-2.3.7-linux3x.patch | patch -p1
23autoconf
24
25CFGOPTIONAL="--enable-large-pages --enable-mmx --enable-usb --enable-pci --enable-pcidev --enable-acpi --enable-global-pages --enable-show-ips"
26CFGOPTIMIZE="--enable-all-optimizations --enable-guest2host-tlb --enable-repeat-speedups --enable-trace-cache --enable-icache --enable-fast-function-calls --enable-idle-hack "
27CFGOPTS="--prefix=$DSTDIR --enable-ignore-bad-msr --enable-disasm --enable-logging --enable-fpu --enable-alignment-check --enable-plugins --enable-cpu-level=6 --enable-readline --without-sdl --without-svga --without-wx --with-x --with-x11 --with-term --with-nogui $CFGOPTIONAL"
28mkdir plain &&
29 cd plain &&
30 ../configure $CFGOPTS --enable-gdb-stub &&
31# make -j3 &&
32 make && echo "done building plain" &&
33 sudo make install &&
34 cd .. &&
35mkdir with-dbg &&
36 cd with-dbg &&
37 ../configure --enable-debugger $CFGOPTS &&
38 # make -j3 &&
39 make && echo "done building with-dbg" &&
40 sudo cp -v bochs $DSTDIR/bin/bochs-dbg &&
41 cd .. &&
42 echo "SUCCESS"