[oe-commits] Martin Jansa : xf86-video-omap: skip package if opengl isn' t in DISTRO_FEATURES

git at git.openembedded.org git at git.openembedded.org
Mon Dec 31 09:44:26 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 4c2434271cfc41e910969266ced9e5f06ee0c732
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4c2434271cfc41e910969266ced9e5f06ee0c732

Author: Martin Jansa <martin.jansa at gmail.com>
Date:   Tue Dec 25 19:43:59 2012 +0100

xf86-video-omap: skip package if opengl isn't in DISTRO_FEATURES

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 .../xorg-driver/xf86-video-omap_git.bb             |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-omap_git.bb b/meta/recipes-graphics/xorg-driver/xf86-video-omap_git.bb
index dea8ca2..f74419f 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-video-omap_git.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-video-omap_git.bb
@@ -40,3 +40,9 @@ CFLAGS += " -I${STAGING_INCDIR}/xorg "
 do_compile_prepend_armv7a () {
         sed -i -e s:fb1:fb2:g ${S}/src/omap_xv.c
 }
+
+python () {
+    if not oe.utils.contains ('DISTRO_FEATURES', 'opengl', True, False, d):
+        raise bb.parse.SkipPackage("'opengl' not in DISTRO_FEATURES")
+}
+





More information about the Openembedded-commits mailing list