From: Martin Jansa Date: Tue, 25 Dec 2012 18:43:59 +0000 (+0100) Subject: xf86-video-omap: skip package if opengl isn't in DISTRO_FEATURES X-Git-Tag: 2015-4~8199 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4c2434271cfc41e910969266ced9e5f06ee0c732;p=openembedded-core.git xf86-video-omap: skip package if opengl isn't in DISTRO_FEATURES Signed-off-by: Martin Jansa Signed-off-by: Saul Wold --- 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 dea8ca28a0..f74419f94f 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") +} +