]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: Explicitly specify MACHINE when calling bitbake
authorKhem Raj <raj.khem@gmail.com>
Wed, 12 Sep 2012 05:59:14 +0000 (22:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Sep 2012 08:49:53 +0000 (09:49 +0100)
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>
scripts/runqemu

index a3c35091b42771c74c7b817e85809a6a386e8743..e843946e32a3c3b30ad68dad41d00ef56a4c07e9 100755 (executable)
@@ -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"