diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-targets.inc | 18 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 12 |
2 files changed, 27 insertions, 3 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 | |||
5 | def 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 | |||
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index f41b49c15b..0367f504ff 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -3,8 +3,14 @@ HOMEPAGE = "http://qemu.org" | |||
3 | LICENSE = "GPLv2 & LGPLv2.1" | 3 | LICENSE = "GPLv2 & LGPLv2.1" |
4 | DEPENDS = "zlib alsa-lib" | 4 | DEPENDS = "zlib alsa-lib" |
5 | 5 | ||
6 | EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user --disable-werror --disable-vnc-tls --enable-kvm --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370" | 6 | # QEMU_TARGETS is overridable variable |
7 | #EXTRA_OECONF += "--disable-sdl" | 7 | QEMU_TARGETS ?= "arm i386 mips mipsel mips64 mips64el ppc sh4 x86_64" |
8 | |||
9 | require qemu-targets.inc | ||
10 | |||
11 | EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --enable-kvm --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370" | ||
12 | |||
13 | #EXTRA_OECOF += "--disable-sdl" | ||
8 | 14 | ||
9 | inherit autotools | 15 | inherit autotools |
10 | 16 | ||
@@ -34,6 +40,6 @@ do_configure() { | |||
34 | SRC_URI_append_virtclass-nativesdk = " file://glflags.patch;patch=1" | 40 | SRC_URI_append_virtclass-nativesdk = " file://glflags.patch;patch=1" |
35 | DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk qemugl-nativesdk" | 41 | DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk qemugl-nativesdk" |
36 | RDEPENDS_virtclass-nativesdk = "libsdl-nativesdk" | 42 | RDEPENDS_virtclass-nativesdk = "libsdl-nativesdk" |
37 | EXTRA_OECONF_virtclass-nativesdk = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mipsel-linux-user,mips-softmmu,ppc-softmmu --disable-vnc-tls --cross-prefix=${TARGET_PREFIX}" | 43 | EXTRA_OECONF_virtclass-nativesdk += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --cross-prefix=${TARGET_PREFIX}" |
38 | 44 | ||
39 | BBCLASSEXTEND = "native nativesdk" | 45 | BBCLASSEXTEND = "native nativesdk" |