[meta-intel] [PATCH 1/2] libva: check for "opengl" feature
Ismo Puustinen
ismo.puustinen at intel.com
Thu Dec 1 00:09:04 PST 2016
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 at intel.com>
---
common/recipes-multimedia/libva/libva_1.7.2.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/recipes-multimedia/libva/libva_1.7.2.bb b/common/recipes-multimedia/libva/libva_1.7.2.bb
index d72074d..860ab77 100644
--- a/common/recipes-multimedia/libva/libva_1.7.2.bb
+++ b/common/recipes-multimedia/libva/libva_1.7.2.bb
@@ -24,7 +24,9 @@ SRC_URI[sha256sum] = "5dd61cf16a5648b680e6146a58064e93be11bf4e65a9e4e30f1e9cb8ec
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"
--
2.9.3
More information about the meta-intel
mailing list