summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-devtools/qemu/qemu.inc
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
new file mode 100644
index 0000000000..5425aaf4a5
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -0,0 +1,39 @@
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,ppc-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 -o -e /usr/include/SDL/SDL.h && libsdl='yes'
20
21
22 if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
23 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.
24 Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev"
25 exit 1;
26 fi
27}
28
29do_configure() {
30 ${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
31 chmod a+x ${S}/target-i386/beginend_funcs.sh
32}
33
34SRC_URI_append_virtclass-nativesdk = " file://glflags.patch;patch=1"
35DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk qemugl-nativesdk"
36RDEPENDS_virtclass-nativesdk = "libsdl-nativesdk"
37EXTRA_OECONF_virtclass-nativesdk = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-softmmu --disable-vnc-tls --cross-prefix=${TARGET_PREFIX}"
38
39BBCLASSEXTEND = "native nativesdk"