diff options
author | Jeff Dike <jdike@linux.intel.com> | 2010-05-27 15:22:50 -0400 |
---|---|---|
committer | Jeff Dike <jdike@linux.intel.com> | 2010-05-27 15:22:50 -0400 |
commit | 3d6e7e7d0c6aed10a859034486191e0b3b69d786 (patch) | |
tree | 35592efec53b58d38a3f1910e1c3d677f1419d18 /meta/packages/qemu/qemu_0.12.0.bb | |
parent | 4de4707213f62b1e49191a1b7f26c6d419da4608 (diff) | |
download | openembedded-core-3d6e7e7d0c6aed10a859034486191e0b3b69d786.tar.gz openembedded-core-3d6e7e7d0c6aed10a859034486191e0b3b69d786.tar.bz2 openembedded-core-3d6e7e7d0c6aed10a859034486191e0b3b69d786.tar.xz openembedded-core-3d6e7e7d0c6aed10a859034486191e0b3b69d786.zip |
qemu: Update the static recipe to 0.12.0
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Diffstat (limited to 'meta/packages/qemu/qemu_0.12.0.bb')
-rw-r--r-- | meta/packages/qemu/qemu_0.12.0.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu_0.12.0.bb b/meta/packages/qemu/qemu_0.12.0.bb new file mode 100644 index 000000000..e4f8a2ca1 --- /dev/null +++ b/meta/packages/qemu/qemu_0.12.0.bb @@ -0,0 +1,51 @@ +LICENSE = "GPL" +DEPENDS = "zlib" +PR = "r9" + +FILESPATH = "${FILE_DIRNAME}/qemu-${PV}" +FILESDIR = "${WORKDIR}" + +SRC_URI = "\ + http://download.savannah.gnu.org/releases/qemu/qemu-0.12.0.tar.gz \ + file://workaround_bad_futex_headers.patch;patch=1 \ + file://qemu-git-qemugl-host.patch;patch=1 \ + file://no-strip.patch;patch=1 \ + file://fix-dirent.patch;patch=1 \ + file://fix-nogl.patch;patch=1 \ + file://qemugl-allow-glxcontext-release.patch;patch=1" + +S = "${WORKDIR}/qemu-${PV}" + +EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mips-softmmu --disable-werror --disable-vnc-tls" +#EXTRA_OECONF += "--disable-sdl" + +inherit autotools + +# For our gl powered QEMU you need libGL and SDL headers +do_configure_prepend_virtclass-native() { + libgl='no' + libsdl='no' + + test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes' + test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes' + + test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc && libsdl='yes' + + if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then + echo "You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native. + Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev" + exit 1; + fi +} + +do_configure() { + ${S}/configure --prefix=${prefix} ${EXTRA_OECONF} + chmod a+x ${S}/target-i386/beginend_funcs.sh +} + +SRC_URI_append_virtclass-nativesdk = " file://glflags.patch;patch=1" +DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk qemugl-nativesdk" +RDEPENDS_virtclass-nativesdk = "libsdl-nativesdk" +EXTRA_OECONF_virtclass-nativesdk = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mips-softmmu --disable-vnc-tls --cc=${HOST_PREFIX}gcc" + +BBCLASSEXTEND = "native nativesdk" |