summaryrefslogtreecommitdiffstats
path: root/meta/packages/mesa/mesa-dri_7.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/mesa/mesa-dri_7.2.bb')
-rw-r--r--meta/packages/mesa/mesa-dri_7.2.bb14
1 files changed, 11 insertions, 3 deletions
diff --git a/meta/packages/mesa/mesa-dri_7.2.bb b/meta/packages/mesa/mesa-dri_7.2.bb
index 77b68c4558..43e4cb5527 100644
--- a/meta/packages/mesa/mesa-dri_7.2.bb
+++ b/meta/packages/mesa/mesa-dri_7.2.bb
@@ -5,7 +5,7 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat"
5 5
6DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" 6DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
7 7
8PR = "r5" 8PR = "r6"
9 9
10# most of our targets do not have DRI so will use mesa-xlib 10# most of our targets do not have DRI so will use mesa-xlib
11DEFAULT_PREFERENCE = "-1" 11DEFAULT_PREFERENCE = "-1"
@@ -14,16 +14,24 @@ DEFAULT_PREFERENCE = "-1"
14DEFAULT_PREFERENCE_netbook = "1" 14DEFAULT_PREFERENCE_netbook = "1"
15 15
16PACKAGES =+ "${PN}-xprogs" 16PACKAGES =+ "${PN}-xprogs"
17PACKAGES_DYNAMIC = "mesa-dri-driver-*"
17 18
18FILES_${PN} += "${libdir}/dri/*.so"
19FILES_${PN}-dbg += "${libdir}/dri/.debug/*" 19FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
20FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" 20FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo"
21 21
22EXTRA_OECONF += "--with-driver=dri --with-dri-drivers=${MACHINE_DRI_MODULES}" 22EXTRA_OECONF += "--with-driver=dri"
23 23
24do_install_append () { 24do_install_append () {
25 install -d ${D}/usr/bin 25 install -d ${D}/usr/bin
26 install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ 26 install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/
27} 27}
28 28
29python populate_packages_prepend() {
30 import os.path
31
32 dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri")
33
34 do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='')
35}
36
29COMPATIBLE_HOST = '(i.86.*-linux)' 37COMPATIBLE_HOST = '(i.86.*-linux)'