Files
xen/tools/debugger/gdb/gdbbuild
T
kaf24@firebug.cl.cam.ac.uk 0814867e26 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>
2006-03-03 11:17:09 +01:00

25 lines
507 B
Bash
Executable File

#!/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 "$GDB_MIRROR/gdb-6.2.1.tar.bz2"
tar xjf gdb-6.2.1.tar.bz2
cd gdb-6.2.1-xen-sparse
./mkbuildtree ../gdb-6.2.1
cd ..
mkdir gdb-6.2.1-linux-i386-xen
cd gdb-6.2.1-linux-i386-xen
../gdb-6.2.1/configure
# 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
fi