diff options
-rwxr-xr-x | scripts/runqemu | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index e843946e32..a9f513c7a9 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -283,8 +283,16 @@ setup_tmpdir() { | |||
283 | # We have bitbake in PATH, get OE_TMPDIR from bitbake | 283 | # We have bitbake in PATH, get OE_TMPDIR from bitbake |
284 | OE_TMPDIR=`MACHINE=$MACHINE bitbake -e | grep ^TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2` | 284 | OE_TMPDIR=`MACHINE=$MACHINE bitbake -e | grep ^TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2` |
285 | if [ -z "$OE_TMPDIR" ]; then | 285 | if [ -z "$OE_TMPDIR" ]; then |
286 | echo "Error: this script needs to be run from your build directory," | 286 | # Check for errors from bitbake that the user needs to know about |
287 | echo "or you need to explicitly set OE_TMPDIR in your environment" | 287 | BITBAKE_OUTPUT=`bitbake -e | wc -l` |
288 | if [ "$BITBAKE_OUTPUT" -eq "0" ]; then | ||
289 | echo "Error: this script needs to be run from your build directory," | ||
290 | echo "or you need to explicitly set OE_TMPDIR in your environment" | ||
291 | else | ||
292 | echo "There was an error running bitbake to determine TMPDIR" | ||
293 | echo "Here is the output from 'bitbake -e':" | ||
294 | bitbake -e | ||
295 | fi | ||
288 | exit 1 | 296 | exit 1 |
289 | fi | 297 | fi |
290 | fi | 298 | fi |