M7350/oe-core/meta/recipes-devtools/qemu/qemu-targets.inc

23 lines
940 B
PHP
Raw Normal View History

2024-09-09 08:57:42 +00:00
# possible arch values are arm aarch64 mips mipsel mips64 mips64el ppc ppc64 ppc64abi32
2024-09-09 08:52:07 +00:00
# ppcemb armeb alpha sparc32plus i386 x86_64 cris m68k microblaze sparc sparc32
# sparc32plus
def get_qemu_target_list(d):
import bb
archs = d.getVar('QEMU_TARGETS', True).split()
2024-09-09 08:57:42 +00:00
tos = d.getVar('HOST_OS', True)
softmmuonly = ""
2024-09-09 08:52:07 +00:00
for arch in ['mips64', 'mips64el', 'ppcemb']:
if arch in archs:
2024-09-09 08:57:42 +00:00
softmmuonly += arch + "-softmmu,"
archs.remove(arch)
linuxuseronly = ""
2024-09-09 08:52:07 +00:00
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
if arch in archs:
2024-09-09 08:57:42 +00:00
linuxuseronly += arch + "-linux-user,"
archs.remove(arch)
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(',')
2024-09-09 08:52:07 +00:00