[oe-commits] Otavio Salvador : core-image-directfb: Use 'distro_features_check' class
git at git.openembedded.org
git at git.openembedded.org
Fri Sep 6 21:37:52 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 7511ccf00ff74f977ad0b304496945bcdc670dcd
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7511ccf00ff74f977ad0b304496945bcdc670dcd
Author: Otavio Salvador <otavio at ossystems.com.br>
Date: Tue Sep 3 16:43:26 2013 -0300
core-image-directfb: Use 'distro_features_check' class
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
.../recipes-graphics/images/core-image-directfb.bb | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/meta/recipes-graphics/images/core-image-directfb.bb b/meta/recipes-graphics/images/core-image-directfb.bb
index 3a74e94..b6187eb 100644
--- a/meta/recipes-graphics/images/core-image-directfb.bb
+++ b/meta/recipes-graphics/images/core-image-directfb.bb
@@ -6,16 +6,13 @@ PR="r0"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-inherit core-image
+inherit core-image distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "directfb"
+CONFLICT_DISTRO_FEATURES = "x11"
IMAGE_INSTALL += "\
${CORE_IMAGE_BASE_INSTALL} \
packagegroup-core-basic \
packagegroup-core-directfb \
"
-
-python __anonymous () {
- packages = d.getVar('DISTRO_FEATURES', True).split()
- if "x11" in packages:
- raise bb.parse.SkipPackage("FEATURE \"x11\" is in DISTRO_FEATURES, Please remove \"x11\" from DISTRO_FEATURES, use \"directfb\" instead of it\n")
-}
More information about the Openembedded-commits
mailing list