[oe-commits] [openembedded-core] 01/04: qemu.bbclass: Allow use different QEMU binary depending of target
git at git.openembedded.org
git at git.openembedded.org
Fri Sep 23 16:51:23 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 99552a5af88016cd032451a2e4d1c99db8ba4d6d
Author: Otavio Salvador <otavio at ossystems.com.br>
AuthorDate: Fri Sep 23 13:42:59 2016 -0300
qemu.bbclass: Allow use different QEMU binary depending of target
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 at ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list