summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc23
1 files changed, 3 insertions, 20 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 2038651cb7..e618c1d6e1 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -19,26 +19,6 @@ EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --di
19 19
20inherit autotools 20inherit autotools
21 21
22# For our gl powered QEMU you need libGL and SDL headers
23do_configure_prepend_virtclass-native() {
24 libgl='no'
25 libsdl='no'
26
27 test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes'
28 test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes'
29 test -e /usr/lib/*-linux-gnu/libGL.so -a -e /usr/lib/*-linux-gnu/libGLU.so && libgl='yes'
30
31 test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc -o -e /usr/include/SDL/SDL.h && libsdl='yes'
32
33
34 if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
35 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.
36 Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev.
37 Fedora package names are: mesa-libGL mesa-libGLU SDL-devel."
38 exit 1;
39 fi
40}
41
42do_configure() { 22do_configure() {
43 # Handle distros such as CentOS 5 32-bit that do not have kvm support 23 # Handle distros such as CentOS 5 32-bit that do not have kvm support
44 KVMOPTS="--disable-kvm" 24 KVMOPTS="--disable-kvm"
@@ -57,6 +37,9 @@ do_install () {
57 install -m 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu 37 install -m 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
58} 38}
59 39
40PACKAGECONFIG ??= "gl"
41PACKAGECONFIG[gl] = "--enable-gl-accel,--disable-gl-accel,,"
42
60DEPENDS_virtclass-native = "zlib-native alsa-lib-native glib-2.0-native" 43DEPENDS_virtclass-native = "zlib-native alsa-lib-native glib-2.0-native"
61DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk glib-2.0-nativesdk \ 44DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk glib-2.0-nativesdk \
62 ${@base_contains('DISTRO_FEATURES', 'x11', 'qemugl-nativesdk', '', d)}" 45 ${@base_contains('DISTRO_FEATURES', 'x11', 'qemugl-nativesdk', '', d)}"