summaryrefslogtreecommitdiff
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-07-22 13:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-22 13:14:24 +0100
commitc2f71a86f5eb040932adf695887a1885d760f536 (patch)
treebb9fe2dae3b5a4771cb8ac7f9e39c9d3536ef068 /scripts/runqemu
parent2b84008bc951eadeb72b70d3cd062437b901516f (diff)
downloadopenembedded-core-c2f71a86f5eb040932adf695887a1885d760f536.tar.gz
openembedded-core-c2f71a86f5eb040932adf695887a1885d760f536.tar.bz2
openembedded-core-c2f71a86f5eb040932adf695887a1885d760f536.tar.xz
openembedded-core-c2f71a86f5eb040932adf695887a1885d760f536.zip
poky-env-internal/runqemu: Move BUILD_SYS handling which is runqemu specific into runqemu
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 82fc4e93b..c45b2a1c8 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -23,9 +23,13 @@ if [ "x$BUILDDIR" = "x" ]; then
type -P bitbake &>/dev/null || {
echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; }
- # we have bitbake in PATH, get TMPDIR from the environment
+ # we have bitbake in PATH, get TMPDIR and BUILD_SYS from the environment
TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
+ BUILD_SYS=`bitbake -e | grep BUILD_SYS=\" | cut -d '=' -f2 | cut -d '"' -f2`
else
+ BUILD_ARCH=`uname -m`
+ BUILD_OS=`uname | tr '[A-Z]' '[a-z]'`
+ BUILD_SYS="$BUILD_ARCH-$BUILD_OS"
TMPDIR=$BUILDDIR/tmp
fi