summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/qemu/qemu-targets.inc
blob: 550a7fe1b5a6d34e9406ee0be1337dba75bd879d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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(',')