diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bitbake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/bitbake b/scripts/bitbake index eb9e14fae1..7a59c6f52a 100755 --- a/scripts/bitbake +++ b/scripts/bitbake | |||
@@ -53,8 +53,12 @@ if [ "`pwd`" != "$BUILDDIR" ] ; then | |||
53 | fi | 53 | fi |
54 | 54 | ||
55 | buildpseudo="1" | 55 | buildpseudo="1" |
56 | if [ $needpseudo = "1" ] && [ -e "$BUILDDIR/pseudodone" ]; then | 56 | if [ $needpseudo = "1" ]; then |
57 | PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` | 57 | if [ -e "$BUILDDIR/pseudodone" ]; then |
58 | PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` | ||
59 | else | ||
60 | PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2` | ||
61 | fi | ||
58 | if [ -e "$PSEUDOBINDIR/pseudo" ]; then | 62 | if [ -e "$PSEUDOBINDIR/pseudo" ]; then |
59 | buildpseudo="0" | 63 | buildpseudo="0" |
60 | fi | 64 | fi |
@@ -69,6 +73,9 @@ if [ $needpseudo = "1" ] && [ -e "$BUILDDIR/pseudodone" ]; then | |||
69 | buildpseudo="2" | 73 | buildpseudo="2" |
70 | fi | 74 | fi |
71 | fi | 75 | fi |
76 | if [ $buildpseudo = "0" -a ! -e "$BUILDDIR/pseudodone" ] ; then | ||
77 | echo $PSEUDOBINDIR > $BUILDDIR/pseudodone | ||
78 | fi | ||
72 | fi | 79 | fi |
73 | 80 | ||
74 | # If tar is already built, we don't want to do it again... | 81 | # If tar is already built, we don't want to do it again... |
@@ -130,7 +137,6 @@ BITBAKE=`which bitbake` | |||
130 | export PATH=$OLDPATH | 137 | export PATH=$OLDPATH |
131 | if [ $needpseudo = "1" ]; then | 138 | if [ $needpseudo = "1" ]; then |
132 | export PSEUDO_BUILD=2 | 139 | export PSEUDO_BUILD=2 |
133 | PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` | ||
134 | PSEUDO_BINDIR=$PSEUDOBINDIR PSEUDO_LIBDIR=$PSEUDOBINDIR/../lib/pseudo/lib PSEUDO_PREFIX=$PSEUDOBINDIR/../../ PSEUDO_DISABLED=1 $PSEUDOBINDIR/pseudo $BITBAKE $@ | 140 | PSEUDO_BINDIR=$PSEUDOBINDIR PSEUDO_LIBDIR=$PSEUDOBINDIR/../lib/pseudo/lib PSEUDO_PREFIX=$PSEUDOBINDIR/../../ PSEUDO_DISABLED=1 $PSEUDOBINDIR/pseudo $BITBAKE $@ |
135 | else | 141 | else |
136 | export PSEUDO_BUILD=0 | 142 | export PSEUDO_BUILD=0 |