add option to build autobuild images with real payloads

instead of /dev/null. 



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2417 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2006-09-15 17:00:11 +00:00
parent 46bcaa303b
commit 7fe2b7cd5c
1 changed files with 12 additions and 4 deletions

View File

@ -84,6 +84,11 @@ function create_config
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 build_target
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 @@ function myhelp
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 @@ function myversion
{
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 @@ LBROOT=$( cd ../..; pwd )
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 @@ while true ; do
-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;;