diff options
author | Constantin Musca <constantinx.musca@intel.com> | 2012-12-10 10:08:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-13 15:18:42 +0000 |
commit | 505f88fd3e169b3481c2bb2afbef535db00d095f (patch) | |
tree | ac8046059d916008a8fa8941cddd9dcaedfbf9b0 /meta/recipes-devtools/qemu/qemu.inc | |
parent | 24b4976a42bd6eb0e89a555ccfce71931c7c6957 (diff) | |
download | poky-505f88fd3e169b3481c2bb2afbef535db00d095f.tar.gz |
qemu: upgrade to 1.3.0
remove-hardcoded-libexec.patch: removed
- included in the new version
qemu-vmware-vga-depth.patch: removed
- doesn't apply anymore
- the problem addressed by the patch is fixed by
reverting commit 1f202568e0553b416483e5993f1bde219c22cf72
Revert-vmware_vga-Add-back-some-info-in-local-state-.patch:
- VMware VGA requires that the depth presented to the guest
to be the same as the Display Surface depth in order to do not
corrupt the display
- do not cache the DS depth (the depth might change)
- revert commit 1f202568
- QEMU now uses pixman (DEPENDS += "pixman")
- rearrange the recipe in order to mimic the bitbake flow
- update both variants (.tar.bz2, git)
(From OE-Core rev: 7622c4f6c050f26f252066a0fcaacdbf340dcefa)
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 66 |
1 files changed, 51 insertions, 15 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 95556ba8f7..ca411a6ef9 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -1,23 +1,54 @@ | |||
1 | DESCRIPTION = "open source processor emulator" | 1 | DESCRIPTION = "open source processor emulator" |
2 | HOMEPAGE = "http://qemu.org" | 2 | HOMEPAGE = "http://qemu.org" |
3 | LICENSE = "GPLv2 & LGPLv2.1" | 3 | LICENSE = "GPLv2 & LGPLv2.1" |
4 | DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11" | 4 | DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman" |
5 | DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native" | ||
6 | DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman" | ||
7 | RDEPENDS_class-nativesdk = "nativesdk-libsdl" | ||
8 | |||
9 | require qemu-targets.inc | ||
10 | inherit autotools | ||
11 | BBCLASSEXTEND = "native nativesdk" | ||
5 | 12 | ||
6 | # QEMU_TARGETS is overridable variable | 13 | # QEMU_TARGETS is overridable variable |
7 | QEMU_TARGETS ?= "arm i386 mips mipsel mips64 mips64el ppc sh4 x86_64" | 14 | QEMU_TARGETS ?= "arm i386 mips mipsel mips64 mips64el ppc sh4 x86_64" |
8 | 15 | ||
9 | require qemu-targets.inc | ||
10 | |||
11 | SDL ?= "--disable-sdl" | 16 | SDL ?= "--disable-sdl" |
12 | SDL_class-native ?= "" | 17 | SDL_class-native ?= "" |
13 | SDL_class-nativesdk ?= "" | 18 | SDL_class-nativesdk ?= "" |
14 | 19 | ||
15 | EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370 ${SDL} --disable-curl --disable-vnc-jpeg --disable-bluez" | 20 | SRC_URI = "\ |
21 | file://powerpc_rom.bin \ | ||
22 | file://no-strip.patch \ | ||
23 | file://linker-flags.patch \ | ||
24 | file://fix-configure-checks.patch \ | ||
25 | file://fallback-to-safe-mmap_min_addr.patch \ | ||
26 | file://larger_default_ram_size.patch \ | ||
27 | file://arm-bgr.patch \ | ||
28 | file://Revert-vmware_vga-Add-back-some-info-in-local-state-.patch \ | ||
29 | " | ||
16 | 30 | ||
17 | #EXTRA_OECONF += "--disable-sdl" | 31 | SRC_URI_append_class-nativesdk = "\ |
32 | file://relocatable_sdk.patch \ | ||
33 | " | ||
18 | 34 | ||
35 | EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370 ${SDL} --disable-curl --disable-vnc-jpeg --disable-bluez --with-system-pixman" | ||
19 | 36 | ||
20 | inherit autotools | 37 | EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls \ |
38 | --disable-curl \ | ||
39 | " | ||
40 | |||
41 | do_configure_prepend_class-native() { | ||
42 | # Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed | ||
43 | sed -i 's/-lX11//g' Makefile.target | ||
44 | } | ||
45 | |||
46 | do_configure_prepend_class-nativesdk() { | ||
47 | if [ "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" = "" ] ; then | ||
48 | # Undo the -lX11 added by linker-flags.patch | ||
49 | sed -i 's/-lX11//g' Makefile.target | ||
50 | fi | ||
51 | } | ||
21 | 52 | ||
22 | do_configure() { | 53 | do_configure() { |
23 | # Handle distros such as CentOS 5 32-bit that do not have kvm support | 54 | # Handle distros such as CentOS 5 32-bit that do not have kvm support |
@@ -38,16 +69,21 @@ do_install () { | |||
38 | install -m 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu | 69 | install -m 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu |
39 | } | 70 | } |
40 | 71 | ||
41 | PACKAGECONFIG ??= "" | 72 | # The following fragment will create a wrapper for qemu-mips user emulation |
42 | 73 | # binary in order to work around a segmentation fault issue. Basically, by | |
43 | DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native" | 74 | # default, the reserved virtual address space for 32-on-64 bit is set to 4GB. |
44 | DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0" | 75 | # This will trigger a MMU access fault in the virtual CPU. With this change, |
45 | RDEPENDS_class-nativesdk = "nativesdk-libsdl" | 76 | # the qemu-mips works fine. |
46 | EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls \ | 77 | # IMPORTANT: This piece needs to be removed once the root cause is fixed! |
47 | --disable-curl \ | 78 | do_install_append() { |
48 | " | 79 | if [ -e "${D}/${bindir}/qemu-mips" ]; then |
80 | create_wrapper ${D}/${bindir}/qemu-mips \ | ||
81 | QEMU_RESERVED_VA=0x0 | ||
82 | fi | ||
83 | } | ||
84 | # END of qemu-mips workaround | ||
49 | 85 | ||
50 | BBCLASSEXTEND = "native nativesdk" | 86 | PACKAGECONFIG ??= "" |
51 | 87 | ||
52 | # Qemu target will not build in world build for ARM or Mips | 88 | # Qemu target will not build in world build for ARM or Mips |
53 | BROKEN_qemuarm = "1" | 89 | BROKEN_qemuarm = "1" |