summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu-targets.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-03-25 15:52:33 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-31 22:02:51 +0100
commita9441d438279706e4da6236a8f152d63d96a44a0 (patch)
tree4e06aabf43957c0bb04a78577e94a5d55dedc994 /meta/recipes-devtools/qemu/qemu-targets.inc
parent6714db4aa6705b9007a9b49399de46eca39de6f1 (diff)
downloadpoky-a9441d438279706e4da6236a8f152d63d96a44a0.tar.gz
qemu.inc: Add sh4,sh4eb,mips64,mips64el targets
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>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu-targets.inc')
-rw-r--r--meta/recipes-devtools/qemu/qemu-targets.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc
new file mode 100644
index 0000000000..550a7fe1b5
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu-targets.inc
@@ -0,0 +1,18 @@
1# possible arch values are arm mips mipsel mips64 mips64el ppc ppc64 ppc64abi32
2# ppcemb armeb alpha sparc32plus i386 x86_64 cris m68k microblaze sparc sparc32
3# sparc32plus
4
5def get_qemu_target_list(d):
6 import bb
7 archs = bb.data.getVar('QEMU_TARGETS', d, True).split()
8 targets = ""
9 for arch in ['mips64', 'mips64el', 'ppcemb']:
10 if arch in archs:
11 targets += arch + "-softmmu,"
12 archs.remove(arch)
13 for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
14 if arch in archs:
15 targets += arch + "-linux-user,"
16 archs.remove(arch)
17 return targets + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
18