mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 05:03:03 +01:00
- remove mips64 and mips64el from softmmuonly list to enable user mode, they have been supported since 2012. - keep the softmmuonly list and for loop although there is only one for now in case more supported arches added. (From OE-Core rev: bcc785eefd4071ee2eb769203d24836cac0b3c1b) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
23 lines
918 B
C++
23 lines
918 B
C++
# possible arch values are arm aarch64 mips mipsel mips64 mips64el ppc ppc64 ppc64abi32
|
|
# 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()
|
|
tos = d.getVar('HOST_OS', True)
|
|
softmmuonly = ""
|
|
for arch in ['ppcemb']:
|
|
if arch in archs:
|
|
softmmuonly += arch + "-softmmu,"
|
|
archs.remove(arch)
|
|
linuxuseronly = ""
|
|
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
|
|
if arch in archs:
|
|
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(',')
|
|
|