Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/3] runqemu: Explicitly specify MACHINE when calling bitbake
Date: Tue, 11 Sep 2012 22:59:14 -0700	[thread overview]
Message-ID: <1347429555-32159-2-git-send-email-raj.khem@gmail.com> (raw)
In-Reply-To: <1347429555-32159-1-git-send-email-raj.khem@gmail.com>

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>
---
 scripts/runqemu |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index a3c3509..e843946 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"
-- 
1.7.9.5




  reply	other threads:[~2012-09-12  6:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12  5:59 [PATCH V2 1/3] kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC Khem Raj
2012-09-12  5:59 ` Khem Raj [this message]
2012-09-12 22:12   ` [PATCH 2/3] runqemu: Explicitly specify MACHINE when calling bitbake Scott Garman
2012-09-14 15:42   ` Saul Wold
2012-09-12  5:59 ` [PATCH 3/3] uclibc: Revert systemd regressing patch from upsteam uclibc Khem Raj
2012-09-12  6:37   ` Phil Blundell
2012-09-12  7:53     ` Khem Raj
2012-09-12  6:32 ` [PATCH V2 1/3] kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC Phil Blundell
2012-09-12  7:49   ` Khem Raj
2012-09-13 18:02     ` Koen Kooi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1347429555-32159-2-git-send-email-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox