Mercurial > hg > aboriginal
diff sources/more/native-build.sh @ 1003:6d3db5bf731a
Make the native build timeout configurable.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 18 Mar 2010 05:44:47 -0500 |
parents | cfa6262528f3 |
children | d62c5c8734b2 |
line wrap: on
line diff
--- a/sources/more/native-build.sh Thu Mar 18 02:25:11 2010 -0500 +++ b/sources/more/native-build.sh Thu Mar 18 05:44:47 2010 -0500 @@ -10,9 +10,9 @@ # Parse arguments -if [ $# -ne 3 ] +if [ $# -lt 3 ] then - echo "usage: $0 ARCH HDCFILE OUTPUTDIR" >&2 + echo "usage: $0 ARCH HDCFILE OUTPUTDIR [TIMEOUT_SECONDS]" >&2 exit 1 fi @@ -26,6 +26,8 @@ mkdir -p "$3" || dienow STAGE_DIR="$(readlink -f $3)" +[ ! -z "$4" ] && DO_TIMEOUT="sources/timeout.sh $4" + # Fire off the ftp daemon, making sure it's killed when this script exits . sources/toys/unique-port.sh || exit 1 @@ -41,6 +43,6 @@ rm -f sources/system-image-"$ARCH"/hdb.img HDC="$HDCFILE" KERNEL_EXTRA="OUTPORT=$PORT ARCH=$ARCH" \ - sources/timeout.sh 60 ./run-from-build.sh "$ARCH" + $DO_TIMEOUT ./run-from-build.sh "$ARCH" echo === End native build for $ARCH