Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # possible arch values are arm aarch64 mips mipsel mips64 mips64el ppc ppc64 ppc64abi32 |
| 2 | # ppcemb armeb alpha sparc32plus i386 x86_64 cris m68k microblaze sparc sparc32 |
| 3 | # sparc32plus |
| 4 | |
| 5 | def get_qemu_target_list(d): |
| 6 | import bb |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | archs = d.getVar('QEMU_TARGETS').split() |
| 8 | tos = d.getVar('HOST_OS') |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | softmmuonly = "" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 10 | for arch in ['ppcemb', 'lm32']: |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | if arch in archs: |
| 12 | softmmuonly += arch + "-softmmu," |
| 13 | archs.remove(arch) |
| 14 | linuxuseronly = "" |
| 15 | for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']: |
| 16 | if arch in archs: |
| 17 | linuxuseronly += arch + "-linux-user," |
| 18 | archs.remove(arch) |
| 19 | if 'linux' not in tos: |
| 20 | return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',') |
| 21 | return softmmuonly + linuxuseronly + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',') |
| 22 | |