mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) (From OE-Core rev: 7c552996597faaee2fbee185b250c0ee30ea3b5f) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
23 lines
906 B
C++
23 lines
906 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').split()
|
|
tos = d.getVar('HOST_OS')
|
|
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(',')
|
|
|