summaryrefslogtreecommitdiffstats
path: root/scripts/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-17 13:51:30 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-17 16:14:06 +0000
commitf04e6a59b4c6eedb4ecdc9e7cfa483e1f0449578 (patch)
treebb6f76a64e178db53c52397938a29be5c3c5736c /scripts/bitbake
parent38a4698bb33e634e697185a94cc2e108b0d23a86 (diff)
downloadpoky-f04e6a59b4c6eedb4ecdc9e7cfa483e1f0449578.tar.gz
scripts/bitbake: Add wrapper script which ensures pseudo is built and available
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts/bitbake')
-rwxr-xr-xscripts/bitbake25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
new file mode 100755
index 0000000000..2c03314e0b
--- /dev/null
+++ b/scripts/bitbake
@@ -0,0 +1,25 @@
1#!/bin/sh
2OLDPATH=$PATH
3export PATH=`echo $PATH | sed s#[^:]*/scripts:##`
4if [ ! -e "$BUILDDIR/pseudodone" ]; then
5 echo "Pseudo has not been built, building this first before the main build"
6 bitbake pseudo-native
7 ret=$?
8 if [ "$ret" != "0" ]; then
9 exit 1
10 fi
11 PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
12 ret=$?
13 if [ "$ret" != "0" ]; then
14 exit 1
15 fi
16 echo $PSEUDOBINDIR > $BUILDDIR/pseudodone
17 # This needs to exist in case pseudo has to log somewhere
18 mkdir -p $PSEUDOBINDIR/../../var/pseudo
19fi
20BITBAKE=`which bitbake`
21export PATH=$OLDPATH
22PSEUDOBINDIR=`cat $BUILDDIR/pseudodone`
23PSEUDO_BINDIR=$PSEUDOBINDIR PSEUDO_LIBDIR=$PSEUDOBINDIR/../lib/pseudo/lib PSEUDO_PREFIX=$PSEUDOBINDIR/../../ PSEUDO_DISABLED=1 $PSEUDOBINDIR/pseudo $BITBAKE $@
24ret=$?
25exit $ret