diff mbox

[7/8] libva: check for "opengl" feature

Message ID 20161209025801.20775-7-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj Dec. 9, 2016, 2:58 a.m. UTC
From: Ismo Puustinen <ismo.puustinen@intel.com>


In case "opengl" is missing from DISTRO_FEATURES, libva fails to satisfy
its dependencies. The dependency check is done by BitBake when
meta-world-pkgdata gathers information about all available packages
during image builds, even if libva isn't included in the build. This
patch makes libva recipe be skipped if the "opengl" DISTRO_FEATURE isn't
found.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-graphics/libva/libva_1.7.3.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.10.2

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox

Patch

diff --git a/meta/recipes-graphics/libva/libva_1.7.3.bb b/meta/recipes-graphics/libva/libva_1.7.3.bb
index 9994158..a6e5889 100644
--- a/meta/recipes-graphics/libva/libva_1.7.3.bb
+++ b/meta/recipes-graphics/libva/libva_1.7.3.bb
@@ -23,7 +23,9 @@  SRC_URI[sha256sum] = "22bc139498065a7950d966dbdb000cad04905cbd3dc8f3541f80d36c46
 
 DEPENDS = "libdrm virtual/mesa virtual/libgles1 virtual/libgles2 virtual/egl"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES ?= "opengl"
 
 EXTRA_OECONF = "--disable-dummy-driver"