mirror of
https://git.yoctoproject.org/poky
synced 2026-09-08 12:49:32 +02:00
In order to leavarage more emulations in oe-core these targets needs to be built as well Introduce new variable QEMU_TARGETS which can be set by user to decide what all machine support should be build into qemu-native This one works adding same to qemu.inc does not parse presumably a bitbake problem. (From OE-Core rev: 62ced6b84bf650ce4cf101491614613ec8fc17af) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
19 lines
713 B
C++
19 lines
713 B
C++
# possible arch values are arm 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 = bb.data.getVar('QEMU_TARGETS', d, True).split()
|
|
targets = ""
|
|
for arch in ['mips64', 'mips64el', 'ppcemb']:
|
|
if arch in archs:
|
|
targets += arch + "-softmmu,"
|
|
archs.remove(arch)
|
|
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
|
|
if arch in archs:
|
|
targets += arch + "-linux-user,"
|
|
archs.remove(arch)
|
|
return targets + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
|
|
|