* [PATCH] qemu-targets.inc: Update to handle mingw/darwin
@ 2014-08-17 8:51 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-08-17 8:51 UTC (permalink / raw)
To: openembedded-core
For non-linux targets, don't return linux-user qemu targets. This change
also improves readability of the functions through better variable names.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc
index 9f009bf..5c35655 100644
--- a/meta/recipes-devtools/qemu/qemu-targets.inc
+++ b/meta/recipes-devtools/qemu/qemu-targets.inc
@@ -5,14 +5,18 @@
def get_qemu_target_list(d):
import bb
archs = d.getVar('QEMU_TARGETS', True).split()
- targets = ""
+ tos = d.getVar('HOST_OS', True)
+ softmmuonly = ""
for arch in ['mips64', 'mips64el', 'ppcemb']:
if arch in archs:
- targets += arch + "-softmmu,"
+ softmmuonly += arch + "-softmmu,"
archs.remove(arch)
+ linuxuseronly = ""
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
if arch in archs:
- targets += arch + "-linux-user,"
+ linuxuseronly += arch + "-linux-user,"
archs.remove(arch)
- return targets + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
+ if 'linux' not in tos:
+ return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
+ return softmmuonly + linuxuseronly + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-17 8:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-17 8:51 [PATCH] qemu-targets.inc: Update to handle mingw/darwin Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox