aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-03-18 19:18:04 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-03-18 19:29:34 +0500
commit5e7465341e7952aeeb06dd4f4ff4d412fd754938 (patch)
treeb8a1a2191b3037ccaa21875c4e5444f0704d5158
parent8794ea0b4c28d0882198f71f3250efd38dd2f760 (diff)
downloadmeta-amd-5e7465341e7952aeeb06dd4f4ff4d412fd754938.tar.gz
meta-amd-5e7465341e7952aeeb06dd4f4ff4d412fd754938.tar.bz2
meta-amd-5e7465341e7952aeeb06dd4f4ff4d412fd754938.zip
common/gstreamer: fix multimedia-only build when graphics arent enabled
This fixes the build failure when multimedia feature is enabled and graphics is not. GStreamer needs graphics to display videos. PACKAGECONFIGs of gstreamer1.0-plugins-bad such as gles2, egl & vulkan depend on libdrm and eventually on x11 for graphics requirement. In MEL for AMD, x11 is only enabled when graphics feature is enabled. Therefore, we disable the gles2, egl & vulkan PACKAGECONFIGs when graphics are not available. INTAMDDET-2686 Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
-rw-r--r--common/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/common/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
index 646a2cea..7710bdfb 100644
--- a/common/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
+++ b/common/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
@@ -5,3 +5,7 @@ EXTRA_OECONF_append_amd = " --enable-vdpau"
# we do not support wayland
PACKAGECONFIG_remove_amd = "wayland"
+
+# enable build with no graphics
+PACKAGECONFIG_GL_remove_mel = "${@bb.utils.contains('COMBINED_FEATURES', 'x11', '', 'gles2 egl', d)}"
+PACKAGECONFIG_remove_mel = "${@bb.utils.contains('COMBINED_FEATURES', 'x11', '', 'egl vulkan', d)}"