[meta-freescale] [meta-fsl-arm][PATCH v3 4/7] mesa-demos: Use wayland backend whenever it is availiable

Otavio Salvador otavio.salvador at ossystems.com.br
Thu Nov 26 04:23:56 PST 2015


On Wed, Nov 25, 2015 at 8:07 PM, Tom Hochstein
<tom.hochstein at freescale.com> wrote:
> From: Neena Busireddy <neena.busireddy at freescale.com>
>
> If Wayland exists in DISTRO features, wayland egl build configuration will be enabled
> It is not mandatory for a GPU driver to support multiple backends (X11, wayland) at the same time.
>
> Signed-off-by: Neena Busireddy <neena.busireddy at freescale.com>
> Signed-off-by: Tom Hochstein <tom.hochstein at freescale.com>
> ---
>  recipes-graphics/mesa/mesa-demos_%.bbappend | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend
> index 1f070a4..a8aaf11 100644
> --- a/recipes-graphics/mesa/mesa-demos_%.bbappend
> +++ b/recipes-graphics/mesa/mesa-demos_%.bbappend
> @@ -4,13 +4,9 @@ SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.
>                      file://fix-clear-build-break.patch \
>                      file://Additional-eglSwapBuffer-calling-makes-wrong-throttl.patch \
>                      file://Add-OpenVG-demos-to-support-wayland.patch"
> +PACKAGECONFIG_remove_mx6 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
> +PACKAGECONFIG_remove_mx6 = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d)}"

Use a single remove here.

> -PACKAGECONFIG_remove_mx6 = " \
> -    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
> -         bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d), d)}"
>  PACKAGECONFIG_remove_mx6sl = "gles1 gles2"
>
> -PACKAGECONFIG_append = "\
> -    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
> -       bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d), d)} \
> -"
> +PACKAGECONFIG_append_mx6 = " ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d)}"

This part seems fine.

-- 
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