summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-autobuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/poky-autobuild b/scripts/poky-autobuild
index b4a479084..bacaca97c 100755
--- a/scripts/poky-autobuild
+++ b/scripts/poky-autobuild
@@ -31,10 +31,13 @@ if [ "xpreamble" = "x$1" ]; then
exit 0
fi
+BBTARGET="$1"
+shift
+
. ./scripts/poky-env-internal
POSTPROCESS=`which poky-autobuild-postprocess`
-if [ "xcomplete" = "x$1" ]; then
+if [ "xcomplete" = "x$BBTARGET" ]; then
touch ./build/tmp/deploy/images/images-complete
chmod a+w ./build/tmp/deploy/images/images-complete
if [ "x$POSTPROCESS" != "x" ]; then
@@ -55,9 +58,6 @@ if [ ! -e "$CONFFILE" ]; then
echo 'DL_DIR = "/srv/poky/sources"' >> "$CONFFILE"
fi
-BBTARGET="$1"
-shift
-
bitbake $BBTARGET
if [ "x$POSTPROCESS" != "x" ]; then