package/cog: add libgbm as dependency when building with DRM support
Hi,
Quoted 36 lines · Arnout Vandecappelle
Quoted 3 lines · Alexandru Ardelean
When building with the DRM support, it can happen that the libgbm library is not yet built by the provider of this lib (specified by
BR2_PACKAGE_PROVIDES_LIBGBM).I've applied this one to master already, however there are two comments on v1
that remain unaddressed.Quoted 8 lines
The docs in cog
docs/platform-drm.mdspecify this dep-list:
- **WPEBackend-fdo**:
- **Wayland**:
- **libdrm**:
- **libgbm**:
- **libinput**:
- **libudev**:This would imply that a dependency on udev is needed as well (both in the
Config.in and the .mk). It is actually implied by libinput, so we won't get build failures, but it's better to have explicit dependencies.Quoted 13 lines
libgbm needs to be added.
Adding libegl as well.Updated package/cog/Config.in to define the dependencies (for DRM) according to libegl & libgbm.
Signed-off-by Alexandru Ardelean <[email protected]>--- package/cog/Config.in | 9 ++++++--- package/cog/cog.mk | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-)
Quoted 17 lines
package/cog/Config.in config BR2_PACKAGE_COG_PLATFORM_FDO · line 43
Quoted 11 lines
package/cog/Config.in +2
-1@@ -39,7 +39,8 @@ config BR2_PACKAGE_COG_PLATFORM_FDO config BR2_PACKAGE_COG_PLATFORM_DRM bool "DRM backend" depends on BR2_PACKAGE_HAS_UDEV # libinput - depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # gbm + depends on BR2_PACKAGE_HAS_LIBEGL + depends on BR2_PACKAGE_HAS_LIBGBMIt apparently needs the
BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNTfeature. You can test that by trying a build with rockchip-mali or ti-sgx-um as provider, since those packages don't have that feature.
I'm currently maintaining an external package for the newest ti-sgx-um version which provides (i think) a newer/more complete version of libegl/libgbm. For this I currently have to patch the cog package but the output is working fine with the drm backend.
So I would be highly interested in a patch like this.
Is there a way to find out which features a certain libegl/libgbm provides? Maybe I can then pick-up the work on bumping the ti-sgx-um/km packages again to bring them to a more recent version.
Regards,
Michael
Quoted 25 lines
Regards,
ArnoutQuoted 21 lines
package/cog/Config.in +4
-2select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_LIBINPUT help@@ -52,7 +53,9 @@ config BR2_PACKAGE_COG_USE_SYSTEM_DBUS help Expose remote control interface on system bus -comment "DRM platform needs mesa3d w/ EGL driver and GBM" - depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL +comment "DRM platform needs EGL and GBM" + depends on \ + !BR2_PACKAGE_HAS_LIBEGL || \ + !BR2_PACKAGE_HAS_LIBGBM endifpackage/cog/cog.mk +0
-0@@ -28,7 +28,7 @@ endif
Quoted 11 lines
package/cog/cog.mk endif · line 34
Quoted 7 lines
package/cog/cog.mk +1
-1ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y) COG_CONF_OPTS += -DCOG_PLATFORM_DRM=ON -COG_DEPENDENCIES += libdrm libinput +COG_DEPENDENCIES += libdrm libinput libgbm libegl else COG_CONF_OPTS += -DCOG_PLATFORM_DRM=OFF endif_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot