summaryrefslogtreecommitdiff
path: root/meta/recipes-graphics/images
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-09-03 16:43:26 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 23:01:51 +0100
commit151c69a2f9f66bdd943f2db4d0b733c3d5091f4e (patch)
treefec36dd98106e817dec5b43150fe7baa276f424c /meta/recipes-graphics/images
parent24f9280c35001ff6c1d5a263fab41ae21a8056f3 (diff)
downloadopenembedded-core-151c69a2f9f66bdd943f2db4d0b733c3d5091f4e.tar.gz
openembedded-core-151c69a2f9f66bdd943f2db4d0b733c3d5091f4e.tar.bz2
openembedded-core-151c69a2f9f66bdd943f2db4d0b733c3d5091f4e.zip
core-image-directfb: Use 'distro_features_check' class
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/images')
-rw-r--r--meta/recipes-graphics/images/core-image-directfb.bb11
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 3a74e9413e..b6187eb3d5 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")
-}