From: Thomas Devoogdt <thomas@devoogdt.com>
To: buildroot@buildroot.org
Cc: Michael Fischer <mf@go-sys.de>,
Alexander Shiyan <eagle.alexander923@gmail.com>,
Thomas Devoogdt <thomas.devoogdt@barco.com>
Subject: [Buildroot] [PATCH v2] package/sdl2: add wayland support
Date: Sun, 9 Feb 2025 19:16:25 +0100 [thread overview]
Message-ID: <20250209181625.87351-1-thomas@devoogdt.com> (raw)
In-Reply-To: <20240830175229.2619362-1-thomas@devoogdt.com>
From: Thomas Devoogdt <thomas.devoogdt@barco.com>
This adds a configuration option to enable the Wayland
video driver support in SDL2.
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
Tested-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
v2:
- Added tested sign-off, see https://patchwork.ozlabs.org/comment/3457513/.
- Slightly changed the git message.
---
package/sdl2/Config.in | 17 +++++++++++++++++
package/sdl2/sdl2.mk | 8 +++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/package/sdl2/Config.in b/package/sdl2/Config.in
index f1c22e4f80..018e64a8d8 100644
--- a/package/sdl2/Config.in
+++ b/package/sdl2/Config.in
@@ -22,6 +22,23 @@ comment "X11 video driver needs X.org"
depends on !BR2_PACKAGE_XORG7
depends on BR2_USE_MMU
+config BR2_PACKAGE_SDL2_WAYLAND
+ bool "Wayland video driver"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
+ depends on BR2_PACKAGE_WAYLAND
+ depends on BR2_PACKAGE_HAS_LIBEGL
+ depends on BR2_PACKAGE_SDL2_OPENGLES
+ select BR2_PACKAGE_LIBXKBCOMMON
+ select BR2_PACKAGE_WAYLAND_PROTOCOLS
+
+comment "Wayland video driver needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "Wayland video driver needs wayland with an OpenGLES+EGL backend"
+ depends on !BR2_PACKAGE_WAYLAND || \
+ !BR2_PACKAGE_HAS_LIBEGL || \
+ !BR2_PACKAGE_SDL2_OPENGLES
+
config BR2_PACKAGE_SDL2_KMSDRM
bool "KMS/DRM video driver"
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index 50f80c68d7..b648eb6ab8 100644
--- a/package/sdl2/sdl2.mk
+++ b/package/sdl2/sdl2.mk
@@ -23,7 +23,6 @@ SDL2_CONF_OPTS += \
--disable-video-vivante \
--disable-video-cocoa \
--disable-video-metal \
- --disable-video-wayland \
--disable-video-dummy \
--disable-video-offscreen \
--disable-video-vulkan \
@@ -105,6 +104,13 @@ else
SDL2_CONF_OPTS += --disable-video-x11-xcursor
endif
+ifeq ($(BR2_PACKAGE_SDL2_WAYLAND),y)
+SDL2_DEPENDENCIES += libegl libxkbcommon wayland wayland-protocols
+SDL2_CONF_OPTS += --enable-video-wayland
+else
+SDL2_CONF_OPTS += --disable-video-wayland
+endif
+
ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y)
SDL2_DEPENDENCIES += xlib_libXi
SDL2_CONF_OPTS += --enable-video-x11-xinput
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2025-02-09 18:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-15 8:51 [Buildroot] (no subject) Luke D. Jones
2023-03-15 8:51 ` [Buildroot] [PATCH] package/sdl2: Add config for wayland, vivante, pulseaudio Luke D. Jones
2023-03-16 14:09 ` Luke Jones
2024-08-30 17:52 ` [Buildroot] [PATCH v1] package/sdl2: enable wayland support Thomas Devoogdt
2025-02-09 18:16 ` Thomas Devoogdt [this message]
2025-05-16 15:17 ` [Buildroot] [PATCH v2] package/sdl2: add " Peter Korsgaard
2025-05-16 15:52 ` Peter Korsgaard
2026-11-20 21:54 ` [Buildroot] [PATCH v2] package/sdl2: add PulseAudio support Angelo Compagnucci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250209181625.87351-1-thomas@devoogdt.com \
--to=thomas@devoogdt.com \
--cc=buildroot@buildroot.org \
--cc=eagle.alexander923@gmail.com \
--cc=mf@go-sys.de \
--cc=thomas.devoogdt@barco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.