Author: stepan Date: 2006-09-15 19:00:11 +0200 (Fri, 15 Sep 2006) New Revision: 2417
Modified: trunk/LinuxBIOSv2/util/abuild/abuild.sh Log: add option to build autobuild images with real payloads instead of /dev/null.
Modified: trunk/LinuxBIOSv2/util/abuild/abuild.sh =================================================================== --- trunk/LinuxBIOSv2/util/abuild/abuild.sh 2006-09-15 14:53:55 UTC (rev 2416) +++ trunk/LinuxBIOSv2/util/abuild/abuild.sh 2006-09-15 17:00:11 UTC (rev 2417) @@ -84,6 +84,11 @@ TARCH=$( architecture $VENDOR $MAINBOARD ) TARGCONFIG=$LBROOT/targets/$VENDOR/$MAINBOARD/Config-abuild.lb
+ # get a working payload for the board if we have one. + if [ -x $payloads/payload.sh ]; then + PAYLOAD=`$payloads/payload.sh $VENDOR $MAINBOARD` + fi + mkdir -p $TARGET
if [ -f $TARGCONFIG ]; then @@ -356,7 +361,7 @@
function myhelp { - echo "Usage: $0 [-v] [-a] [-b] [-t <vendor/board>] [lbroot]" + echo "Usage: $0 [-v] [-a] [-b] [-t <vendor/board>] [-p <dir>] [lbroot]" echo " $0 [-V|--version]" echo " $0 [-h|--help]" echo @@ -365,9 +370,11 @@ echo " [-a|--all] build previously succeeded ports as well" echo " [-b|--broken] attempt to build ports that are known broken" echo " [-t|--target <vendor/board>] attempt to build target vendor/board only" + echo " [-p|--payloads <dir>] use payloads in <dir> to build images" echo " [-V|--version] print version number and exit" echo " [-h|--help] print this help and exit" - echo " [-x|--xml] write xml log file $XMLFILE" + echo " [-x|--xml] write xml log file " + echo " (defaults to $XMLFILE)" echo " [lbroot] absolute path to LinuxBIOS sources" echo " (defaults to $LBROOT)" echo @@ -377,7 +384,7 @@ { cat << EOF
-LinuxBIOS autobuild: V0.2. +LinuxBIOS autobuild: V0.3.
Copyright (C) 2004 by Stefan Reinauer stepan@openbios.org Copyright (C) 2006 by coresystems GmbH info@coresystems.de @@ -396,7 +403,7 @@ verbose=false
# parse parameters -args=`getopt -l version,verbose,help,all,target:,broken Vvhat:b -- "$@"` +args=`getopt -l version,verbose,help,all,target:,broken,payloads: Vvhat:bp: -- "$@"`
if [ $? != 0 ]; then myhelp @@ -413,6 +420,7 @@ -v|--verbose) shift; verbose=true;; -V|--version) shift; myversion; exit 0;; -h|--help) shift; myhelp; exit 0;; + -p|--payloads) shift; payloads="$1"; shift;; --) shift; break;; -*) echo -e "Invalid option\n"; myhelp; exit 1;; *) break;;