If the user is in any directory other than $BUILDDIR when the bitbake
wrapper script is run, then show an error an exit.
Fixes [YOCTO #2071].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
# but earlier versions do not
float_test "$TARVERSION > 1.23" && needtar="0"
+if [ "`pwd`" != "$BUILDDIR" ] ; then
+ echo "BitBake must be run from your build directory: $BUILDDIR"
+ exit 1
+fi
+
buildpseudo="1"
if [ $needpseudo = "1" ] && [ -e "$BUILDDIR/pseudodone" ]; then
PSEUDOBINDIR=`cat $BUILDDIR/pseudodone`