[meta-freescale] [meta-fsl-arm][PATCH] gpu-viv-bin-mx6q: Adding support to install Wayland GPU libs

Otavio Salvador otavio at ossystems.com.br
Thu Jul 25 06:51:29 PDT 2013


On Thu, Jul 25, 2013 at 10:25 AM, Abhijit Potnis
<abhijitpotnis at gmail.com> wrote:
> This patch installs wayland GPU libs if the DISTRO_FEATURES contains
> wayland variable. If both X11 and wayland are present in DISTRO_FEATURES
> then wayland is picked as the default backend.
>
> Signed-off-by: Abhijit Potnis <abhijitpotnis at gmail.com>
> Signed-off-by: Abhijit Potnis <abhijit_potnis at mentor.com>
...
> +
> +#If both X11 and Wayland are set in DISTRO_FEATURES then use Wayland as base window system
> +    if [ "${USE_WL}" = "yes" ]; then
> +        backend=wl
>
> -    # FIXME: Remove Wayland contents
> -    rm -r ${D}${includedir}/wayland-viv
> -    find ${D}${libdir} -name '*-wl.so' -exec rm '{}' ';'
> -    rm ${D}${libdir}/*wayland*.so*
> +        install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/egl.pc
> +        install -m 0644 ${WORKDIR}/glesv1_cm.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc
> +        install -m 0644 ${WORKDIR}/glesv2.pc ${D}${libdir}/pkgconfig/glesv2.pc
> +        install -m 0644 ${WORKDIR}/gc_wayland_protocol.pc ${D}${libdir}/pkgconfig/gc_wayland_protocol.pc
> +        install -m 0644 ${WORKDIR}/wayland-egl.pc ${D}${libdir}/pkgconfig/wayland-egl.pc
> +        install -m 0644 ${WORKDIR}/wayland-viv.pc ${D}${libdir}/pkgconfig/wayland-viv.pc
>
> -    if [ "${USE_X11}" = "yes" ]; then
> +    elif [ "${USE_X11}" = "yes" ]; then
>          cp -r ${S}/usr/lib/dri ${D}${libdir}
>          backend=x11
>
> @@ -118,7 +131,7 @@ do_install () {
>      mv ${D}${libdir}/libGAL-${backend}.so ${D}${libdir}/libGAL.so
>      mv ${D}${libdir}/libVIVANTE-${backend}.so ${D}${libdir}/libVIVANTE.so
>
> -    for backend in x11 fb dfb; do
> +    for backend in wl x11 fb dfb; do
>          find ${D}${libdir} -name "*-$backend.so" -exec rm '{}' ';'
>      done
>
> @@ -184,5 +197,17 @@ FILES_libvivante-mx6-dbg = "${libdir}/.debug/libVIVANTE${SOLIBS}"
>
>  FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri.so"
>
> +INSANE_SKIP_libwayland-viv-mx6 += "dev-so"

Same issues in previous patch. Trailing space and comment not in same
style as the rest of code.

Please add a 'vX' in the patch or it makes quite hard to follow which
one is the right.

Regards,

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



More information about the meta-freescale mailing list