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 ..
echo 'DL_DIR = "/srv/poky/sources"' >> "$CONFFILE"
fi
-bitbake $BBTARGET
+bitbake $@
cd ..
# 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/"