For example with a lib32 multilib, we need to still use the 64 bit
qemu binary in case we do encounter a 64 bit binary.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
#
def qemu_target_binary(data):
- target_arch = data.getVar("TARGET_ARCH", True)
+ target_arch = data.getVar("TARGET_ARCH_MULTILIB_ORIGINAL", True)
+ if not target_arch:
+ target_arch = data.getVar("TARGET_ARCH", True)
if target_arch in ("i486", "i586", "i686"):
target_arch = "i386"
elif target_arch == "powerpc":