[oe-commits] Koen Kooi : mesa-dri: sync packaging with OE-core, prepare for further PACKAGE_ARCH cleaning

git version control git at git.openembedded.org
Thu Jun 23 20:55:44 UTC 2011


Module: meta-openembedded.git
Branch: master
Commit: 829be3bb913fb403ed12642ede913c10eff66118
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=829be3bb913fb403ed12642ede913c10eff66118

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Thu Jun 23 22:54:28 2011 +0200

mesa-dri: sync packaging with OE-core, prepare for further PACKAGE_ARCH cleaning

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 meta-oe/recipes-graphics/mesa/mesa-dri.inc       |   18 +++++++++++++++++-
 meta-oe/recipes-graphics/mesa/mesa-dri_7.10.2.bb |    2 +-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-graphics/mesa/mesa-dri.inc b/meta-oe/recipes-graphics/mesa/mesa-dri.inc
index 4c5934d..8aa82c0 100644
--- a/meta-oe/recipes-graphics/mesa/mesa-dri.inc
+++ b/meta-oe/recipes-graphics/mesa/mesa-dri.inc
@@ -7,5 +7,21 @@ FILESPATH =. "${FILE_DIRNAME}/mesa:${FILE_DIRNAME}/mesa-${PV}:"
 # most of our targets do not have DRI so will use mesa-xlib
 DEFAULT_PREFERENCE = "-1"
 
+MACHINE_DRI_MODULES ?= ""
+#PACKAGE_ARCH = "${@['${MACHINE_ARCH}','${BASE_PACKAGE_ARCH}'][bb.data.getVar('MACHINE_DRI_MODULES',d,1) == '']}"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-EXTRA_OECONF += " --with-driver=dri --with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"
+
+EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium -with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"
+
+python populate_packages_prepend() {
+	import os.path
+
+	dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri")
+
+	do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='')
+}
+
+PACKAGES_DYNAMIC = "mesa-dri-driver-*"
+
+FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
+
diff --git a/meta-oe/recipes-graphics/mesa/mesa-dri_7.10.2.bb b/meta-oe/recipes-graphics/mesa/mesa-dri_7.10.2.bb
index 26b56e4..bd62c98 100644
--- a/meta-oe/recipes-graphics/mesa/mesa-dri_7.10.2.bb
+++ b/meta-oe/recipes-graphics/mesa/mesa-dri_7.10.2.bb
@@ -1,4 +1,4 @@
 require mesa-common.inc
 require mesa-${PV}.inc
 require mesa-dri.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"





More information about the Openembedded-commits mailing list