package/gstreamer1/gst1-plugins-bad: decouple drm suppoprt from va, since kvm uses it as well
PATCH 1/2 package/gstreamer1/gst1-plugins-bad: decouple drm suppoprt from va, since kvm uses it as well
support udev if LIBGUDEV package is selected
--- .../gst1-plugins-bad/gst1-plugins-bad.mk | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +12 -5
@@ -77,7 +77,6 @@ GST1_PLUGINS_BAD_CONF_OPTS += \ -Dsvthevcenc=disabled \ -Dtranscode=disabled \ -Dunixfd=disabled \ - -Dudev=disabled \ -Duvcgadget=disabled \ -Dvulkan=disabled \ -Dx11=disabled \
@@ -736,6 +735,13 @@ else GST1_PLUGINS_BAD_CONF_OPTS += -Dsrtp=disabled endif +ifeq ($(BR2_PACKAGE_LIBGUDEV),y) +GST1_PLUGINS_BAD_CONF_OPTS += -Dudev=enabled +GST1_PLUGINS_BAD_DEPENDENCIES += libgudev +else +GST1_PLUGINS_BAD_CONF_OPTS += -Dudev=disabled +endif + ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_UVCH264),y) GST1_PLUGINS_BAD_CONF_OPTS += -Duvch264=enabled GST1_PLUGINS_BAD_DEPENDENCIES += libgudev libusb
@@ -746,14 +752,15 @@ endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VA),y) GST1_PLUGINS_BAD_CONF_OPTS += -Dva=enabled GST1_PLUGINS_BAD_DEPENDENCIES += libva +else +GST1_PLUGINS_BAD_CONF_OPTS += -Dva=disabled +endif + ifeq ($(BR2_PACKAGE_LIBDRM),y) GST1_PLUGINS_BAD_CONF_OPTS += -Ddrm=enabled GST1_PLUGINS_BAD_DEPENDENCIES += libdrm -endif else -GST1_PLUGINS_BAD_CONF_OPTS += \ - -Ddrm=disabled \ - -Dva=disabled +GST1_PLUGINS_BAD_CONF_OPTS += -Ddrm=disabled endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VOAACENC),y)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/gstreamer1/gst1-plugins-bad: enable drm if buildroot package is enabled, adding it as a proper dep
--- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +7 -0
@@ -60,6 +60,13 @@ else GST1_PLUGINS_BASE_CONF_OPTS += -Dgl=disabled endif +ifeq ($(BR2_PACKAGE_LIBDRM),y) +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=enabled +GST1_PLUGINS_BASE_DEPENDENCIES += libdrm +else +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=disabled +endif + ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_OPENGL),y) GST1_PLUGINS_BASE_GL_API_LIST = opengl GST1_PLUGINS_BASE_DEPENDENCIES += libgl libglu
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
v2 cover gstreamer1: enable drm and udev independently
In reply to Adam Di CarloFixes a problem impacting at least the gstreamer 'kmssink' when built without libva, resulting a very limited capability sink. These issues are addressed by treating drm and udev as first class dependencies, activited by their associated and packaged libraries.
Changes in v1 -> v2:
- Improved commit messages.
- Correct some alphabetic violations.
- Linked to original V1:
https://lore.kernel.org/buildroot/[email protected]/
Adam Di Carlo (3):
package/gst1-plugins-base: if libdrm is enabled, make use of it package/gst1-plugins-bad: decouple va from drm and separately select
them
package/gst1-plugins-bad: presence of libgudev enables udev support
.../gst1-plugins-bad/gst1-plugins-bad.mk | 17 ++++++++++++----- .../gst1-plugins-base/gst1-plugins-base.mk | 7 +++++++ 2 files changed, 19 insertions(+), 5 deletions(-)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/3 package/gst1-plugins-bad: decouple va from drm and separately select them
Disabling BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VA was also disabling DRM support, and that in term mostly crippled KMS support. Both should be enabled or disabled separately, with any dependancies expressed elsewhere.
--- package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +5 -4
@@ -746,14 +746,15 @@ endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VA),y) GST1_PLUGINS_BAD_CONF_OPTS += -Dva=enabled GST1_PLUGINS_BAD_DEPENDENCIES += libva +else +GST1_PLUGINS_BAD_CONF_OPTS += -Dva=disabled +endif + ifeq ($(BR2_PACKAGE_LIBDRM),y) GST1_PLUGINS_BAD_CONF_OPTS += -Ddrm=enabled GST1_PLUGINS_BAD_DEPENDENCIES += libdrm -endif else -GST1_PLUGINS_BAD_CONF_OPTS += \ - -Ddrm=disabled \ - -Dva=disabled +GST1_PLUGINS_BAD_CONF_OPTS += -Ddrm=disabled endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VOAACENC),y)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/3 package/gst1-plugins-base: if libdrm is enabled, make use of it
In reply to Adam Di CarloThis formalizes the relation between the configuration option, now automatically aka randomly set, depending on the state of libdrm (BR2_PACKAGE_LIBDRM). Since that host dependency was not previously noted, configure would sometimes choose one way or another, but usually without.
--- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +7 -0
@@ -47,6 +47,13 @@ else GST1_PLUGINS_BASE_CONF_OPTS += -Dintrospection=disabled endif +ifeq ($(BR2_PACKAGE_LIBDRM),y) +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=enabled +GST1_PLUGINS_BASE_DEPENDENCIES += libdrm +else +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=disabled +endif + ifeq ($(BR2_PACKAGE_ORC),y) GST1_PLUGINS_BASE_DEPENDENCIES += orc GST1_PLUGINS_BASE_CONF_OPTS += -Dorc=enabled
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/3 package/gst1-plugins-bad: presence of libgudev enables udev support
In reply to Adam Di CarloIf the buildroot packages libgudev (BR2_PACKAGE_LIBGUDEV) is enabled, enable udev support in various plugins. Also bring libgudev into the build dependencies, so they are there when required.
--- package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +7 -1
@@ -77,7 +77,6 @@ GST1_PLUGINS_BAD_CONF_OPTS += \ -Dsvthevcenc=disabled \ -Dtranscode=disabled \ -Dunixfd=disabled \ - -Dudev=disabled \ -Duvcgadget=disabled \ -Dvulkan=disabled \ -Dx11=disabled \
@@ -111,6 +110,13 @@ else GST1_PLUGINS_BAD_CONF_OPTS += -Dorc=disabled endif +ifeq ($(BR2_PACKAGE_LIBGUDEV),y) +GST1_PLUGINS_BAD_CONF_OPTS += -Dudev=enabled +GST1_PLUGINS_BAD_DEPENDENCIES += libgudev +else +GST1_PLUGINS_BAD_CONF_OPTS += -Dudev=disabled +endif + ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_BLUEZ),y) GST1_PLUGINS_BAD_DEPENDENCIES += bluez5_utils GST1_PLUGINS_BAD_CONF_OPTS += -Dbluez=enabled
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/3] package/gst1-plugins-base: if libdrm is enabled, make use of it
In reply to Adam Di CarloAm 29.03.26 um 17:47 schrieb Adam Di Carlo:
Quoted 3 lines
This formalizes the relation between the configuration option, now automatically aka randomly set, depending on the state of libdrm (
BR2_PACKAGE_LIBDRM). Since that host dependency was not
libdrm is a target package, not a host package. I assume this should be "Since that dependency […]"?
Best regards,
Fiona
Quoted 16 lines
previously noted, configure would sometimes choose one way or another, but usually without.
Signed-off-by Adam Di Carlo <[email protected]>--- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 7 +++++++ 1 file changed, 7 insertions(+)package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +0
-0@@ -47,6 +47,13 @@ else GST1_PLUGINS_BASE_CONF_OPTS += -Dintrospection=disabled endif
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk else · line 59
Quoted 10 lines
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +7
-0+ifeq ($(BR2_PACKAGE_LIBDRM),y) +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=enabled +GST1_PLUGINS_BASE_DEPENDENCIES += libdrm +else +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=disabled +endif + ifeq ($(BR2_PACKAGE_ORC),y) GST1_PLUGINS_BASE_DEPENDENCIES += orc GST1_PLUGINS_BASE_CONF_OPTS += -Dorc=enabled
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/3] package/gst1-plugins-base: if libdrm is enabled, make use of it
Yes indeed, sorry. I guess I better do a V3 ??
Quoted 28 lines · Fiona Klute
Am 29.03.26 um 17:47 schrieb Adam Di Carlo:
Quoted 3 lines
This formalizes the relation between the configuration option, now automatically aka randomly set, depending on the state of libdrm (
BR2_PACKAGE_LIBDRM). Since that host dependency was notlibdrm is a target package, not a host package. I assume this should be "Since that dependency […]"?
Best regards,
FionaQuoted 16 lines
previously noted, configure would sometimes choose one way or another, but usually without.
Signed-off-by Adam Di Carlo <[email protected]>--- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 7 +++++++ 1 file changed, 7 insertions(+)package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +0
-0@@ -47,6 +47,13 @@ else GST1_PLUGINS_BASE_CONF_OPTS += -Dintrospection=disabled endif
Quoted 11 lines
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk else · line 59
Quoted 10 lines
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +7
-0+ifeq ($(BR2_PACKAGE_LIBDRM),y) +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=enabled +GST1_PLUGINS_BASE_DEPENDENCIES += libdrm +else +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=disabled +endif + ifeq ($(BR2_PACKAGE_ORC),y) GST1_PLUGINS_BASE_DEPENDENCIES += orc GST1_PLUGINS_BASE_CONF_OPTS += -Dorc=enabled
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
v2 cover gstreamer1: enable drm and udev independently
In reply to Adam Di CarloFixes a problem impacting at least the gstreamer 'kmssink' when built without libva, resulting a very limited capability sink. These issues are addressed by treating drm and udev as first class dependencies, activited by their associated and packaged libraries.
Changes in v2 -> v3:
- Corrected a mistake in a comment pointed out by Fiona Klute
Changes in v1 -> v2:
- Improved commit messages.
- Correct some alphabetic violations.
- Linked to original V1:
https://lore.kernel.org/buildroot/[email protected]/
Adam Di Carlo (3):
package/gst1-plugins-base: if libdrm is enabled, make use of it package/gst1-plugins-bad: decouple va from drm and separately select them package/gst1-plugins-bad: presence of libgudev enables udev support
.../gst1-plugins-bad/gst1-plugins-bad.mk | 17 ++++++++++++----- .../gst1-plugins-base/gst1-plugins-base.mk | 7 +++++++ 2 files changed, 19 insertions(+), 5 deletions(-)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/3 package/gst1-plugins-base: if libdrm is enabled, make use of it
This formalizes the relation between the configuration option, now automatically aka randomly set, depending on the state of libdrm (BR2_PACKAGE_LIBDRM). Since that dependency was not previously noted, configure would sometimes choose one way or another, but usually without.
--- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +7 -0
@@ -47,6 +47,13 @@ else GST1_PLUGINS_BASE_CONF_OPTS += -Dintrospection=disabled endif +ifeq ($(BR2_PACKAGE_LIBDRM),y) +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=enabled +GST1_PLUGINS_BASE_DEPENDENCIES += libdrm +else +GST1_PLUGINS_BASE_CONF_OPTS += -Ddrm=disabled +endif + ifeq ($(BR2_PACKAGE_ORC),y) GST1_PLUGINS_BASE_DEPENDENCIES += orc GST1_PLUGINS_BASE_CONF_OPTS += -Dorc=enabled
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/3 package/gst1-plugins-bad: decouple va from drm and separately select them
In reply to Adam Di CarloDisabling BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VA was also disabling DRM support, and that in term mostly crippled KMS support. Both should be enabled or disabled separately, with any dependancies expressed elsewhere.
--- package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +5 -4
@@ -746,14 +746,15 @@ endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VA),y) GST1_PLUGINS_BAD_CONF_OPTS += -Dva=enabled GST1_PLUGINS_BAD_DEPENDENCIES += libva +else +GST1_PLUGINS_BAD_CONF_OPTS += -Dva=disabled +endif + ifeq ($(BR2_PACKAGE_LIBDRM),y) GST1_PLUGINS_BAD_CONF_OPTS += -Ddrm=enabled GST1_PLUGINS_BAD_DEPENDENCIES += libdrm -endif else -GST1_PLUGINS_BAD_CONF_OPTS += \ - -Ddrm=disabled \ - -Dva=disabled +GST1_PLUGINS_BAD_CONF_OPTS += -Ddrm=disabled endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VOAACENC),y)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/3 package/gst1-plugins-bad: presence of libgudev enables udev support
In reply to Adam Di CarloIf the buildroot packages libgudev (BR2_PACKAGE_LIBGUDEV) is enabled, enable udev support in various plugins. Also bring libgudev into the build dependencies, so they are there when required.
--- package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +7 -1
@@ -77,7 +77,6 @@ GST1_PLUGINS_BAD_CONF_OPTS += \ -Dsvthevcenc=disabled \ -Dtranscode=disabled \ -Dunixfd=disabled \ - -Dudev=disabled \ -Duvcgadget=disabled \ -Dvulkan=disabled \ -Dx11=disabled \
@@ -111,6 +110,13 @@ else GST1_PLUGINS_BAD_CONF_OPTS += -Dorc=disabled endif +ifeq ($(BR2_PACKAGE_LIBGUDEV),y) +GST1_PLUGINS_BAD_CONF_OPTS += -Dudev=enabled +GST1_PLUGINS_BAD_DEPENDENCIES += libgudev +else +GST1_PLUGINS_BAD_CONF_OPTS += -Dudev=disabled +endif + ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_BLUEZ),y) GST1_PLUGINS_BAD_DEPENDENCIES += bluez5_utils GST1_PLUGINS_BAD_CONF_OPTS += -Dbluez=enabled
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot