package/efl: enable libdrm support
PATCH v2 1/2 package/efl: enable libdrm support
This support is required for Enlightenment wayland support [1] which will be added in a follow up patch.
As stated in configure.ac, libdrm support needs libdrm, elput, libxkbcommon and libgbm.
libgbm is only provided by mesa3d package when OpenGL EGL support is enabled, so add a direct dependency on mesa3d.
Rework the libxkbcommon dependency since it's now required for ecore-wayland, elput and libdrm support.
[1] https://www.enlightenment.org/about-wayland
---
libgdm can be found as a standalone library on github [2] but it seems not very active. I prefer to rely on Mesa3d version.
[2] https://github.com/robclark/libgbm
v2: use "select" BR2_PACKAGE_EFL_ELPUT instead of "depends on" (ThomasP)
fix commit log after 373c24cd1bb98a8b826b92034f7cb39780719625 (ThomasP) --- package/efl/Config.in | 13 +++++++++++++ package/efl/efl.mk | 13 +++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-)
package/efl/Config.in +13 -0
@@ -193,6 +193,19 @@ config BR2_PACKAGE_EFL_ELPUT ecore_drm, etc) to handle interfacing with libinput without having to duplicate the code in each subsystem. +config BR2_PACKAGE_EFL_DRM + bool "Evas DRM Engine" + depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm + depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # require libgbm from mesa3d + select BR2_PACKAGE_EFL_ELPUT + select BR2_PACKAGE_LIBDRM + select BR2_PACKAGE_LIBXKBCOMMON + help + This option enable building support for the Evas DRM Engine. + +comment "Evas DRM Engine needs mesa3d w/ EGL support, threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_MESA3D_OPENGL_EGL + comment "libevas loaders" config BR2_PACKAGE_EFL_PNG
package/efl/efl.mk +11 -2
@@ -146,7 +146,7 @@ EFL_CONF_OPTS += --with-crypto=none endif # BR2_PACKAGE_OPENSSL ifeq ($(BR2_PACKAGE_WAYLAND),y) -EFL_DEPENDENCIES += wayland libxkbcommon +EFL_DEPENDENCIES += wayland EFL_CONF_OPTS += --enable-wayland else EFL_CONF_OPTS += --disable-wayland
@@ -154,7 +154,7 @@ endif ifeq ($(BR2_PACKAGE_EFL_ELPUT),y) EFL_CONF_OPTS += --enable-elput -EFL_DEPENDENCIES += libinput libxkbcommon +EFL_DEPENDENCIES += libinput else EFL_CONF_OPTS += --disable-elput endif
@@ -198,6 +198,15 @@ else ifeq ($(BR2_PACKAGE_EFL_OPENGL_NONE),y) EFL_CONF_OPTS += --with-opengl=none endif +ifeq ($(BR2_PACKAGE_EFL_DRM),y) +EFL_CONF_OPTS += --enable-drm +EFL_DEPENDENCIES += libdrm libegl mesa3d +else +EFL_CONF_OPTS += --disable-drm +endif + +EFL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBXKBCOMMON),libxkbcommon) + # Loaders that need external dependencies needs to be --enable-XXX=yes # otherwise the default is '=static'. # All other loaders are statically built-in
Signature · 1 line
2.5.5
PATCH v2 2/2 package/efl: add Evas GL DRM Engine support
This support is required for Enlightenment wayland support [1].
As stated in configure, Evas GL DRM Engine needs OpenGL ES with EGL and wayland (wayland-client >= 1.8.0)
[1] https://www.enlightenment.org/about-wayland
---
v2: rename the option to BR2_PAKCAGE_EFL_GLES_DRM (ThomasP)
fix the help text (ThomasP)
--- package/efl/Config.in | 11 +++++++++++ package/efl/efl.mk | 6 ++++++ 2 files changed, 17 insertions(+)
package/efl/Config.in +11 -0
@@ -206,6 +206,17 @@ config BR2_PACKAGE_EFL_DRM comment "Evas DRM Engine needs mesa3d w/ EGL support, threads" depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_MESA3D_OPENGL_EGL +config BR2_PAKCAGE_EFL_GLES_DRM + bool "Evas GLES DRM Engine" + depends on BR2_PACKAGE_EFL_DRM + depends on BR2_PACKAGE_EFL_OPENGLES # OpenGL ES with EGL support only + help + This option enable building support for the Evas DRM OpenGL ES + based engine. + +comment "Evas GL DRM Engine needs Evas DRM Engine, OpenGL ES w/ EGL" + depends on BR2_PACKAGE_EFL_DRM && !BR2_PACKAGE_EFL_OPENGLES + comment "libevas loaders" config BR2_PACKAGE_EFL_PNG
package/efl/efl.mk +6 -0
@@ -205,6 +205,12 @@ else EFL_CONF_OPTS += --disable-drm endif +ifeq ($(BR2_PAKCAGE_EFL_GLES_DRM),y) +EFL_CONF_OPTS += --enable-gl-drm +else +EFL_CONF_OPTS += --disable-gl-drm +endif + EFL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBXKBCOMMON),libxkbcommon) # Loaders that need external dependencies needs to be --enable-XXX=yes
Signature · 1 line
2.5.5