[OE-core] [PATCH 02/16] bitbake pseudo wrapper: Don't base success on bitbake return code
Matthew McClintock
msm at freescale.com
Thu Sep 29 04:20:56 UTC 2011
bitbake does not return 0 when a build succeeds. Instead lets look and
make sure the pseudo binaries are created as a proper test of success
Signed-off-by: Matthew McClintock <msm at freescale.com>
---
scripts/bitbake | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/bitbake b/scripts/bitbake
index 587428c..4f4a179 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -61,13 +61,12 @@ if [ $buildpseudo = "1" ]; then
TARTARGET=""
fi
bitbake pseudo-native $TARTARGET -c populate_sysroot
+ PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
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
+ if [ ! -e $PSEUDOBINDIR/pseudo ]; then
exit 1
fi
echo $PSEUDOBINDIR > $BUILDDIR/pseudodone
--
1.7.6.1
More information about the Openembedded-core
mailing list