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-git | |
| 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-git')
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-git/enable-i386-linux-user.patch | 55 | ||||
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-git/linker-flags.patch | 25 | ||||
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-git/no-strip.patch | 15 | ||||
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-git/powerpc_rom.bin | bin | 4096 -> 0 bytes | |||
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-git/qemu-vmware-vga-depth.patch | 118 | ||||
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-git/remove-hardcoded-libexec.patch | 41 |
6 files changed, 0 insertions, 254 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-git/enable-i386-linux-user.patch b/meta/recipes-devtools/qemu/qemu-git/enable-i386-linux-user.patch deleted file mode 100644 index 76ed3a862e..0000000000 --- a/meta/recipes-devtools/qemu/qemu-git/enable-i386-linux-user.patch +++ /dev/null | |||
| @@ -1,55 +0,0 @@ | |||
| 1 | Enable i386-linux-user | ||
| 2 | |||
| 3 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
| 4 | |||
| 5 | Upstream-Status: Inappropriate [configuration] | ||
| 6 | |||
| 7 | Index: qemu-0.14.0/Makefile.target | ||
| 8 | =================================================================== | ||
| 9 | --- qemu-0.14.0.orig/Makefile.target | ||
| 10 | +++ qemu-0.14.0/Makefile.target | ||
| 11 | @@ -78,8 +78,13 @@ ifeq ($(TARGET_BASE_ARCH), i386) | ||
| 12 | libobj-y += cpuid.o | ||
| 13 | endif | ||
| 14 | libobj-$(CONFIG_NEED_MMU) += mmu.o | ||
| 15 | +ifndef CONFIG_LINUX_USER | ||
| 16 | libobj-$(TARGET_I386) += helper_opengl.o opengl_exec.o | ||
| 17 | libobj-$(TARGET_X86_64) += helper_opengl.o opengl_exec.o | ||
| 18 | +else | ||
| 19 | +libobj-$(TARGET_I386) += dummygl.o | ||
| 20 | +libobj-$(TARGET_X86_64) += dummygl.o | ||
| 21 | +endif #CONFIG_LINUX_USER | ||
| 22 | libobj-$(TARGET_ARM) += dummygl.o | ||
| 23 | libobj-$(TARGET_MIPS) += dummygl.o | ||
| 24 | libobj-$(TARGET_PPC) += dummygl.o | ||
| 25 | Index: qemu-0.14.0/target-i386/dummygl.c | ||
| 26 | =================================================================== | ||
| 27 | --- /dev/null | ||
| 28 | +++ qemu-0.14.0/target-i386/dummygl.c | ||
| 29 | @@ -0,0 +1,26 @@ | ||
| 30 | +#include <string.h> | ||
| 31 | +#include <stdlib.h> | ||
| 32 | +#include <assert.h> | ||
| 33 | +#include <stdint.h> | ||
| 34 | +#include <X11/Xlib.h> | ||
| 35 | +#include <X11/Xutil.h> | ||
| 36 | + | ||
| 37 | +void opengl_exec_set_parent_window(Display* _dpy, Window _parent_window) | ||
| 38 | +{ | ||
| 39 | + | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | +void opengl_process_enable(void) | ||
| 43 | +{ | ||
| 44 | + | ||
| 45 | +} | ||
| 46 | + | ||
| 47 | + | ||
| 48 | +void mem_opengl(uint64_t ptr) | ||
| 49 | +{ | ||
| 50 | + | ||
| 51 | +} | ||
| 52 | + | ||
| 53 | +void helper_opengl(void) | ||
| 54 | +{ | ||
| 55 | +} | ||
diff --git a/meta/recipes-devtools/qemu/qemu-git/linker-flags.patch b/meta/recipes-devtools/qemu/qemu-git/linker-flags.patch deleted file mode 100644 index 4569643a64..0000000000 --- a/meta/recipes-devtools/qemu/qemu-git/linker-flags.patch +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | Fedora 13 switched the default behaviour of the linker to no longer | ||
| 2 | indirectly link to required libraries (i.e. dependencies of a library | ||
| 3 | already linked to). Therefore we need to explicitly pass the depended on | ||
| 4 | libraries into the linker for building to work on Fedora 13. | ||
| 5 | |||
| 6 | More information is available on the Fedora Wiki: | ||
| 7 | https://fedoraproject.org/wiki/UnderstandingDSOLinkChange | ||
| 8 | |||
| 9 | JL - 15/06/10 | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [configuration] | ||
| 12 | |||
| 13 | Index: qemu-0.14.0/Makefile.target | ||
| 14 | =================================================================== | ||
| 15 | --- qemu-0.14.0.orig/Makefile.target | ||
| 16 | +++ qemu-0.14.0/Makefile.target | ||
| 17 | @@ -218,7 +218,7 @@ obj-$(CONFIG_REALLY_VIRTFS) += virtio-9p | ||
| 18 | obj-y += rwhandler.o | ||
| 19 | obj-$(CONFIG_KVM) += kvm.o kvm-all.o | ||
| 20 | obj-$(CONFIG_NO_KVM) += kvm-stub.o | ||
| 21 | -LIBS+=-lz | ||
| 22 | +LIBS+=-lz -lX11 -ldl | ||
| 23 | |||
| 24 | QEMU_CFLAGS += $(VNC_TLS_CFLAGS) | ||
| 25 | QEMU_CFLAGS += $(VNC_SASL_CFLAGS) | ||
diff --git a/meta/recipes-devtools/qemu/qemu-git/no-strip.patch b/meta/recipes-devtools/qemu/qemu-git/no-strip.patch deleted file mode 100644 index 098070adfc..0000000000 --- a/meta/recipes-devtools/qemu/qemu-git/no-strip.patch +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | Upstream-Status: Inappropriate [configuration] | ||
| 2 | |||
| 3 | Index: qemu-0.14.0/Makefile | ||
| 4 | =================================================================== | ||
| 5 | --- qemu-0.14.0.orig/Makefile | ||
| 6 | +++ qemu-0.14.0/Makefile | ||
| 7 | @@ -235,7 +235,7 @@ install-sysconfig: | ||
| 8 | install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig | ||
| 9 | $(INSTALL_DIR) "$(DESTDIR)$(bindir)" | ||
| 10 | ifneq ($(TOOLS),) | ||
| 11 | - $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" | ||
| 12 | + $(INSTALL_PROG) $(TOOLS) "$(DESTDIR)$(bindir)" | ||
| 13 | endif | ||
| 14 | ifneq ($(BLOBS),) | ||
| 15 | $(INSTALL_DIR) "$(DESTDIR)$(datadir)" | ||
diff --git a/meta/recipes-devtools/qemu/qemu-git/powerpc_rom.bin b/meta/recipes-devtools/qemu/qemu-git/powerpc_rom.bin deleted file mode 100644 index c4044296c5..0000000000 --- a/meta/recipes-devtools/qemu/qemu-git/powerpc_rom.bin +++ /dev/null | |||
| Binary files differ | |||
diff --git a/meta/recipes-devtools/qemu/qemu-git/qemu-vmware-vga-depth.patch b/meta/recipes-devtools/qemu/qemu-git/qemu-vmware-vga-depth.patch deleted file mode 100644 index c4c5424e16..0000000000 --- a/meta/recipes-devtools/qemu/qemu-git/qemu-vmware-vga-depth.patch +++ /dev/null | |||
| @@ -1,118 +0,0 @@ | |||
| 1 | # fix VMware VGA driver depth calculation error, which may cause segmentation fault | ||
| 2 | # | ||
| 3 | # ktian1, 06/29/2010 | ||
| 4 | |||
| 5 | Upstream-Status: Pending | ||
| 6 | |||
| 7 | Index: qemu-0.14.0/console.h | ||
| 8 | =================================================================== | ||
| 9 | --- qemu-0.14.0.orig/console.h | ||
| 10 | +++ qemu-0.14.0/console.h | ||
| 11 | @@ -171,6 +171,12 @@ struct DisplayAllocator { | ||
| 12 | void (*free_displaysurface)(DisplaySurface *surface); | ||
| 13 | }; | ||
| 14 | |||
| 15 | +struct DisplayPostCallback { | ||
| 16 | + void (*postcall) (void *); | ||
| 17 | + void *parm; | ||
| 18 | + struct DisplayPostCallback *next; | ||
| 19 | +}; | ||
| 20 | + | ||
| 21 | struct DisplayState { | ||
| 22 | struct DisplaySurface *surface; | ||
| 23 | void *opaque; | ||
| 24 | @@ -178,6 +184,7 @@ struct DisplayState { | ||
| 25 | |||
| 26 | struct DisplayAllocator* allocator; | ||
| 27 | struct DisplayChangeListener* listeners; | ||
| 28 | + struct DisplayPostCallback* postcalls; | ||
| 29 | |||
| 30 | void (*mouse_set)(int x, int y, int on); | ||
| 31 | void (*cursor_define)(QEMUCursor *cursor); | ||
| 32 | @@ -229,6 +236,12 @@ static inline void register_displaychang | ||
| 33 | ds->listeners = dcl; | ||
| 34 | } | ||
| 35 | |||
| 36 | +static inline void register_displaypostcallback(DisplayState *ds, DisplayPostCallback *dpc) | ||
| 37 | +{ | ||
| 38 | + dpc->next = ds->postcalls; | ||
| 39 | + ds->postcalls = dpc; | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | static inline void dpy_update(DisplayState *s, int x, int y, int w, int h) | ||
| 43 | { | ||
| 44 | struct DisplayChangeListener *dcl = s->listeners; | ||
| 45 | Index: qemu-0.14.0/hw/vmware_vga.c | ||
| 46 | =================================================================== | ||
| 47 | --- qemu-0.14.0.orig/hw/vmware_vga.c | ||
| 48 | +++ qemu-0.14.0/hw/vmware_vga.c | ||
| 49 | @@ -1001,8 +1001,9 @@ static void vmsvga_update_display(void * | ||
| 50 | } | ||
| 51 | } | ||
| 52 | |||
| 53 | -static void vmsvga_reset(struct vmsvga_state_s *s) | ||
| 54 | +static void vmsvga_reset(void *parm) | ||
| 55 | { | ||
| 56 | + struct vmsvga_state_s *s = (struct vmsvga_state_s *)parm; | ||
| 57 | s->index = 0; | ||
| 58 | s->enable = 0; | ||
| 59 | s->config = 0; | ||
| 60 | @@ -1207,6 +1208,8 @@ static const VMStateDescription vmstate_ | ||
| 61 | |||
| 62 | static void vmsvga_init(struct vmsvga_state_s *s, int vga_ram_size) | ||
| 63 | { | ||
| 64 | + DisplayPostCallback *dpc; | ||
| 65 | + | ||
| 66 | s->scratch_size = SVGA_SCRATCH_SIZE; | ||
| 67 | s->scratch = qemu_malloc(s->scratch_size * 4); | ||
| 68 | |||
| 69 | @@ -1224,7 +1227,10 @@ static void vmsvga_init(struct vmsvga_st | ||
| 70 | vga_init(&s->vga); | ||
| 71 | vmstate_register(NULL, 0, &vmstate_vga_common, &s->vga); | ||
| 72 | |||
| 73 | - vmsvga_reset(s); | ||
| 74 | + dpc = qemu_mallocz(sizeof(DisplayPostCallback)); | ||
| 75 | + dpc->postcall = vmsvga_reset; | ||
| 76 | + dpc->parm = s; | ||
| 77 | + register_displaypostcallback(s->vga.ds, dpc); | ||
| 78 | } | ||
| 79 | |||
| 80 | static void pci_vmsvga_map_ioport(PCIDevice *pci_dev, int region_num, | ||
| 81 | Index: qemu-0.14.0/qemu-common.h | ||
| 82 | =================================================================== | ||
| 83 | --- qemu-0.14.0.orig/qemu-common.h | ||
| 84 | +++ qemu-0.14.0/qemu-common.h | ||
| 85 | @@ -241,6 +241,7 @@ typedef struct DisplayState DisplayState | ||
| 86 | typedef struct DisplayChangeListener DisplayChangeListener; | ||
| 87 | typedef struct DisplaySurface DisplaySurface; | ||
| 88 | typedef struct DisplayAllocator DisplayAllocator; | ||
| 89 | +typedef struct DisplayPostCallback DisplayPostCallback; | ||
| 90 | typedef struct PixelFormat PixelFormat; | ||
| 91 | typedef struct TextConsole TextConsole; | ||
| 92 | typedef TextConsole QEMUConsole; | ||
| 93 | Index: qemu-0.14.0/vl.c | ||
| 94 | =================================================================== | ||
| 95 | --- qemu-0.14.0.orig/vl.c | ||
| 96 | +++ qemu-0.14.0/vl.c | ||
| 97 | @@ -1920,6 +1920,7 @@ int main(int argc, char **argv, char **e | ||
| 98 | char boot_devices[33] = "cad"; /* default to HD->floppy->CD-ROM */ | ||
| 99 | DisplayState *ds; | ||
| 100 | DisplayChangeListener *dcl; | ||
| 101 | + DisplayPostCallback *dpc; | ||
| 102 | int cyls, heads, secs, translation; | ||
| 103 | QemuOpts *hda_opts = NULL, *opts; | ||
| 104 | QemuOptsList *olist; | ||
| 105 | @@ -3101,6 +3102,13 @@ int main(int argc, char **argv, char **e | ||
| 106 | |||
| 107 | /* display setup */ | ||
| 108 | dpy_resize(ds); | ||
| 109 | + dpc = ds->postcalls; | ||
| 110 | + while (dpc != NULL) { | ||
| 111 | + if (dpc->postcall != NULL) | ||
| 112 | + dpc->postcall(dpc->parm); | ||
| 113 | + dpc = dpc->next; | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | dcl = ds->listeners; | ||
| 117 | while (dcl != NULL) { | ||
| 118 | if (dcl->dpy_refresh != NULL) { | ||
diff --git a/meta/recipes-devtools/qemu/qemu-git/remove-hardcoded-libexec.patch b/meta/recipes-devtools/qemu/qemu-git/remove-hardcoded-libexec.patch deleted file mode 100644 index 83f5463aad..0000000000 --- a/meta/recipes-devtools/qemu/qemu-git/remove-hardcoded-libexec.patch +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | This will allow the libexecdir to be set on the command line | ||
| 2 | and have the files installed and used from the correct location | ||
| 3 | |||
| 4 | Upstream-Status: Inappropriate [oe-core specific] | ||
| 5 | |||
| 6 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 7 | |||
| 8 | Index: qemu-1.2.0/configure | ||
| 9 | =================================================================== | ||
| 10 | --- qemu-1.2.0.orig/configure | ||
| 11 | +++ qemu-1.2.0/configure | ||
| 12 | @@ -183,6 +183,7 @@ datadir="\${prefix}/share" | ||
| 13 | qemu_docdir="\${prefix}/share/doc/qemu" | ||
| 14 | bindir="\${prefix}/bin" | ||
| 15 | libdir="\${prefix}/lib" | ||
| 16 | +libexecdir="\${prefix}/libexec" | ||
| 17 | includedir="\${prefix}/include" | ||
| 18 | sysconfdir="\${prefix}/etc" | ||
| 19 | confsuffix="/qemu" | ||
| 20 | @@ -644,7 +645,9 @@ for opt do | ||
| 21 | ;; | ||
| 22 | --sysconfdir=*) sysconfdir="$optarg" | ||
| 23 | ;; | ||
| 24 | - --sbindir=*|--libexecdir=*|--sharedstatedir=*|--localstatedir=*|\ | ||
| 25 | + --libexecdir=*) libexecdir="$optarg" | ||
| 26 | + ;; | ||
| 27 | + --sbindir=*|--sharedstatedir=*|--localstatedir=*|\ | ||
| 28 | --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\ | ||
| 29 | --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*) | ||
| 30 | # These switches are silently ignored, for compatibility with | ||
| 31 | @@ -3190,8 +3193,8 @@ echo "sysconfdir=$sysconfdir" >> $config | ||
| 32 | echo "qemu_confdir=$qemu_confdir" >> $config_host_mak | ||
| 33 | echo "qemu_datadir=$qemu_datadir" >> $config_host_mak | ||
| 34 | echo "qemu_docdir=$qemu_docdir" >> $config_host_mak | ||
| 35 | -echo "libexecdir=\${prefix}/libexec" >> $config_host_mak | ||
| 36 | -echo "CONFIG_QEMU_HELPERDIR=\"$prefix/libexec\"" >> $config_host_mak | ||
| 37 | +echo "libexecdir=$libexecdir" >> $config_host_mak | ||
| 38 | +echo "CONFIG_QEMU_HELPERDIR=$libexecdir" >> $config_host_mak | ||
| 39 | |||
| 40 | echo "ARCH=$ARCH" >> $config_host_mak | ||
| 41 | if test "$debug_tcg" = "yes" ; then | ||
