]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu.bbclass: Use the correct qemu binary in multilib cases
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Feb 2013 13:34:27 +0000 (13:34 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Feb 2013 15:24:57 +0000 (15:24 +0000)
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>
meta/classes/qemu.bbclass

index 9cefabbf84d3d0aa18fe868e78fe718ce5f162d3..cd2e32309dc031209bdd8c0f6cded4f831471787 100644 (file)
@@ -4,7 +4,9 @@
 #
 
 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":