summaryrefslogtreecommitdiffstats
path: root/scripts/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bitbake')
-rwxr-xr-xscripts/bitbake15
1 files changed, 10 insertions, 5 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 7a59c6f52a..0431d9531a 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -37,6 +37,16 @@ if [ "$py_v26_check" != "True" ]; then
37 exit 1 37 exit 1
38fi 38fi
39 39
40if [ ! -e conf/bblayers.conf ] ; then
41 BDPRINT=""
42 [ -n "$BUILDDIR" ] && BDPRINT=": $BUILDDIR"
43 echo "Unable to find conf/bblayers.conf"
44 echo "BitBake must be run from within your build directory$BDPRINT"
45 exit 1
46elif [ -z "$BUILDDIR" ] ; then
47 BUILDDIR="`pwd`"
48fi
49
40needtar="1" 50needtar="1"
41TARVERSION=`tar --version | head -n 1 | cut -d ' ' -f 4` 51TARVERSION=`tar --version | head -n 1 | cut -d ' ' -f 4`
42float_test() { 52float_test() {
@@ -47,11 +57,6 @@ float_test() {
47# but earlier versions do not 57# but earlier versions do not
48float_test "$TARVERSION > 1.23" && needtar="0" 58float_test "$TARVERSION > 1.23" && needtar="0"
49 59
50if [ "`pwd`" != "$BUILDDIR" ] ; then
51 echo "BitBake must be run from your build directory: $BUILDDIR"
52 exit 1
53fi
54
55buildpseudo="1" 60buildpseudo="1"
56if [ $needpseudo = "1" ]; then 61if [ $needpseudo = "1" ]; then
57 if [ -e "$BUILDDIR/pseudodone" ]; then 62 if [ -e "$BUILDDIR/pseudodone" ]; then