* [Buildroot] [PATCH 1/4] package/libinput: remove dependency on BR2_ENABLE_LOCALE
@ 2020-02-02 17:33 Bernd Kuhls
2020-02-02 17:33 ` [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland Bernd Kuhls
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Bernd Kuhls @ 2020-02-02 17:33 UTC (permalink / raw)
To: buildroot
Upstream commit
https://gitlab.freedesktop.org/libinput/libinput/commit/99bb0ee7cb35f7d7a932e7cf28885782bad17613
removed the dependency on locale support provided by the toolchain.
Removed reverse dependencies as well.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v1: initial revision
package/efl/Config.in | 10 ++++------
package/kodi/Config.in | 1 -
package/libinput/Config.in | 5 ++---
package/weston-imx/Config.in | 1 -
package/weston/Config.in | 1 -
package/x11r7/xdriver_xf86-input-libinput/Config.in | 5 ++---
6 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/package/efl/Config.in b/package/efl/Config.in
index 98b5b0731a..ff49161163 100644
--- a/package/efl/Config.in
+++ b/package/efl/Config.in
@@ -219,7 +219,6 @@ endchoice # OpenGL support
config BR2_PACKAGE_EFL_ELPUT
bool "Elput"
- depends on BR2_ENABLE_LOCALE # libinput
depends on BR2_PACKAGE_EFL_EEZE
select BR2_PACKAGE_LIBINPUT
select BR2_PACKAGE_LIBXKBCOMMON
@@ -230,24 +229,23 @@ config BR2_PACKAGE_EFL_ELPUT
libinput without having to duplicate the code in each
subsystem.
-comment "Elput support needs udev /dev management (eeze), locales"
- depends on !BR2_PACKAGE_EFL_EEZE || !BR2_ENABLE_LOCALE
+comment "Elput support needs udev /dev management (eeze)"
+ depends on !BR2_PACKAGE_EFL_EEZE
config BR2_PACKAGE_EFL_DRM
bool "Evas DRM Engine"
depends on BR2_PACKAGE_EFL_EEZE
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # require libgbm from mesa3d
- depends on BR2_ENABLE_LOCALE # efl-elput <- libinput
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 udev /dev management (eeze), mesa3d w/ EGL support, threads, locales"
+comment "Evas DRM Engine needs udev /dev management (eeze), mesa3d w/ EGL support, threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_MESA3D_OPENGL_EGL \
- || !BR2_PACKAGE_EFL_EEZE || !BR2_ENABLE_LOCALE
+ || !BR2_PACKAGE_EFL_EEZE
comment "libevas loaders"
diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index 65e7768d6d..2782da5953 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -23,7 +23,6 @@ config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
# List of valid CPUs can be found here:
# https://github.com/xbmc/xbmc/blob/Krypton/project/cmake/scripts/rbpi/ArchSetup.cmake#L12
depends on BR2_arm1176jzf_s || BR2_cortex_a7 || BR2_cortex_a53
- depends on BR2_ENABLE_LOCALE # libinput
depends on BR2_PACKAGE_RPI_USERLAND
depends on BR2_PACKAGE_HAS_UDEV # libinput
select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
diff --git a/package/libinput/Config.in b/package/libinput/Config.in
index f7793df84f..14e4e70f96 100644
--- a/package/libinput/Config.in
+++ b/package/libinput/Config.in
@@ -1,6 +1,5 @@
config BR2_PACKAGE_LIBINPUT
bool "libinput"
- depends on BR2_ENABLE_LOCALE
depends on BR2_PACKAGE_HAS_UDEV
select BR2_PACKAGE_LIBEVDEV
select BR2_PACKAGE_MTDEV
@@ -14,5 +13,5 @@ config BR2_PACKAGE_LIBINPUT
http://freedesktop.org/wiki/Software/libinput/
-comment "libinput needs udev /dev management and a toolchain w/ locale"
- depends on !BR2_PACKAGE_HAS_UDEV || !BR2_ENABLE_LOCALE
+comment "libinput needs udev /dev management"
+ depends on !BR2_PACKAGE_HAS_UDEV
diff --git a/package/weston-imx/Config.in b/package/weston-imx/Config.in
index 712341b24e..36ff7ae5ab 100644
--- a/package/weston-imx/Config.in
+++ b/package/weston-imx/Config.in
@@ -15,7 +15,6 @@ config BR2_PACKAGE_WESTON_IMX
depends on !BR2_STATIC_LIBS # wayland
depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
- depends on BR2_ENABLE_LOCALE # libinput
depends on BR2_PACKAGE_HAS_UDEV
depends on BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL
depends on !BR2_PACKAGE_WESTON
diff --git a/package/weston/Config.in b/package/weston/Config.in
index f874b0cc6a..696b85b54d 100644
--- a/package/weston/Config.in
+++ b/package/weston/Config.in
@@ -5,7 +5,6 @@ comment "weston needs udev and a toolchain w/ locale, threads, dynamic library,
config BR2_PACKAGE_WESTON
bool "weston"
- depends on BR2_ENABLE_LOCALE # libinput
depends on BR2_PACKAGE_HAS_UDEV
depends on !BR2_STATIC_LIBS # wayland
depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
diff --git a/package/x11r7/xdriver_xf86-input-libinput/Config.in b/package/x11r7/xdriver_xf86-input-libinput/Config.in
index 0cfbfc664a..f66196a52b 100644
--- a/package/x11r7/xdriver_xf86-input-libinput/Config.in
+++ b/package/x11r7/xdriver_xf86-input-libinput/Config.in
@@ -1,6 +1,5 @@
config BR2_PACKAGE_XDRIVER_XF86_INPUT_LIBINPUT
bool "xf86-input-libinput"
- depends on BR2_ENABLE_LOCALE # libinput
depends on BR2_PACKAGE_HAS_UDEV # libinput
select BR2_PACKAGE_LIBINPUT
select BR2_PACKAGE_XORGPROTO
@@ -9,5 +8,5 @@ config BR2_PACKAGE_XDRIVER_XF86_INPUT_LIBINPUT
around libinput, so while it does provide all features that
libinput supports it does little beyond.
-comment "xf86-input-libinput needs udev /dev management and a toolchain w/ locale"
- depends on !BR2_PACKAGE_HAS_UDEV || !BR2_ENABLE_LOCALE
+comment "xf86-input-libinput needs udev /dev management"
+ depends on !BR2_PACKAGE_HAS_UDEV
--
2.20.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland
2020-02-02 17:33 [Buildroot] [PATCH 1/4] package/libinput: remove dependency on BR2_ENABLE_LOCALE Bernd Kuhls
@ 2020-02-02 17:33 ` Bernd Kuhls
2020-02-03 10:26 ` Thomas Petazzoni
2020-02-02 17:33 ` [Buildroot] [PATCH v2 3/4] package/mesa3d: add option to configure gbm support Bernd Kuhls
2020-02-02 17:33 ` [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm Bernd Kuhls
2 siblings, 1 reply; 7+ messages in thread
From: Bernd Kuhls @ 2020-02-02 17:33 UTC (permalink / raw)
To: buildroot
For details see upstream PR 12664.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: no changes
package/kodi/Config.in | 44 +++++++++++++++++++++++++++++++++++++++---
package/kodi/kodi.mk | 16 +++++++++++++++
2 files changed, 57 insertions(+), 3 deletions(-)
diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index 2782da5953..0f2f4e2df2 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -27,6 +27,27 @@ config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
depends on BR2_PACKAGE_HAS_UDEV # libinput
select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
+config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GL
+ bool
+ default y
+ depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # waylandpp
+ depends on BR2_HOST_GCC_AT_LEAST_4_9 # waylandpp
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # waylandpp
+ depends on BR2_PACKAGE_WAYLAND # waylandpp
+ select BR2_PACKAGE_WAYLANDPP
+ select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
+
+config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GLES
+ bool
+ default y
+ depends on BR2_PACKAGE_HAS_LIBGLES
+ depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # waylandpp
+ depends on BR2_HOST_GCC_AT_LEAST_4_9 # waylandpp
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # waylandpp
+ depends on BR2_PACKAGE_WAYLAND # waylandpp
+ select BR2_PACKAGE_WAYLANDPP
+ select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
+
config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
bool
default y
@@ -189,6 +210,17 @@ config BR2_PACKAGE_KODI_PLATFORM_RBPI
select BR2_PACKAGE_LIBINPUT
select BR2_PACKAGE_LIBXKBCOMMON
+config BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL
+ bool "Wayland/OpenGL"
+ depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GL
+ select BR2_PACKAGE_LIBGLU
+ select BR2_PACKAGE_LIBXKBCOMMON
+
+config BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES
+ bool "Wayland/GLES"
+ depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GLES
+ select BR2_PACKAGE_LIBXKBCOMMON
+
config BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
bool "X11/OpenGL"
depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
@@ -242,13 +274,19 @@ config BR2_PACKAGE_KODI_LIBUSB
config BR2_PACKAGE_KODI_LIBVA
bool "va"
- depends on BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
+ depends on \
+ BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL || \
+ BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES || \
+ BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
select BR2_PACKAGE_LIBVA
help
Enable libva support.
-comment "libva support needs platform 'X11/OpenGL'"
- depends on !BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
+comment "libva support needs platform 'Wayland' or 'X11/OpenGL'"
+ depends on \
+ !BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL && \
+ !BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES && \
+ !BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
config BR2_PACKAGE_KODI_LIBVDPAU
bool "vdpau"
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 1036151a89..2f2a92a889 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -174,6 +174,22 @@ KODI_CONF_OPTS += -DCORE_PLATFORM_NAME=rbpi
KODI_DEPENDENCIES += libinput libxkbcommon rpi-userland
endif
+ifeq ($(BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL),y)
+KODI_CONF_OPTS += \
+ -DCORE_PLATFORM_NAME=wayland \
+ -DWAYLAND_RENDER_SYSTEM=gl
+KODI_DEPENDENCIES += libegl libgl libglu libxkbcommon waylandpp
+endif
+
+ifeq ($(BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES),y)
+KODI_CONF_OPTS += \
+ -DCORE_PLATFORM_NAME=wayland \
+ -DWAYLAND_RENDER_SYSTEM=gles
+KODI_C_FLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
+KODI_CXX_FLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
+KODI_DEPENDENCIES += libegl libgles libxkbcommon waylandpp
+endif
+
ifeq ($(BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL),y)
KODI_CONF_OPTS += -DCORE_PLATFORM_NAME=x11
KODI_DEPENDENCIES += libegl libglu libgl xlib_libX11 xlib_libXext \
--
2.20.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 3/4] package/mesa3d: add option to configure gbm support
2020-02-02 17:33 [Buildroot] [PATCH 1/4] package/libinput: remove dependency on BR2_ENABLE_LOCALE Bernd Kuhls
2020-02-02 17:33 ` [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland Bernd Kuhls
@ 2020-02-02 17:33 ` Bernd Kuhls
2020-02-03 10:45 ` Thomas Petazzoni
2020-02-02 17:33 ` [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm Bernd Kuhls
2 siblings, 1 reply; 7+ messages in thread
From: Bernd Kuhls @ 2020-02-02 17:33 UTC (permalink / raw)
To: buildroot
Kodi 18.0-Leia will implement stand-alone gbm support alongside x11 &
wayland. To enable building gbm support in mesa3d without x11 & wayland
we need to add a specific configure option for it.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: no changes
package/mesa3d/Config.in | 6 ++++++
package/mesa3d/mesa3d.mk | 9 ++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 14adb407b4..5929e15442 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -355,6 +355,11 @@ if BR2_PACKAGE_MESA3D_DRIVER
comment "OpenGL API Support"
+config BR2_PACKAGE_MESA3D_GBM
+ bool "gbm"
+ help
+ Enable Generic Buffer Management (gbm)
+
config BR2_PACKAGE_MESA3D_OPENGL_GLX
bool "OpenGL GLX"
depends on BR2_PACKAGE_XORG7
@@ -370,6 +375,7 @@ config BR2_PACKAGE_MESA3D_OPENGL_EGL
bool "OpenGL EGL"
select BR2_PACKAGE_HAS_LIBEGL
select BR2_PACKAGE_HAS_LIBEGL_WAYLAND
+ select BR2_PACKAGE_MESA3D_GBM
help
Use the Khronos EGL APIs. EGL is a window manager for OpenGL
applications similar to GLX, for X, and WGL, for Windows.
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index f0e889a400..c7e5be55a0 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -200,10 +200,17 @@ endif
MESA3D_CONF_OPTS += \
-Dplatforms=$(subst $(space),$(comma),$(MESA3D_PLATFORMS))
+ifeq ($(BR2_PACKAGE_MESA3D_GBM),y)
+MESA3D_CONF_OPTS += \
+ -Dgbm=true
+else
+MESA3D_CONF_OPTS += \
+ -Dgbm=false
+endif
+
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
MESA3D_PROVIDES += libegl
MESA3D_CONF_OPTS += \
- -Dgbm=true \
-Degl=true
else
MESA3D_CONF_OPTS += \
--
2.20.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm
2020-02-02 17:33 [Buildroot] [PATCH 1/4] package/libinput: remove dependency on BR2_ENABLE_LOCALE Bernd Kuhls
2020-02-02 17:33 ` [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland Bernd Kuhls
2020-02-02 17:33 ` [Buildroot] [PATCH v2 3/4] package/mesa3d: add option to configure gbm support Bernd Kuhls
@ 2020-02-02 17:33 ` Bernd Kuhls
2020-02-03 10:47 ` Thomas Petazzoni
2 siblings, 1 reply; 7+ messages in thread
From: Bernd Kuhls @ 2020-02-02 17:33 UTC (permalink / raw)
To: buildroot
For details see upstream PR 11955.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: removed dependency on BR2_ENABLE_LOCALE
package/kodi/Config.in | 43 +++++++++++++++++++++++++++++++++++++++++-
package/kodi/kodi.mk | 14 ++++++++++++++
2 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index 0f2f4e2df2..f8b95c2234 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -17,6 +17,23 @@ comment "kodi needs python w/ .py modules, a uClibc or glibc toolchain w/ C++, t
config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
bool
+config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GL
+ bool
+ default y
+ depends on BR2_PACKAGE_HAS_LIBGL
+ depends on BR2_PACKAGE_HAS_LIBEGL
+ depends on BR2_PACKAGE_MESA3D_GBM
+ depends on BR2_PACKAGE_HAS_UDEV # libinput
+ select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
+
+config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GLES
+ bool
+ default y
+ depends on BR2_PACKAGE_HAS_LIBGLES
+ depends on BR2_PACKAGE_MESA3D_GBM
+ depends on BR2_PACKAGE_HAS_UDEV # libinput
+ select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
+
config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
bool
default y
@@ -204,6 +221,26 @@ choice
prompt "platform"
default BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
+config BR2_PACKAGE_KODI_PLATFORM_GBM_GL
+ bool "gbm/OpenGL"
+ depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GL
+ select BR2_PACKAGE_LIBGLU
+ select BR2_PACKAGE_LIBINPUT
+ select BR2_PACKAGE_LIBXKBCOMMON
+
+config BR2_PACKAGE_KODI_PLATFORM_GBM_GLES
+ bool "gbm/GLES"
+ depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GLES
+ select BR2_PACKAGE_LIBGLU
+ select BR2_PACKAGE_LIBINPUT
+ select BR2_PACKAGE_LIBXKBCOMMON
+
+comment "gbm support needs OpenGL or GLES support"
+ depends on \
+ BR2_PACKAGE_MESA3D_GBM && \
+ !BR2_PACKAGE_HAS_LIBEGL && \
+ !BR2_PACKAGE_HAS_LIBGLES
+
config BR2_PACKAGE_KODI_PLATFORM_RBPI
bool "Raspberry Pi"
depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
@@ -275,6 +312,8 @@ config BR2_PACKAGE_KODI_LIBUSB
config BR2_PACKAGE_KODI_LIBVA
bool "va"
depends on \
+ BR2_PACKAGE_KODI_PLATFORM_GBM_GL || \
+ BR2_PACKAGE_KODI_PLATFORM_GBM_GLES || \
BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL || \
BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES || \
BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
@@ -282,8 +321,10 @@ config BR2_PACKAGE_KODI_LIBVA
help
Enable libva support.
-comment "libva support needs platform 'Wayland' or 'X11/OpenGL'"
+comment "libva support needs platform 'gbm', 'Wayland' or 'X11/OpenGL'"
depends on \
+ !BR2_PACKAGE_KODI_PLATFORM_GBM_GL && \
+ !BR2_PACKAGE_KODI_PLATFORM_GBM_GLES && \
!BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL && \
!BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES && \
!BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 2f2a92a889..34f7a9dbe7 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -169,6 +169,20 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
KODI_CXX_FLAGS += -latomic
endif
+ifeq ($(BR2_PACKAGE_KODI_PLATFORM_GBM_GL),y)
+KODI_CONF_OPTS += \
+ -DCORE_PLATFORM_NAME=gbm \
+ -DGBM_RENDER_SYSTEM=gl
+KODI_DEPENDENCIES += libegl libglu libinput libxkbcommon mesa3d
+endif
+
+ifeq ($(BR2_PACKAGE_KODI_PLATFORM_GBM_GLES),y)
+KODI_CONF_OPTS += \
+ -DCORE_PLATFORM_NAME=gbm \
+ -DGBM_RENDER_SYSTEM=gles
+KODI_DEPENDENCIES += libgles libinput libxkbcommon mesa3d
+endif
+
ifeq ($(BR2_PACKAGE_KODI_PLATFORM_RBPI),y)
KODI_CONF_OPTS += -DCORE_PLATFORM_NAME=rbpi
KODI_DEPENDENCIES += libinput libxkbcommon rpi-userland
--
2.20.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland
2020-02-02 17:33 ` [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland Bernd Kuhls
@ 2020-02-03 10:26 ` Thomas Petazzoni
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2020-02-03 10:26 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 2 Feb 2020 18:33:31 +0100
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> For details see upstream PR 12664.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
I've applied, with a few changes, see below.
> +config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GL
> + bool
> + default y
I've added a
depends on BR2_PACKAGE_HAS_LIBGL
cause you then depend on "libgl".
> + depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # waylandpp
> + depends on BR2_HOST_GCC_AT_LEAST_4_9 # waylandpp
> + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # waylandpp
> + depends on BR2_PACKAGE_WAYLAND # waylandpp
> + select BR2_PACKAGE_WAYLANDPP
You should not add such selects to blind options that are "default y".
Indeed here, waylandpp is going to be selected as soon as all the
dependencies of this option are met, regardless of whether you really
enable Kodi's Wayland backend.
So I moved the select to BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL.
> +config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GLES
> + bool
> + default y
> + depends on BR2_PACKAGE_HAS_LIBGLES
> + depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # waylandpp
> + depends on BR2_HOST_GCC_AT_LEAST_4_9 # waylandpp
> + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # waylandpp
> + depends on BR2_PACKAGE_WAYLAND # waylandpp
> + select BR2_PACKAGE_WAYLANDPP
Ditto here.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 3/4] package/mesa3d: add option to configure gbm support
2020-02-02 17:33 ` [Buildroot] [PATCH v2 3/4] package/mesa3d: add option to configure gbm support Bernd Kuhls
@ 2020-02-03 10:45 ` Thomas Petazzoni
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2020-02-03 10:45 UTC (permalink / raw)
To: buildroot
On Sun, 2 Feb 2020 18:33:32 +0100
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> Kodi 18.0-Leia will implement stand-alone gbm support alongside x11 &
"will" ? I changed "will implement" to "implements" since your PATCH
4/4 uses that today :)
Applied with this change. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm
2020-02-02 17:33 ` [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm Bernd Kuhls
@ 2020-02-03 10:47 ` Thomas Petazzoni
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2020-02-03 10:47 UTC (permalink / raw)
To: buildroot
Hello Bernd,
On Sun, 2 Feb 2020 18:33:33 +0100
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> For details see upstream PR 11955.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: removed dependency on BR2_ENABLE_LOCALE
>
> package/kodi/Config.in | 43 +++++++++++++++++++++++++++++++++++++++++-
> package/kodi/kodi.mk | 14 ++++++++++++++
> 2 files changed, 56 insertions(+), 1 deletion(-)
>
> diff --git a/package/kodi/Config.in b/package/kodi/Config.in
> index 0f2f4e2df2..f8b95c2234 100644
> --- a/package/kodi/Config.in
> +++ b/package/kodi/Config.in
> @@ -17,6 +17,23 @@ comment "kodi needs python w/ .py modules, a uClibc or glibc toolchain w/ C++, t
> config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
> bool
>
> +config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GL
> + bool
> + default y
> + depends on BR2_PACKAGE_HAS_LIBGL
> + depends on BR2_PACKAGE_HAS_LIBEGL
> + depends on BR2_PACKAGE_MESA3D_GBM
> + depends on BR2_PACKAGE_HAS_UDEV # libinput
> + select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
> +
> +config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GLES
> + bool
> + default y
> + depends on BR2_PACKAGE_HAS_LIBGLES
Are you sure you don't need BR2_PACKAGE_HAS_LIBEGL ? In the .mk file,
you use libegl.
> + depends on BR2_PACKAGE_MESA3D_GBM
> + depends on BR2_PACKAGE_HAS_UDEV # libinput
> + select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
> +
> config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
> bool
> default y
> @@ -204,6 +221,26 @@ choice
> prompt "platform"
> default BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
>
> +config BR2_PACKAGE_KODI_PLATFORM_GBM_GL
> + bool "gbm/OpenGL"
> + depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GL
> + select BR2_PACKAGE_LIBGLU
> + select BR2_PACKAGE_LIBINPUT
> + select BR2_PACKAGE_LIBXKBCOMMON
> +
> +config BR2_PACKAGE_KODI_PLATFORM_GBM_GLES
> + bool "gbm/GLES"
> + depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GLES
> + select BR2_PACKAGE_LIBGLU
LIBGLU is only available when BR2_PACKAGE_HAS_LIBGL is enabled, so this
looks odd. And you don't have a dependency on libglu in the .mk file.
> +ifeq ($(BR2_PACKAGE_KODI_PLATFORM_GBM_GL),y)
> +KODI_CONF_OPTS += \
> + -DCORE_PLATFORM_NAME=gbm \
> + -DGBM_RENDER_SYSTEM=gl
> +KODI_DEPENDENCIES += libegl libglu libinput libxkbcommon mesa3d
You don't need libgl ?
> +ifeq ($(BR2_PACKAGE_KODI_PLATFORM_GBM_GLES),y)
> +KODI_CONF_OPTS += \
> + -DCORE_PLATFORM_NAME=gbm \
> + -DGBM_RENDER_SYSTEM=gles
> +KODI_DEPENDENCIES += libgles libinput libxkbcommon mesa3d
You don't need libegl here ?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-02-03 10:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 17:33 [Buildroot] [PATCH 1/4] package/libinput: remove dependency on BR2_ENABLE_LOCALE Bernd Kuhls
2020-02-02 17:33 ` [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland Bernd Kuhls
2020-02-03 10:26 ` Thomas Petazzoni
2020-02-02 17:33 ` [Buildroot] [PATCH v2 3/4] package/mesa3d: add option to configure gbm support Bernd Kuhls
2020-02-03 10:45 ` Thomas Petazzoni
2020-02-02 17:33 ` [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm Bernd Kuhls
2020-02-03 10:47 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.