gstreamer1.0-plugins-bad: Fix build for GPU-less machines

In case we are building for a GPU-less machine (e.g: i.MX6UL) using a
distro without OpenGL support, was triggering a wrong build dependency
chain.

Now, we enable gles2 backend only if the distro has OpenGL support.

Fixes: #684.
Fixes: 61fac596 ("gstreamer1.0-plugins-bad: Let processors with pxp chose the correct Opengl API")
Change-Id: I275299d20065309d753ebc7774ab1fcc5bea7113
This commit is contained in:
Otavio Salvador 2021-04-10 11:44:51 -03:00
parent 4929999861
commit ff7dbbb6ab

View File

@ -37,7 +37,7 @@ DEPENDS += "gstreamer1.0-plugins-base"
inherit gobject-introspection
PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}"
PACKAGECONFIG_GL_imxpxp = "gles2"
PACKAGECONFIG_GL_imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
PACKAGECONFIG ??= " \
${GSTREAMER_ORC} \