Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gst1-plugins-bad: Add kmssink support
@ 2016-12-24 16:09 Fabio Estevam
  2016-12-24 19:27 ` Baruch Siach
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2016-12-24 16:09 UTC (permalink / raw)
  To: buildroot

Add support for the KMS video sink element. From the Gstreamer 1.10
release notes:

"New element kmssink to render video using Direct Rendering Manager (DRM)
and Kernel Mode Setting (KMS) subsystems in the Linux kernel. It is oriented
to be used mostly in embedded systems."

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 package/gstreamer1/gst1-plugins-bad/Config.in           | 5 +++++
 package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/package/gstreamer1/gst1-plugins-bad/Config.in b/package/gstreamer1/gst1-plugins-bad/Config.in
index 16c0b7e..8587f93 100644
--- a/package/gstreamer1/gst1-plugins-bad/Config.in
+++ b/package/gstreamer1/gst1-plugins-bad/Config.in
@@ -549,6 +549,11 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_HLS
 	help
 	  Fragmented streaming plugins
 
+config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS
+	bool "kmssink"
+	help
+	  KMS video sink
+
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS
 	bool "libmms"
 	depends on BR2_USE_WCHAR # libmms -> libglib2
diff --git a/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk b/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
index ba9f305..4d629f5 100644
--- a/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
+++ b/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
@@ -680,6 +680,13 @@ else
 GST1_PLUGINS_BAD_CONF_OPTS += --disable-hls
 endif
 
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS),y)
+GST1_PLUGINS_BAD_CONF_OPTS += --enable-kms
+GST1_PLUGINS_BAD_DEPENDENCIES += libdrm
+else
+GST1_PLUGINS_BAD_CONF_OPTS += --disable-kms
+endif
+
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS),y)
 GST1_PLUGINS_BAD_CONF_OPTS += --enable-libmms
 GST1_PLUGINS_BAD_DEPENDENCIES += libmms
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] gst1-plugins-bad: Add kmssink support
  2016-12-24 16:09 [Buildroot] [PATCH] gst1-plugins-bad: Add kmssink support Fabio Estevam
@ 2016-12-24 19:27 ` Baruch Siach
  0 siblings, 0 replies; 2+ messages in thread
From: Baruch Siach @ 2016-12-24 19:27 UTC (permalink / raw)
  To: buildroot

Hi Fabio,

On Sat, Dec 24, 2016 at 02:09:34PM -0200, Fabio Estevam wrote:
> Add support for the KMS video sink element. From the Gstreamer 1.10
> release notes:
> 
> "New element kmssink to render video using Direct Rendering Manager (DRM)
> and Kernel Mode Setting (KMS) subsystems in the Linux kernel. It is oriented
> to be used mostly in embedded systems."
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  package/gstreamer1/gst1-plugins-bad/Config.in           | 5 +++++
>  package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 7 +++++++
>  2 files changed, 12 insertions(+)
> 
> diff --git a/package/gstreamer1/gst1-plugins-bad/Config.in b/package/gstreamer1/gst1-plugins-bad/Config.in
> index 16c0b7e..8587f93 100644
> --- a/package/gstreamer1/gst1-plugins-bad/Config.in
> +++ b/package/gstreamer1/gst1-plugins-bad/Config.in
> @@ -549,6 +549,11 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_HLS
>  	help
>  	  Fragmented streaming plugins
>  
> +config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS
> +	bool "kmssink"
> +	help
> +	  KMS video sink
> +
>  config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS
>  	bool "libmms"
>  	depends on BR2_USE_WCHAR # libmms -> libglib2
> diff --git a/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk b/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
> index ba9f305..4d629f5 100644
> --- a/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
> +++ b/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
> @@ -680,6 +680,13 @@ else
>  GST1_PLUGINS_BAD_CONF_OPTS += --disable-hls
>  endif
>  
> +ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS),y)
> +GST1_PLUGINS_BAD_CONF_OPTS += --enable-kms
> +GST1_PLUGINS_BAD_DEPENDENCIES += libdrm

You need to add 'select BR2_PACKAGE_LIBDRM' (and libdrm dependencies).

> +else
> +GST1_PLUGINS_BAD_CONF_OPTS += --disable-kms
> +endif
> +
>  ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS),y)
>  GST1_PLUGINS_BAD_CONF_OPTS += --enable-libmms
>  GST1_PLUGINS_BAD_DEPENDENCIES += libmms

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-24 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-24 16:09 [Buildroot] [PATCH] gst1-plugins-bad: Add kmssink support Fabio Estevam
2016-12-24 19:27 ` Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox