summaryrefslogtreecommitdiff
path: root/meta/classes/qemu.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-07 13:34:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-07 15:24:57 +0000
commite8ec13a26217bf473504ae4aab22b134dd9dffff (patch)
tree3f286860f47de9d59ab35bacc4ffe039b23563ed /meta/classes/qemu.bbclass
parent41163fc5e6662251ec264fd5194a649342d11de1 (diff)
downloadopenembedded-core-e8ec13a26217bf473504ae4aab22b134dd9dffff.tar.gz
openembedded-core-e8ec13a26217bf473504ae4aab22b134dd9dffff.tar.bz2
openembedded-core-e8ec13a26217bf473504ae4aab22b134dd9dffff.zip
qemu.bbclass: Use the correct qemu binary in multilib cases
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>
Diffstat (limited to 'meta/classes/qemu.bbclass')
-rw-r--r--meta/classes/qemu.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index 9cefabbf84..cd2e32309d 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -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":