summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/qemu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/qemu/qemu.inc')
-rw-r--r--meta/packages/qemu/qemu.inc38
1 files changed, 38 insertions, 0 deletions
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 @@
1DESCRIPTION = "open source processor emulator"
2HOMEPAGE = "http://qemu.org"
3LICENSE = "GPL"
4DEPENDS = "zlib"
5
6EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mips-softmmu --disable-werror --disable-vnc-tls"
7#EXTRA_OECONF += "--disable-sdl"
8
9inherit autotools
10
11# For our gl powered QEMU you need libGL and SDL headers
12do_configure_prepend_virtclass-native() {
13 libgl='no'
14 libsdl='no'
15
16 test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes'
17 test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes'
18
19 test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc && libsdl='yes'
20
21 if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
22 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.
23 Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev"
24 exit 1;
25 fi
26}
27
28do_configure() {
29 ${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
30 chmod a+x ${S}/target-i386/beginend_funcs.sh
31}
32
33SRC_URI_append_virtclass-nativesdk = " file://glflags.patch;patch=1"
34DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk qemugl-nativesdk"
35RDEPENDS_virtclass-nativesdk = "libsdl-nativesdk"
36EXTRA_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"
37
38BBCLASSEXTEND = "native nativesdk" \ No newline at end of file