mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
01d546796c
commit
0814867e26
1 file changed
+7
-3
@@ -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
|
||||
|
||||