diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2016-09-23 13:42:59 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-24 07:30:10 +0100 |
commit | 18afc8803821bfbb013e255723045f974ffeca98 (patch) | |
tree | 98a0322d9943a5ba04146aa0bc2e9c820a68e93a | |
parent | 2305c0038dd7d9d3bffd7babdffc81deafbe45a1 (diff) | |
download | poky-18afc8803821bfbb013e255723045f974ffeca98.tar.gz |
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"
(From OE-Core rev: 9b6d414fd27932ed1325de54e8e867c75b340e3d)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/qemu.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index 75739dbbff..f2d4d1c9e1 100644 --- a/meta/classes/qemu.bbclass +++ b/meta/classes/qemu.bbclass | |||
@@ -4,6 +4,11 @@ | |||
4 | # | 4 | # |
5 | 5 | ||
6 | def qemu_target_binary(data): | 6 | def qemu_target_binary(data): |
7 | package_arch = data.getVar("PACKAGE_ARCH", True) | ||
8 | qemu_target_binary = (data.getVar("QEMU_TARGET_BINARY_%s" % package_arch, True) or "") | ||
9 | if qemu_target_binary: | ||
10 | return qemu_target_binary | ||
11 | |||
7 | target_arch = data.getVar("TARGET_ARCH", True) | 12 | target_arch = data.getVar("TARGET_ARCH", True) |
8 | if target_arch in ("i486", "i586", "i686"): | 13 | if target_arch in ("i486", "i586", "i686"): |
9 | target_arch = "i386" | 14 | target_arch = "i386" |