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>
This commit is contained in:
parent
2305c0038d
commit
18afc88038
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue