Hi all,

I am trying to get Weston working with the GPU SGX530 enabled.
Basically I would like to get the same results described in BeagleBoneBlack/SGX + Qt EGLFS + Weston using Yocto.

At the moment I am using:

The board seems to boot properly if I use core-image-base but when I run bitbake core-image-weston I get some bitbake errors due to libgl.

First approach
In my local.conf

IMAGE_INSTALL_append = " ti-sgx-ddk-km ti-sgx-ddk-um libdrm"
PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles1= "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles2 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/mesa = "ti-sgx-ddk-um"

After taking a look to https://code.qt.io/cgit/yocto/meta-boot2qt.git meta-ti-extras layer dropped with commit 17747110065d6d1482fb5786773c27d78f7c8bac I added in my ti-sgx-ddk-um_%.bbappend

    PROVIDES += "virtual/mesa"

Anyway when I run bitbake core-image-weston, it stops immediately with the error:
Nothing PROVIDES 'virtual/libgl' (but /home/qem/Yocto/poky-zeus/meta/recipes-graphics/clutter/clutter-1.0_1.26.2.bb, /home/qem/Yocto/poky-zeus/meta/recipes-graphics/cairo/cairo_1.16.0.bb, /home/qem/Yocto/poky-zeus/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb DEPENDS on or otherwise requires it)
mesa-gl PROVIDES virtual/libgl but was skipped: PREFERRED_PROVIDER_virtual/libgl set to mesa, not mesa-gl
mesa PROVIDES virtual/libgl but was skipped: PREFERRED_PROVIDER_virtual/libgles1 set to ti-sgx-ddk-um, not mesa

Second approach
Considering https://www.yoctoproject.org/pipermail/meta-ti/2016-October/009100.html I deleted the  In my ti-sgx-ddk-um_%.bbappend and modified my local.conf setting

PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles1 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles2 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_libgbm = "libgbm"
PREFERRED_PROVIDER_libgbm-dev = "libgbm-dev"

But bitbake stops with the same error of the first approach.

Doubts about Weston and OpenGL
Looking for a solution I sow https://patchwork.openembedded.org/patch/152082/ and http://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-graphics/wayland/weston_4.0.0.imx.bb?h=thud and I am wondering if "REQUIRED_DISTRO_FEATURES = "opengl"" is strictly required for Weston 7 or if a solution similar to the one implemented for Weston 4 would be viable.

Any suggestion or consideration would be much appreciated

Regards

Luca