summaryrefslogtreecommitdiffstats
path: root/scripts
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:50:24 +0100
commitd7ef15a063d44ac50c320d9caf393a54c6a630e6 (patch)
tree1af94020e0940489ce169df35b2e43dc3cee10a2 /scripts
parent0496e285f62e05061422e86e4d08e8d8fd577dd5 (diff)
downloadpoky-d7ef15a063d44ac50c320d9caf393a54c6a630e6.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. (From OE-Core rev: 5c3fec058a2d370fbb625901ca1822ce04927ac2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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() {
281 exit 1; } 281 exit 1; }
282 282
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=`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 echo "Error: this script needs to be run from your build directory,"
287 echo "or you need to explicitly set OE_TMPDIR in your environment" 287 echo "or you need to explicitly set OE_TMPDIR in your environment"