diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-17 13:51:30 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-17 16:14:06 +0000 |
commit | f04e6a59b4c6eedb4ecdc9e7cfa483e1f0449578 (patch) | |
tree | bb6f76a64e178db53c52397938a29be5c3c5736c | |
parent | 38a4698bb33e634e697185a94cc2e108b0d23a86 (diff) | |
download | openembedded-core-f04e6a59b4c6eedb4ecdc9e7cfa483e1f0449578.tar.gz openembedded-core-f04e6a59b4c6eedb4ecdc9e7cfa483e1f0449578.tar.bz2 openembedded-core-f04e6a59b4c6eedb4ecdc9e7cfa483e1f0449578.zip |
scripts/bitbake: Add wrapper script which ensures pseudo is built and available
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rwxr-xr-x | scripts/bitbake | 25 |
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 @@ +#!/bin/sh +OLDPATH=$PATH +export PATH=`echo $PATH | sed s#[^:]*/scripts:##` +if [ ! -e "$BUILDDIR/pseudodone" ]; then + echo "Pseudo has not been built, building this first before the main build" + bitbake pseudo-native + ret=$? + if [ "$ret" != "0" ]; then + exit 1 + fi + PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2` + ret=$? + if [ "$ret" != "0" ]; then + exit 1 + fi + echo $PSEUDOBINDIR > $BUILDDIR/pseudodone + # This needs to exist in case pseudo has to log somewhere + mkdir -p $PSEUDOBINDIR/../../var/pseudo +fi +BITBAKE=`which bitbake` +export PATH=$OLDPATH +PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` +PSEUDO_BINDIR=$PSEUDOBINDIR PSEUDO_LIBDIR=$PSEUDOBINDIR/../lib/pseudo/lib PSEUDO_PREFIX=$PSEUDOBINDIR/../../ PSEUDO_DISABLED=1 $PSEUDOBINDIR/pseudo $BITBAKE $@ +ret=$? +exit $ret |