libwayland-egl.so is the 'Frontend wayland-egl library' that wayland-egl client applications need to link against.
This is a generic library (as of wayland v1.13) that is provided by wayland project and SHOULD NOT be a platform/SoC specific library provided by (SoC) vendor layer .
On some SoCs (Amlogic and Realtek?) the libwayland-egl.so in RDKv6/7 is library provided by SoC vendor layer instead generic frontend lib provided by wayland and we need to fix/resolve that in RDK-8
The wayland graphics experts split wayland-egl between a generic wayland-egl.so frontend library for use by wayland-client applications and versioned backend "wayland-egl-backend-h which serves only as interface, not as library, header file that EGL graphics driver implementations can use"
This was designed to separate this wayland-egl library and applications using it from platform/soc specific EGL drivers, to NOT drag in a platform/soc specific link dependency chain into this library and applications/application containers using it.
The wayland-egl-backend.h is NOT part of the public API for application developers and application do not link to it. It is a versioned interface, helper API that EGL graphics drivers can use.
That split happened in wayland version 1.13. RDK-8 uses kirkstone which uses wayland version 1.20.
More details on reasons and history of this split are described in "History and reasons for split" section.
Here is the wayland source snippet that defines the package config wayland-egl.pc and wayland-egl-backend.pc
wayland-egl.pc leads to the wayland-egl.so library. Note that wayland-egl-backend.pc does NOT provide .so library, it only serves as header, interface for EGL implementation
pkgconfig.generate( name: 'wayland-egl', description: 'Frontend wayland-egl library', version: '18.1.0', requires: 'wayland-client', libraries: wayland_egl ) pkgconfig.generate( name: 'wayland-egl-backend', description: 'Backend wayland-egl interface', version: '3' )
On some SoCs (Amlogic and Realtek?) the libwayland-egl.so in RDKv6/7 is library provided by SoC vendor layer instead generic frontend lib provided by wayland and we need to fix/resolve that in RDK-8
This is current bitbake recipe used in current AH212 version as provider of virtual/libgles but also as RPROVIDES:${PN} += "libwayland-egl.so" , see
currently SRCREV ?= "${SRCREV_AML_BSP}" refers to "AML_BSP_REL_VERSION_RDK6.1.6"
and hence the precompiled so binary that provides libwayland-egl.so is following
Since library is only provided as binary and not as source (access requires ARM approval Mali DDK license) we and RDK-M cannot investigate and action is fully on amlogic
readelf -d libMali.so | grep NEEDED is https://github.com/stagingrdkm/lgpub/blob/master/dac/templates/oe_4.0/ah212_libs.json#L4899-L4912
of that libe is
meta-bolt-distro
see also some of historical wayland discussion threads on this subject, like
Before this split:
After the split: