summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-04-22 23:39:19 +0000
committerStefan Reinauer <stepan@openbios.org>2009-04-22 23:39:19 +0000
commit476053356bc429e126a643bf1692106228e1efa6 (patch)
treea85dc7c2922b475ad6525aec6c22cf85f179622a
parent9f0f1055f2834efeb955c3cd36406962e0980cf0 (diff)
downloadcoreboot-476053356bc429e126a643bf1692106228e1efa6.tar.xz
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
-rwxr-xr-xutil/abuild/abuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index ac268eaa0c..f8e8196232 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -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