From: Otavio Salvador <otavio@ossystems.com.br>
To: OpenEmbedded Core Mailing List
<openembedded-core@lists.openembedded.org>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Subject: [PATCH 1/2] qemu.bbclass: Allow use different QEMU binary depending of target
Date: Fri, 23 Sep 2016 13:42:59 -0300 [thread overview]
Message-ID: <20160923164301.560-1-otavio@ossystems.com.br> (raw)
There are architectures which support running in 32 and 64 bit
flavours however the simulation is provided in a specific QEMU
setting, requiring us to use a different binary. This patch allow this
to be done using, for example:
QEMU_TARGET_BINARY_ppce5500 = "qemu-ppc64abi32"
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
meta/classes/qemu.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index 75739db..f2d4d1c 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -4,6 +4,11 @@
#
def qemu_target_binary(data):
+ package_arch = data.getVar("PACKAGE_ARCH", True)
+ qemu_target_binary = (data.getVar("QEMU_TARGET_BINARY_%s" % package_arch, True) or "")
+ if qemu_target_binary:
+ return qemu_target_binary
+
target_arch = data.getVar("TARGET_ARCH", True)
if target_arch in ("i486", "i586", "i686"):
target_arch = "i386"
--
2.10.0
next reply other threads:[~2016-09-23 16:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 16:42 Otavio Salvador [this message]
2016-09-23 16:43 ` [PATCH 2/2] tune-ppc[65]00.inc: Disable QEMU usermode usage Otavio Salvador
2016-09-23 18:49 ` Khem Raj
2016-09-23 19:06 ` Otavio Salvador
2016-09-26 13:06 ` [PATCH 1/2] qemu.bbclass: Allow use different QEMU binary depending of target Alexander Kanavin
2016-09-26 13:13 ` Otavio Salvador
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=20160923164301.560-1-otavio@ossystems.com.br \
--to=otavio@ossystems.com.br \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.