summaryrefslogtreecommitdiffstats
path: root/scripts/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bitbake')
-rwxr-xr-xscripts/bitbake24
1 files changed, 21 insertions, 3 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 2c03314e0b..df4e215fc5 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -1,7 +1,20 @@
1#!/bin/sh 1#!/bin/sh
2NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment"
3no_build="0"
4for opt in $@; do
5for key in $NO_BUILD_OPTS; do
6 if [ $opt == $key ]
7 then
8 no_build="1"
9 break
10 fi
11done
12[ $no_build == "1" ] && break
13done
14
2OLDPATH=$PATH 15OLDPATH=$PATH
3export PATH=`echo $PATH | sed s#[^:]*/scripts:##` 16export PATH=`echo $PATH | sed s#[^:]*/scripts:##`
4if [ ! -e "$BUILDDIR/pseudodone" ]; then 17if [ ! -e "$BUILDDIR/pseudodone" -a $no_build == "0" ]; then
5 echo "Pseudo has not been built, building this first before the main build" 18 echo "Pseudo has not been built, building this first before the main build"
6 bitbake pseudo-native 19 bitbake pseudo-native
7 ret=$? 20 ret=$?
@@ -19,7 +32,12 @@ if [ ! -e "$BUILDDIR/pseudodone" ]; then
19fi 32fi
20BITBAKE=`which bitbake` 33BITBAKE=`which bitbake`
21export PATH=$OLDPATH 34export PATH=$OLDPATH
22PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` 35if [ $no_build == "0" ]
23PSEUDO_BINDIR=$PSEUDOBINDIR PSEUDO_LIBDIR=$PSEUDOBINDIR/../lib/pseudo/lib PSEUDO_PREFIX=$PSEUDOBINDIR/../../ PSEUDO_DISABLED=1 $PSEUDOBINDIR/pseudo $BITBAKE $@ 36then
37 PSEUDOBINDIR=`cat $BUILDDIR/pseudodone`
38 PSEUDO_BINDIR=$PSEUDOBINDIR PSEUDO_LIBDIR=$PSEUDOBINDIR/../lib/pseudo/lib PSEUDO_PREFIX=$PSEUDOBINDIR/../../ PSEUDO_DISABLED=1 $PSEUDOBINDIR/pseudo $BITBAKE $@
39else
40 $BITBAKE $@
41fi
24ret=$? 42ret=$?
25exit $ret 43exit $ret