Skip to contentSkip to conversation

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

PATCH New Martin Jansa 1 participant 1 message Dec 25, 2012

lore
Share & tools
lore
#0 lore raw

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

---
 meta/recipes-graphics/xorg-driver/xf86-video-omap_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-graphics/xorg-driver/xf86-video-omap_git.bb +6 -0
index dea8ca2..f74419f 100644
@@ -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")
+}
+
Signature · 1 line
1.8.0.2