Instead of just

coreboot-v2 $ util/abuild/abuild -t kontron/986lcd-m $PWD

you can now also say 

  coreboot-v2 $ util/abuild/abuild -t kontron/986lcd-m/Config-myconf.lb $PWD

and instead of using Config-abuild.lb or creating a temporary Config-abuild.lb,
abuild will use the existing Config-myconf.lb to build your image. 

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>




git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4192 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-04-22 23:39:19 +00:00 committed by Stefan Reinauer
parent 9f0f1055f2
commit 476053356b
1 changed files with 12 additions and 3 deletions

View File

@ -122,9 +122,14 @@ function create_config
{
VENDOR=$1
MAINBOARD=$2
CONFIG=$3
TARCH=$( architecture $VENDOR $MAINBOARD )
TARGCONFIG=$LBROOT/targets/$VENDOR/$MAINBOARD/Config-abuild.lb
if [ "$CONFIG" != "" ]; then
TARGCONFIG=$LBROOT/targets/$VENDOR/$MAINBOARD/$CONFIG
fi
# get a working payload for the board if we have one.
# the --payload option expects a directory containing
# a shell script payload.sh
@ -270,7 +275,8 @@ function create_buildenv
{
VENDOR=$1
MAINBOARD=$2
create_config $VENDOR $MAINBOARD
CONFIG=$3
create_config $VENDOR $MAINBOARD $CONFIG
create_builddir $VENDOR $MAINBOARD
}
@ -341,6 +347,7 @@ function build_target
{
VENDOR=$1
MAINBOARD=$2
CONFIG=$3
TARCH=$( architecture $VENDOR $MAINBOARD )
# Allow architecture override in an abuild.info file.
@ -459,7 +466,7 @@ function build_target
return 0
}
create_buildenv $VENDOR $MAINBOARD
create_buildenv $VENDOR $MAINBOARD $CONFIG
if [ $? -eq 0 -a $configureonly -eq 0 ]; then
compile_target $VENDOR $MAINBOARD &&
xml " <status>ok</status>" ||
@ -557,6 +564,7 @@ function myhelp
printf " [-ns|--nostackprotect] use gcc -fno-stack-protector option\n"
printf " [-sb|--scan-build] use clang's static analyzer\n"
printf " [-C|--config] configure-only mode\n"
printf " [-l|--loglevel <num>] set loglevel\n"
printf " [lbroot] absolute path to coreboot sources\n"
printf " (defaults to $LBROOT)\n\n"
}
@ -636,7 +644,8 @@ if [ "$target" != "" ]; then
# build a single board
VENDOR=`printf $target|cut -f1 -d/`
MAINBOARD=`printf $target|cut -f2 -d/`
build_target $VENDOR $MAINBOARD
CONFIG=`printf $target|cut -f3 -d/`
build_target $VENDOR $MAINBOARD $CONFIG
test_target $VENDOR $MAINBOARD
else
# build all boards per default