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.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Alexandru Ardelean 2022-07-27 11:19:53 +03:00 committed by Thomas Petazzoni
parent df36e51ee1
commit 8bbf5cb7cf

View File

@ -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