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

login
register
mail settings
Submitter Martin Jansa
Date Dec. 25, 2012, 6:43 p.m.
Message ID <1356461039-31775-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/41679/
State Accepted
Commit 4c2434271cfc41e910969266ced9e5f06ee0c732
Headers show

Comments

Martin Jansa - Dec. 25, 2012, 6:43 p.m.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-graphics/xorg-driver/xf86-video-omap_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

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")
+}
+