]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts: Allow passing multiple parameters to the autobuilder
authorRichard Purdie <richard@openedhand.com>
Tue, 29 Apr 2008 17:12:25 +0000 (17:12 +0000)
committerRichard Purdie <richard@openedhand.com>
Tue, 29 Apr 2008 17:12:25 +0000 (17:12 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4370 311d38ba-8fff-0310-9ca6-ca027cbcb966

scripts/poky-autobuild
scripts/poky-env-internal

index 1dd31e2a84182f7ea2b7b30f93a1c860f61d20fe..752e0a7bb0224c4b6a8c93e1cba8e32108a5de62 100755 (executable)
@@ -31,13 +31,11 @@ if [ "xpreamble" = "x$1" ]; then
     exit 0
 fi
 
-BBTARGET="$1"
-shift
-
+BDIR="build"
 . ./scripts/poky-env-internal
 POSTPROCESS=`which poky-autobuild-postprocess`
 
-if [ "xcomplete" = "x$BBTARGET" ]; then
+if [ "xcomplete" = "x$1" ]; then
     touch ./tmp/deploy/images/images-complete
     chmod a+w ./tmp/deploy/images/images-complete
     cd ..
@@ -59,7 +57,7 @@ if [ ! -e "$CONFFILE" ]; then
     echo 'DL_DIR = "/srv/poky/sources"' >> "$CONFFILE"
 fi
 
-bitbake $BBTARGET
+bitbake $@
 
 cd ..
 
index 489956ebcee0b912f3e04d9970313ec2dccbe7dd..78646e3c6ebb164dfc794b59341c8a075daf504a 100755 (executable)
 # Also update the locations at the top of conf/local.conf
 
 OEROOT=`pwd`
-
-if [ "x$1" = "x" ]; then
-       BDIR="build"
-else
-       BDIR="$1"
+if [ "x$BDIR" = "x" ]; then
+       if [ "x$1" = "x" ]; then
+               BDIR="build"
+       else
+               BDIR="$1"
+       fi
 fi
 
 BBDIR="$OEROOT/bitbake/"