Skip to contentSkip to conversation

package/cog: add udev dependency to drm platform support

PATCH In review Alexandru Ardelean 3 participants 5 messages Jul 27, 2022 – Sep 14, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/cog: add udev dependency to drm platform support

The DRM platform support already has the 'BR2_PACKAGE_HAS_UDEV' symbol in package/cog/Config.in

We just need to specify 'udev' as a dependency in the cog.mk file. The udev virtual package is pulled by libinput anyway, but this makes it more explicit.

---

In continuation of:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

 package/cog/cog.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/cog/cog.mk +1 -1
index da660eb7c1..95b6220629 100644
@@ -28,7 +28,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y)
 COG_CONF_OPTS += -DCOG_PLATFORM_DRM=ON
-COG_DEPENDENCIES += libdrm libinput libgbm libegl
+COG_DEPENDENCIES += libdrm libinput libgbm libegl udev
 else
 COG_CONF_OPTS += -DCOG_PLATFORM_DRM=OFF
 endif
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/cog: add dep on libgbm's dmabuf & plane-count-modifier features

cog uses the dmabuf and plane-count-modifier features from libgbm. These are provided by mesa3d, but may not be provided by other libgbm providers.

So, make this a dependency.

---
 package/cog/Config.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
package/cog/Config.in +5 -1
index 484eb85c70..d2a910f9b8 100644
@@ -41,6 +41,8 @@ config BR2_PACKAGE_COG_PLATFORM_DRM
 	depends on BR2_PACKAGE_HAS_UDEV # libinput
 	depends on BR2_PACKAGE_HAS_LIBEGL
 	depends on BR2_PACKAGE_HAS_LIBGBM
+	depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF
+	depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_LIBINPUT
 	help
@@ -56,6 +58,8 @@ config BR2_PACKAGE_COG_USE_SYSTEM_DBUS
 comment "DRM platform needs EGL and GBM"
 	depends on \
 		!BR2_PACKAGE_HAS_LIBEGL || \
-		!BR2_PACKAGE_HAS_LIBGBM
+		!BR2_PACKAGE_HAS_LIBGBM || \
+		!BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF || \
+		!BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
 
 endif
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/cog: add dep on libgbm's dmabuf & plane-count-modifier features

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexandru" == Alexandru Ardelean <[email protected]> writes:

cog uses the dmabuf and plane-count-modifier features from libgbm. These are provided by mesa3d, but may not be provided by other libgbm providers.

So, make this a dependency.

Committed to 2022.05.x and 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Alexandru Ardelean
Quoted 9 lines · On Wed, 27 Jul 2022 11:19:52 +0300 Alexandru Ardelean <[email protected]>…

The DRM platform support already has the 'BR2_PACKAGE_HAS_UDEV' symbol in package/cog/Config.in

We just need to specify 'udev' as a dependency in the cog.mk file. The udev virtual package is pulled by libinput anyway, but this makes it more explicit.

---

Both applied, thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Alexandru Ardelean
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexandru" == Alexandru Ardelean <[email protected]> writes:

The DRM platform support already has the 'BR2_PACKAGE_HAS_UDEV' symbol in package/cog/Config.in

We just need to specify 'udev' as a dependency in the cog.mk file. The udev virtual package is pulled by libinput anyway, but this makes it more explicit.

Quoted 5 lines

---

In continuation of:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Committed to 2022.05.x and 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot