diff options
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-targets.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc index 9f009bf888..5c3565544e 100644 --- a/meta/recipes-devtools/qemu/qemu-targets.inc +++ b/meta/recipes-devtools/qemu/qemu-targets.inc | |||
| @@ -5,14 +5,18 @@ | |||
| 5 | def get_qemu_target_list(d): | 5 | def get_qemu_target_list(d): |
| 6 | import bb | 6 | import bb |
| 7 | archs = d.getVar('QEMU_TARGETS', True).split() | 7 | archs = d.getVar('QEMU_TARGETS', True).split() |
| 8 | targets = "" | 8 | tos = d.getVar('HOST_OS', True) |
| 9 | softmmuonly = "" | ||
| 9 | for arch in ['mips64', 'mips64el', 'ppcemb']: | 10 | for arch in ['mips64', 'mips64el', 'ppcemb']: |
| 10 | if arch in archs: | 11 | if arch in archs: |
| 11 | targets += arch + "-softmmu," | 12 | softmmuonly += arch + "-softmmu," |
| 12 | archs.remove(arch) | 13 | archs.remove(arch) |
| 14 | linuxuseronly = "" | ||
| 13 | for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']: | 15 | for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']: |
| 14 | if arch in archs: | 16 | if arch in archs: |
| 15 | targets += arch + "-linux-user," | 17 | linuxuseronly += arch + "-linux-user," |
| 16 | archs.remove(arch) | 18 | archs.remove(arch) |
| 17 | return targets + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',') | 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(',') | ||
| 18 | 22 | ||
