qemu-0.12.4: Add recipes for 0.12.4
PATCH 1/1 qemu-0.12.4: Add recipes for 0.12.4
* Tested by booting arm, ppc, mips, sh4, and x86 systems
Signed-off-by Khem Raj <[email protected]>
--- recipes/qemu/qemu-0.12.4/02_kfreebsd.patch | 13 + .../03_support_pselect_in_linux_user_arm.patch | 175 ++++++++++++ recipes/qemu/qemu-0.12.4/05_bochs_vbe.diff | 66 +++++ recipes/qemu/qemu-0.12.4/06_sh4.diff | 287 ++++++++++++++++++++ .../3f26c1227e3b08010f2a65379cecf4cb4b5933fa.patch | 134 +++++++++ recipes/qemu/qemu-0.12.4/91-oh-sdl-cursor.patch | 18 ++ .../c5883be23519921254c6940873ee8db04979c20a.patch | 61 ++++ .../fallback.to.safe.mmap_min_addr.patch | 37 +++ .../qemu/qemu-0.12.4/fix_baum_c_compilation.patch | 30 ++ .../fix_fortify_source_compilation.patch | 15 + recipes/qemu/qemu-0.12.4/leftover.patch | 25 ++ recipes/qemu/qemu_0.12.4.bb | 39 +++ 12 files changed, 900 insertions(+), 0 deletions(-) create mode 100644 recipes/qemu/qemu-0.12.4/02_kfreebsd.patch create mode 100644 recipes/qemu/qemu-0.12.4/03_support_pselect_in_linux_user_arm.patch create mode 100644 recipes/qemu/qemu-0.12.4/05_bochs_vbe.diff create mode 100644 recipes/qemu/qemu-0.12.4/06_sh4.diff create mode 100644 recipes/qemu/qemu-0.12.4/3f26c1227e3b08010f2a65379cecf4cb4b5933fa.patch create mode 100644 recipes/qemu/qemu-0.12.4/91-oh-sdl-cursor.patch create mode 100644 recipes/qemu/qemu-0.12.4/c5883be23519921254c6940873ee8db04979c20a.patch create mode 100644 recipes/qemu/qemu-0.12.4/fallback.to.safe.mmap_min_addr.patch create mode 100644 recipes/qemu/qemu-0.12.4/fix_baum_c_compilation.patch create mode 100644 recipes/qemu/qemu-0.12.4/fix_fortify_source_compilation.patch create mode 100644 recipes/qemu/qemu-0.12.4/leftover.patch create mode 100644 recipes/qemu/qemu_0.12.4.bb
recipes/qemu/qemu-0.12.4/02_kfreebsd.patch new file +13 -0
@@ -0,0 +1,13 @@ +diff --git a/usb-bsd.c b/usb-bsd.c +index 48567a3..a761b61 100644 +--- a/usb-bsd.c ++++ b/usb-bsd.c +@@ -35,7 +35,7 @@ + + #include <sys/ioctl.h> + #ifndef __DragonFly__ +-#include <dev/usb/usb.h> ++#include <legacy/dev/usb/usb.h> + #else + #include <bus/usb/usb.h> + #endif
recipes/qemu/qemu-0.12.4/03_support_pselect_in_linux_user_arm.patch new file +175 -0
175 lines not on this page · raw message
recipes/qemu/qemu-0.12.4/05_bochs_vbe.diff new file +66 -0
66 lines not on this page · raw message
recipes/qemu/qemu-0.12.4/06_sh4.diff new file +287 -0
287 lines not on this page · raw message
recipes/qemu/qemu-0.12.4/3f26c1227e3b08010f2a65379cecf4cb4b5933fa.patch new file +134 -0
134 lines not on this page · raw message
recipes/qemu/qemu-0.12.4/91-oh-sdl-cursor.patch new file +18 -0
@@ -0,0 +1,18 @@ +=== modified file 'sdl.c' +--- + sdl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: qemu/sdl.c +=================================================================== +--- qemu/sdl.c.orig 2008-04-24 20:15:45.000000000 +0100 ++++ qemu/sdl.c 2008-04-24 20:16:12.000000000 +0100 +@@ -247,7 +247,7 @@ + + if (kbd_mouse_is_absolute()) { + SDL_ShowCursor(1); +- SDL_SetCursor(sdl_cursor_hidden); ++ /* SDL_SetCursor(sdl_cursor_hidden); */ + } else { + SDL_ShowCursor(0); + }
recipes/qemu/qemu-0.12.4/c5883be23519921254c6940873ee8db04979c20a.patch new file +61 -0
61 lines not on this page · raw message
recipes/qemu/qemu-0.12.4/fallback.to.safe.mmap_min_addr.patch new file +37 -0
@@ -0,0 +1,37 @@ +From c313f89c33217ac0e471554dace2144718f86669 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Thu, 13 May 2010 12:23:40 +0200 +Subject: [PATCH] linux-user: use default mmap_min_addr 65536 when /proc/sys/vm/mmap_min_addr cannot be read + +* 65536 is default at least for ubuntu and fedora. +--- + linux-user/main.c | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/linux-user/main.c b/linux-user/main.c +index 18b52c0..cf2cc59 100644 +--- a/linux-user/main.c ++++ b/linux-user/main.c +@@ -2728,6 +2728,7 @@ + * When user has explicitly set the quest base, we skip this + * test. + */ ++#define MMAP_MIN_ADDR_DEFAULT 65536 + if (!have_guest_base) { + FILE *fp; + +@@ -2736,8 +2737,14 @@ + if (fscanf(fp, "%lu", &tmp) == 1) { + mmap_min_addr = tmp; + qemu_log("host mmap_min_addr=0x%lx\n", mmap_min_addr); ++ } else { ++ qemu_log("cannot read value from /proc/sys/vm/mmap_min_addr, assuming %d\n", MMAP_MIN_ADDR_DEFAULT); ++ mmap_min_addr = MMAP_MIN_ADDR_DEFAULT; + } + fclose(fp); ++ } else { ++ qemu_log("cannot open /proc/sys/vm/mmap_min_addr for reading, assuming %d\n", MMAP_MIN_ADDR_DEFAULT); ++ mmap_min_addr = MMAP_MIN_ADDR_DEFAULT; + } + } + #endif /* CONFIG_USE_GUEST_BASE */
recipes/qemu/qemu-0.12.4/fix_baum_c_compilation.patch new file +30 -0
@@ -0,0 +1,30 @@ +Index: trunk/hw/baum.c +=================================================================== +--- trunk.orig/hw/baum.c 2008-11-29 05:12:40.418390606 +0300 ++++ trunk/hw/baum.c 2008-11-29 05:13:11.498378426 +0300 +@@ -569,8 +569,10 @@ CharDriverState *chr_baum_init(void) + CharDriverState *chr; + brlapi_handle_t *handle; + #ifdef CONFIG_SDL ++#ifdef SDL_VIDEO_DRIVER_X11 + SDL_SysWMinfo info; + #endif ++#endif + int tty; + + baum = qemu_mallocz(sizeof(BaumDriverState)); +@@ -605,12 +607,14 @@ CharDriverState *chr_baum_init(void) + } + + #ifdef CONFIG_SDL ++#ifdef SDL_VIDEO_DRIVER_X11 + memset(&info, 0, sizeof(info)); + SDL_VERSION(&info.version); + if (SDL_GetWMInfo(&info)) + tty = info.info.x11.wmwindow; + else + #endif ++#endif + tty = BRLAPI_TTY_DEFAULT; + + if (brlapi__enterTtyMode(handle, tty, NULL) == -1) {
recipes/qemu/qemu-0.12.4/fix_fortify_source_compilation.patch new file +15 -0
@@ -0,0 +1,15 @@ +Index: qemu-0.12.3/block/vvfat.c +=================================================================== +--- qemu-0.12.3.orig/block/vvfat.c ++++ qemu-0.12.3/block/vvfat.c +@@ -868,7 +868,9 @@ static int init_directories(BDRVVVFATSta + { + direntry_t* entry=array_get_next(&(s->directory)); + entry->attributes=0x28; /* archive | volume label */ +- snprintf((char*)entry->name,11,"QEMU VVFAT"); ++ // snprintf((char*)entry->name,11,"QEMU VVFAT"); ++ snprintf(entry->name, sizeof(entry->name), "QEMU VV"); ++ snprintf(entry->extension, sizeof(entry->extension), "FAT"); + } + + /* Now build FAT, and write back information into directory */
recipes/qemu/qemu-0.12.4/leftover.patch new file +25 -0
@@ -0,0 +1,25 @@ +Index: qemu-0.10.0/hw/pc.c +=================================================================== +--- qemu-0.10.0.orig/hw/pc.c 2009-03-07 13:47:27.000000000 +0100 ++++ qemu-0.10.0/hw/pc.c 2009-03-07 13:47:30.000000000 +0100 +@@ -390,7 +390,8 @@ + case 0x400: + case 0x401: + fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val); +- exit(1); ++ /* according to documentation, these can be safely ignored */ ++ break; + case 0x402: + case 0x403: + #ifdef DEBUG_BIOS +@@ -413,8 +414,9 @@ + /* LGPL'ed VGA BIOS messages */ + case 0x501: + case 0x502: ++ /* according to documentation, these can be safely ignored */ + fprintf(stderr, "VGA BIOS panic, line %d\n", val); +- exit(1); ++ break; + case 0x500: + case 0x503: + #ifdef DEBUG_BIOS
recipes/qemu/qemu_0.12.4.bb new file +39 -0
@@ -0,0 +1,39 @@ +LICENSE = "GPL" +DEPENDS = "zlib" + +PR = "r0" + +SRC_URI = "\ + http://download.savannah.gnu.org/releases/qemu/qemu-${PV}.tar.gz;name=qemu-${PV} \ + file://02_kfreebsd.patch;patch=1 \ + file://03_support_pselect_in_linux_user_arm.patch;patch=1 \ + file://05_bochs_vbe.diff;patch=1 \ + file://06_sh4.diff;patch=1 \ + file://leftover.patch;patch=1 \ + file://3f26c1227e3b08010f2a65379cecf4cb4b5933fa.patch;patch=1 \ + file://c5883be23519921254c6940873ee8db04979c20a.patch;patch=1 \ + file://91-oh-sdl-cursor.patch;patch=1 \ + file://fix_baum_c_compilation.patch;patch=1 \ + file://fix_fortify_source_compilation.patch;patch=1 \ + file://fallback.to.safe.mmap_min_addr.patch;patch=1 \ + " + +SRC_URI[qemu-0.12.4.md5sum] = "93e6b134dff89b2799f57b7d9e0e0fc5" +SRC_URI[qemu-0.12.4.sha256sum] = "1a29a5b5151162d1de035c4926d1a1dbffee4a145ef61ee865d6b82aaea0602e" + +BBCLASSEXTEND="native" + +S = "${WORKDIR}/qemu-${PV}" + +EXTRA_OECONF += " --disable-curl --disable-sdl --disable-strip \ + " + +inherit autotools + +do_configure_prepend_virtclass-native() { + export QEMU_CFLAGS="-I${STAGING_INCDIR_NATIVE} ${QEMU_CFLAGS}" +} + +do_configure() { + ${S}/configure --prefix=${prefix} ${EXTRA_OECONF} +}
Signature · 1 line
1.7.0.4