From 32a85c157002874af88a1cd324e1e466bb1df9b6 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 28 May 2010 09:13:03 +0100 Subject: qemu: reduce duplication, use an inc file and share common patches There's no need to carry around two copies of the same patches for qemu-git and qemu-0.12 so drop the qemu-git directory and update the git recipe to use the qemu-0.12 directory for patches. Move common code from the two recipes to an inc file. Signed-off-by: Joshua Lock fweh --- meta/packages/qemu/qemu.inc | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta/packages/qemu/qemu.inc (limited to 'meta/packages/qemu/qemu.inc') diff --git a/meta/packages/qemu/qemu.inc b/meta/packages/qemu/qemu.inc new file mode 100644 index 0000000000..eb630670cf --- /dev/null +++ b/meta/packages/qemu/qemu.inc @@ -0,0 +1,38 @@ +DESCRIPTION = "open source processor emulator" +HOMEPAGE = "http://qemu.org" +LICENSE = "GPL" +DEPENDS = "zlib" + +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" \ No newline at end of file -- cgit v1.2.3-54-g00ecf