[meta-freescale] [PATCH] imx-gpu-viv: Fix build break for missing gl headers

Otavio Salvador otavio.salvador at ossystems.com.br
Tue Mar 7 06:25:16 PST 2017


On Mon, Mar 6, 2017 at 10:19 PM, Tom Hochstein <tom.hochstein at nxp.com> wrote:
> For x11 graphics and Wayland graphics with XWayland support, a build
> break is possible due to missing headers. This is because imx-gpu-viv
> does not provide everything it needs to for virtual/libgl and depends
> on mesa to fill in what is missing. Adding a dependency on mesa
> fixes the build break.
>
> Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com>
> ---
>  recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
> index e5aacf3..9c98132 100644
> --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
> +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
> @@ -9,11 +9,16 @@ LIC_FILES_CHKSUM = "file://gpu-core/usr/include/gc_vdk.h;beginline=5;endline=11;
>
>  DEPENDS += " \
>      ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
> -       bb.utils.contains('DISTRO_FEATURES',     'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', \
> +       bb.utils.contains('DISTRO_FEATURES',     'x11', 'virtual/libx11 libxdamage libxext libxfixes', \
>                                                         '', d), d)} \
>      libpng \
>  "
>
> +# imx-gpu-viv does not provide everything it needs to for virtual/libgl
> +# on x11 backend or on Wayland backend with XWayland support.
> +# We depend on mesa to fill in what is missing.
> +DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}"
> +

You can use bb.utils.filter for a cleaner recipe.


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list