Skip to content

Commit

Permalink
oebb.sh: add workaround for -k propagating errors
Browse files Browse the repository at this point in the history
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information
koenkooi committed Oct 29, 2014
1 parent fc5860f commit 0d13b6b
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions oebb.sh
Expand Up @@ -254,16 +254,20 @@ function oe_build()
echo "Executing: bitbake" $*
bitbake $*
rc=$?
if [[ $rc != 0 ]] ; then
exit $rc
if [ -z $IGNOREERRORS ] ; then
if [[ $rc != 0 ]] ; then
exit $rc
fi
fi
else
echo "Executing: MACHINE=${MACHINE} bitbake" $*
MACHINE=${MACHINE} bitbake $*
rc=$?
if [[ $rc != 0 ]] ; then
exit $rc
fi
if [ -z $IGNOREERRORS ] ; then
if [[ $rc != 0 ]] ; then
exit $rc
fi
fi
fi
}

Expand Down Expand Up @@ -445,6 +449,14 @@ then
exit 0
;;

"bitbake-k" )

shift
export IGNOREERRORS="1"
oe_build $*
exit 0
;;

"bitbake" )

shift
Expand Down

0 comments on commit 0d13b6b

Please sign in to comment.