From 476053356bc429e126a643bf1692106228e1efa6 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 22 Apr 2009 23:39:19 +0000 Subject: 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 Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4192 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/abuild/abuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'util') 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 " ok" || @@ -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 ] 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 -- cgit v1.2.3