mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
@@ -5,14 +5,18 @@
|
|||||||
def get_qemu_target_list(d):
|
def get_qemu_target_list(d):
|
||||||
import bb
|
import bb
|
||||||
archs = d.getVar('QEMU_TARGETS', True).split()
|
archs = d.getVar('QEMU_TARGETS', True).split()
|
||||||
targets = ""
|
tos = d.getVar('HOST_OS', True)
|
||||||
|
softmmuonly = ""
|
||||||
for arch in ['mips64', 'mips64el', 'ppcemb']:
|
for arch in ['mips64', 'mips64el', 'ppcemb']:
|
||||||
if arch in archs:
|
if arch in archs:
|
||||||
targets += arch + "-softmmu,"
|
softmmuonly += arch + "-softmmu,"
|
||||||
archs.remove(arch)
|
archs.remove(arch)
|
||||||
|
linuxuseronly = ""
|
||||||
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
|
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
|
||||||
if arch in archs:
|
if arch in archs:
|
||||||
targets += arch + "-linux-user,"
|
linuxuseronly += arch + "-linux-user,"
|
||||||
archs.remove(arch)
|
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(',')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user