diff options
Diffstat (limited to 'scripts/runqemu')
| -rwxr-xr-x | scripts/runqemu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 82fc4e93b7..c45b2a1c86 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -23,9 +23,13 @@ if [ "x$BUILDDIR" = "x" ]; then | |||
| 23 | type -P bitbake &>/dev/null || { | 23 | type -P bitbake &>/dev/null || { |
| 24 | echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; } | 24 | echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; } |
| 25 | 25 | ||
| 26 | # we have bitbake in PATH, get TMPDIR from the environment | 26 | # we have bitbake in PATH, get TMPDIR and BUILD_SYS from the environment |
| 27 | TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2` | 27 | TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2` |
| 28 | BUILD_SYS=`bitbake -e | grep BUILD_SYS=\" | cut -d '=' -f2 | cut -d '"' -f2` | ||
| 28 | else | 29 | else |
| 30 | BUILD_ARCH=`uname -m` | ||
| 31 | BUILD_OS=`uname | tr '[A-Z]' '[a-z]'` | ||
| 32 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" | ||
| 29 | TMPDIR=$BUILDDIR/tmp | 33 | TMPDIR=$BUILDDIR/tmp |
| 30 | fi | 34 | fi |
| 31 | 35 | ||
