aboutsummaryrefslogtreecommitdiffstats
path: root/tools/debugger
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-03 11:17:09 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-03 11:17:09 +0100
commit0814867e269e797e1c69f3fc7635a6749d3873ba (patch)
tree1fdfdc774077bf410ad76d90531a1e7ed23aae84 /tools/debugger
parent01d546796c96ef629a81187b36c0edbfa92083cb (diff)
downloadxen-0814867e269e797e1c69f3fc7635a6749d3873ba.tar.gz
xen-0814867e269e797e1c69f3fc7635a6749d3873ba.tar.bz2
xen-0814867e269e797e1c69f3fc7635a6749d3873ba.zip
Minor enhancements to gdbbuild, the build script for gdbserver-xen.
1. Use $MAKE if set 2. Make mirror configurable from environment From: Horms <horms@verge.net.au> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/debugger')
-rwxr-xr-xtools/debugger/gdb/gdbbuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/debugger/gdb/gdbbuild b/tools/debugger/gdb/gdbbuild
index 9b106971ea..fbd225a0c0 100755
--- a/tools/debugger/gdb/gdbbuild
+++ b/tools/debugger/gdb/gdbbuild
@@ -1,7 +1,9 @@
#!/bin/sh
+[ "$GDB_MIRROR" ] || GDB_MIRROR="ftp://ftp.gnu.org/gnu/gdb/"
+
rm -rf gdb-6.2.1 gdb-6.2.1-linux-i386-xen
-[ -a gdb-6.2.1.tar.bz2 ] || wget -c ftp://ftp.gnu.org/gnu/gdb/gdb-6.2.1.tar.bz2
+[ -a gdb-6.2.1.tar.bz2 ] || wget -c "$GDB_MIRROR/gdb-6.2.1.tar.bz2"
tar xjf gdb-6.2.1.tar.bz2
cd gdb-6.2.1-xen-sparse
@@ -12,8 +14,10 @@ mkdir gdb-6.2.1-linux-i386-xen
cd gdb-6.2.1-linux-i386-xen
../gdb-6.2.1/configure
-# some people don't have gmake
-if which gmake ; then
+# Use $MAKE if set, else use gmake if present, otherwise use make
+if [ "$MAKE" ]; then
+ $MAKE
+elif which gmake ; then
gmake -j4
else
make -j4