package/sdl2: kmsdrm needs GBM
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 21 Aug 2021 09:39:07 +0000 (11:39 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 23 Aug 2021 21:21:33 +0000 (23:21 +0200)
kmsdrm needs GBM (and so mesa3d) since its addition in version 2.0.6:
https://github.com/libsdl-org/SDL/commit/56363ebf6124b345e1cfbd14fb6c0e654837910c

If libgbm is not found, kmsdrm will be silently disabled

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/sdl2/Config.in
package/sdl2/sdl2.mk

index f29b3c7c38c50dfabc6d72746bddd82b74b1c660..07de75a4d520440bd376d58c4e191b1b5532827d 100644 (file)
@@ -32,10 +32,15 @@ comment "X11 video driver needs X.org"
 config BR2_PACKAGE_SDL2_KMSDRM
        bool "KMS/DRM video driver"
        depends on BR2_PACKAGE_LIBDRM
+       # requires libgbm from mesa3d
+       depends on BR2_PACKAGE_MESA3D_OPENGL_EGL
 
 comment "KMS/DRM video driver needs libdrm"
        depends on !BR2_PACKAGE_LIBDRM
 
+comment "KMS/DRM video driver needs an OpenGL EGL backend provided by mesa3d"
+       depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL
+
 config BR2_PACKAGE_SDL2_OPENGL
        bool "OpenGL (GLX)"
        depends on BR2_PACKAGE_HAS_LIBGL
index 5aad92eda8fa03a5d24749396c953a7e58f6ecc2..ff6b29f29c075d5b80fc2bb4f0fd41159adf42b6 100644 (file)
@@ -152,7 +152,7 @@ SDL2_CONF_OPTS += --disable-alsa
 endif
 
 ifeq ($(BR2_PACKAGE_SDL2_KMSDRM),y)
-SDL2_DEPENDENCIES += libdrm
+SDL2_DEPENDENCIES += libdrm mesa3d
 SDL2_CONF_OPTS += --enable-video-kmsdrm
 else
 SDL2_CONF_OPTS += --disable-video-kmsdrm