summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-17 09:51:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-17 10:01:35 +0100
commit241bdb0cd5370029bd6cb8286b259e4582334fe9 (patch)
tree7f765c48b8170dc65b44d689fb747327d4d2dbd8 /meta/recipes-devtools/qemu
parent77ebfe74824be4248e4683f70b5ff218dc3b38e1 (diff)
downloadpoky-241bdb0cd5370029bd6cb8286b259e4582334fe9.tar.gz
qemu-targets.inc: Update to handle mingw/darwin
For non-linux targets, don't return linux-user qemu targets. This change also improves readability of the functions through better variable names. (From OE-Core rev: 3ad8107fa0244b8d0f03400bcd82349f97f347f4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu')
-rw-r--r--meta/recipes-devtools/qemu/qemu-targets.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc
index 9f009bf888..5c3565544e 100644
--- a/meta/recipes-devtools/qemu/qemu-targets.inc
+++ b/meta/recipes-devtools/qemu/qemu-targets.inc
@@ -5,14 +5,18 @@
5def get_qemu_target_list(d): 5def get_qemu_target_list(d):
6 import bb 6 import bb
7 archs = d.getVar('QEMU_TARGETS', True).split() 7 archs = d.getVar('QEMU_TARGETS', True).split()
8 targets = "" 8 tos = d.getVar('HOST_OS', True)
9 softmmuonly = ""
9 for arch in ['mips64', 'mips64el', 'ppcemb']: 10 for arch in ['mips64', 'mips64el', 'ppcemb']:
10 if arch in archs: 11 if arch in archs:
11 targets += arch + "-softmmu," 12 softmmuonly += arch + "-softmmu,"
12 archs.remove(arch) 13 archs.remove(arch)
14 linuxuseronly = ""
13 for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']: 15 for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
14 if arch in archs: 16 if arch in archs:
15 targets += arch + "-linux-user," 17 linuxuseronly += arch + "-linux-user,"
16 archs.remove(arch) 18 archs.remove(arch)
17 return targets + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',') 19 if 'linux' not in tos:
20 return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
21 return softmmuonly + linuxuseronly + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
18 22