summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/qemu_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/qemu/qemu_git.bb')
-rw-r--r--meta/packages/qemu/qemu_git.bb41
1 files changed, 4 insertions, 37 deletions
diff --git a/meta/packages/qemu/qemu_git.bb b/meta/packages/qemu/qemu_git.bb
index dc5db97308..346e9a3947 100644
--- a/meta/packages/qemu/qemu_git.bb
+++ b/meta/packages/qemu/qemu_git.bb
@@ -1,9 +1,9 @@
1LICENSE = "GPL" 1require qemu.inc
2DEPENDS = "zlib" 2
3PV = "0.12.0+git${SRCREV}" 3PV = "0.12.0+git${SRCREV}"
4PR = "r5" 4PR = "r6"
5 5
6FILESPATH = "${FILE_DIRNAME}/qemu-${PV}/:${FILE_DIRNAME}/qemu-git/" 6FILESPATH = "${FILE_DIRNAME}/qemu-${PV}/:${FILE_DIRNAME}/qemu-git/:${FILE_DIRNAME}/qemu-0.12/"
7 7
8SRC_URI = "\ 8SRC_URI = "\
9 git://git.sv.gnu.org/qemu.git;protocol=git \ 9 git://git.sv.gnu.org/qemu.git;protocol=git \
@@ -16,36 +16,3 @@ SRC_URI = "\
16 16
17S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
18 18
19EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mips-softmmu --disable-werror --disable-vnc-tls"
20#EXTRA_OECONF += "--disable-sdl"
21
22inherit autotools
23
24# For our gl powered QEMU you need libGL and SDL headers
25do_configure_prepend_virtclass-native() {
26 libgl='no'
27 libsdl='no'
28
29 test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes'
30 test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes'
31
32 test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc && libsdl='yes'
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 exit 1;
38 fi
39}
40
41do_configure() {
42 ${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
43 chmod a+x ${S}/target-i386/beginend_funcs.sh
44}
45
46SRC_URI_append_virtclass-nativesdk = " file://glflags.patch;patch=1"
47DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk qemugl-nativesdk"
48RDEPENDS_virtclass-nativesdk = "libsdl-nativesdk"
49EXTRA_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"
50
51BBCLASSEXTEND = "native nativesdk"