[Buildroot] [PATCH 7/8] package/kmscube: use libgbm virtual package
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Sep 21 14:16:24 UTC 2021
Hello Kamel,
On Tue, 21 Sep 2021 15:03:24 +0200
Kamel Bouhara <kamel.bouhara at bootlin.com> wrote:
> From: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>
> kmscube requires a libgbm implementation, which until now, only Mesa3D
> was providing, so kmscube had a direct dependency on Mesa3D.
>
> However, now that we have a proper libgbm virtual package, so this
> commit converts the kmscube package to use the libegl, libgbm and
> libgles virtual packages.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> Signed-off-by: Kamel Bouhara <kamel.bouhara at bootlin.com>
> [ Kamel : add dependency on recent libgbm ]
> ---
> package/kmscube/Config.in | 18 ++++++++++++++----
> package/kmscube/kmscube.mk | 3 ++-
> 2 files changed, 16 insertions(+), 5 deletions(-)
>
> diff --git a/package/kmscube/Config.in b/package/kmscube/Config.in
> index b6ad305bfb..d97b0f962e 100644
> --- a/package/kmscube/Config.in
> +++ b/package/kmscube/Config.in
> @@ -1,9 +1,19 @@
> config BR2_PACKAGE_KMSCUBE
> bool "kmscube"
> - # requires libgbm from mesa3d
> - depends on BR2_PACKAGE_MESA3D_OPENGL_EGL
> - depends on BR2_PACKAGE_MESA3D_OPENGL_ES
> + depends on BR2_PACKAGE_HAS_LIBEGL
> + depends on BR2_PACKAGE_HAS_LIBGBM
> + depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_NAME_DESC
This does not exist in your PATCH 2/8:
+config BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
+config BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF
Did you test this patch ?
> +comment "kmscube needs a toolchain w/ threads support"
> + depends on BR2_PACKAGE_HAS_LIBEGL
> + depends on BR2_PACKAGE_HAS_LIBGBM
> + depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_NAME_DESC
> + depends on BR2_PACKAGE_HAS_LIBGLES
> + depends on !BR2_TOOLCHAIN_HAS_THREADS
This should be:
comment "kmscube needs EGL, GBM and OpenGL ES, and a toolchain w/ thread support"
> diff --git a/package/kmscube/kmscube.mk b/package/kmscube/kmscube.mk
> index 7b458376dc..26c82d2688 100644
> --- a/package/kmscube/kmscube.mk
> +++ b/package/kmscube/kmscube.mk
> @@ -8,6 +8,7 @@ KMSCUBE_VERSION = 4660a7dca6512b6e658759d00cff7d4ad2a2059d
> KMSCUBE_SITE = https://gitlab.freedesktop.org/mesa/kmscube/-/archive/$(KMSCUBE_VERSION)
> KMSCUBE_LICENSE = MIT
> KMSCUBE_LICENSE_FILES = COPYING
> -KMSCUBE_DEPENDENCIES = host-pkgconf mesa3d libdrm
> +KMSCUBE_DEPENDENCIES = host-pkgconf libgles libegl libgbm libdrm
> +KMSCUBE_AUTORECONF = YES
Why is autoreconf being added here ? On a meson-package, this doesn't
make much sense.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
More information about the buildroot
mailing list