aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-09-11 22:59:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-14 09:49:53 +0100
commit5c3fec058a2d370fbb625901ca1822ce04927ac2 (patch)
tree6bd5a358fae203f256a8888bd43bb102187b8ce2 /scripts/runqemu
parentc24d518b76f07d86de03259048035407ae3bde68 (diff)
downloadopenembedded-core-5c3fec058a2d370fbb625901ca1822ce04927ac2.tar.gz
runqemu: Explicitly specify MACHINE when calling bitbake
When using runqemu with distros outside oe-core then MACHINE may not be there in local.conf so use the one thats available in environment of runqemu which is actually the correct one. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index a3c35091b4..e843946e32 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -281,7 +281,7 @@ setup_tmpdir() {
exit 1; }
# We have bitbake in PATH, get OE_TMPDIR from bitbake
- OE_TMPDIR=`bitbake -e | grep ^TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
+ OE_TMPDIR=`MACHINE=$MACHINE bitbake -e | grep ^TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
if [ -z "$OE_TMPDIR" ]; then
echo "Error: this script needs to be run from your build directory,"
echo "or you need to explicitly set OE_TMPDIR in your environment"