[Buildroot] [git commit branch/next] package/kmscube: add optional gstreamer support

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Aug 22 20:36:28 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=d06ca392909d1c03e1e471dc7ae401b3ee73a5fc
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

kmscube has a gstreamer video texture input since:
https://gitlab.freedesktop.org/mesa/kmscube/-/commit/961c85f6eb42e4445513044c9944c83a0d9cb324

Signed-off-by: Julien Olivain <ju.o at free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/kmscube/Config.in  | 14 ++++++++++++++
 package/kmscube/kmscube.mk |  7 +++++++
 2 files changed, 21 insertions(+)

diff --git a/package/kmscube/Config.in b/package/kmscube/Config.in
index 7379675609..f68f38b7a8 100644
--- a/package/kmscube/Config.in
+++ b/package/kmscube/Config.in
@@ -11,6 +11,20 @@ config BR2_PACKAGE_KMSCUBE
 
 	  https://cgit.freedesktop.org/mesa/kmscube/
 
+if BR2_PACKAGE_KMSCUBE
+
+config BR2_PACKAGE_KMSCUBE_GSTREAMER
+	bool "Enable gstreamer video support"
+	depends on BR2_USE_WCHAR # glib2
+	depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
+	depends on BR2_USE_MMU # glib2
+	select BR2_PACKAGE_LIBGLIB2
+	select BR2_PACKAGE_GST1_PLUGINS_BASE
+	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
+	select BR2_PACKAGE_GSTREAMER1
+
+endif
+
 comment "kmscube needs EGL, GBM and OpenGL ES, and a toolchain w/ thread support"
 	depends on \
 		!BR2_PACKAGE_HAS_LIBEGL || \
diff --git a/package/kmscube/kmscube.mk b/package/kmscube/kmscube.mk
index a47df74f7b..eeb22061fb 100644
--- a/package/kmscube/kmscube.mk
+++ b/package/kmscube/kmscube.mk
@@ -10,6 +10,13 @@ KMSCUBE_LICENSE = MIT
 KMSCUBE_LICENSE_FILES = COPYING
 KMSCUBE_DEPENDENCIES = host-pkgconf libdrm libegl libgbm libgles
 
+ifeq ($(BR2_PACKAGE_KMSCUBE_GSTREAMER),y)
+KMSCUBE_DEPENDENCIES += gst1-plugins-base gstreamer1 libglib2
+KMSCUBE_CONF_OPTS += -Dgstreamer=enabled
+else
+KMSCUBE_CONF_OPTS += -Dgstreamer=disabled
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPNG),y)
 KMSCUBE_DEPENDENCIES += libpng
 # libpng is automatically detected in meson, there is no build



More information about the buildroot mailing list