From 0e2d07ee6e93b56d0202227d3655fd44dcb5d662 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 23 Jul 2022 22:11:07 +0200 Subject: [PATCH] package/glslsandbox-player: add support for the NullSW windowing system This nullws doesn't need any extra dependency other than the EGL/GLES ones, which will help simplify the glslsandbox-player package. Signed-off-by: Thomas Petazzoni (cherry picked from commit 81ad39d62f660a1409e96d1dbd405d6dab16c0f6) Signed-off-by: Peter Korsgaard --- package/glslsandbox-player/Config.in | 5 +++++ package/glslsandbox-player/glslsandbox-player.mk | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package/glslsandbox-player/Config.in b/package/glslsandbox-player/Config.in index 317eb62898..19536c8546 100644 --- a/package/glslsandbox-player/Config.in +++ b/package/glslsandbox-player/Config.in @@ -65,6 +65,11 @@ choice help Select the native windowing system you wish to use. +config BR2_PACKAGE_GLSLSANDBOX_PLAYER_NULL + bool "NullWS" + help + Enable Null Windowing System + config BR2_PACKAGE_GLSLSANDBOX_PLAYER_KMS bool "KMS/DRM/GBM" depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm diff --git a/package/glslsandbox-player/glslsandbox-player.mk b/package/glslsandbox-player/glslsandbox-player.mk index 70bd5ca370..6496cdf23d 100644 --- a/package/glslsandbox-player/glslsandbox-player.mk +++ b/package/glslsandbox-player/glslsandbox-player.mk @@ -41,7 +41,9 @@ else GLSLSANDBOX_PLAYER_CONF_OPTS += --disable-install-scripts endif -ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_KMS),y) +ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_NULL),y) +GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=nullws +else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_KMS),y) # gbm dependency is not needed, as it is normally packaged with # libegl/libgles drivers. GLSLSANDBOX_PLAYER_DEPENDENCIES += libdrm