All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Kamel Bouhara <kamel.bouhara@bootlin.com>
Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 6/7] package/kmscube: use libgbm virtual package
Date: Fri, 1 Oct 2021 16:18:52 +0200	[thread overview]
Message-ID: <20211001161852.5e0e5a7e@windsurf> (raw)
In-Reply-To: <20210928223754.3398867-6-kamel.bouhara@bootlin.com>

On Wed, 29 Sep 2021 00:37:53 +0200
Kamel Bouhara <kamel.bouhara@bootlin.com> wrote:

> diff --git a/package/kmscube/Config.in b/package/kmscube/Config.in
> index b6ad305bfb..3876f93491 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_MODIFIER_PLANE_COUNT
> +	depends on BR2_PACKAGE_HAS_LIBGLES
> +	depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
> +	select BR2_PACKAGE_LIBDRM
>  	help
>  	  kmscube is an application to test kms/drm drivers.
>  
> -	  https://gitlab.freedesktop.org/mesa/kmscube
> +	  https://cgit.freedesktop.org/mesa/kmscube/
> +
> +comment "kmscube needs EGL, GBM and OpenGL ES, and a toolchain w/ thread support"
> +	depends on BR2_PACKAGE_HAS_LIBEGL
> +	depends on BR2_PACKAGE_HAS_LIBGBM
> +	depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
> +	depends on BR2_PACKAGE_HAS_LIBGLES
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS

This should be:

	depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_HAS_LIBGBM || !BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT || !depends on BR2_PACKAGE_HAS_LIBGLES || !BR2_TOOLCHAIN_HAS_THREADS

Indeed, in your current implementation, the comment will only show up
if we have EGL, gbm, OpenGLES available but threads are not available.
This makes a comment suggesting to enable EGL, GBM and OpenGL ES a bit
useless.

Instead what we want is to show the comment if EGL is missing, or if
GBM is missing, or if OpenGL ES is missing, or if threads are missing.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-10-01 14:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-28 22:37 [Buildroot] [PATCH v2 1/7] package/opengl/libgbm: new virtual package Kamel Bouhara
2021-09-28 22:37 ` [Buildroot] [PATCH v2 2/7] package/mesa3d: add gbm api features Kamel Bouhara
2021-09-28 22:37 ` [Buildroot] [PATCH v2 3/7] package/sunxi-mali-mainline: bump version Kamel Bouhara
2021-09-28 22:37 ` [Buildroot] [PATCH v2 4/7] package/sunxi-mali-mainline: add support for different outputs Kamel Bouhara
2021-10-01 14:14   ` Thomas Petazzoni
2021-09-28 22:37 ` [Buildroot] [PATCH v2 5/7] package/sunxi-mali-mainline: provides libgbm Kamel Bouhara
2021-10-01 14:16   ` Thomas Petazzoni
2021-09-28 22:37 ` [Buildroot] [PATCH v2 6/7] package/kmscube: use libgbm virtual package Kamel Bouhara
2021-10-01 14:18   ` Thomas Petazzoni [this message]
2021-09-28 22:37 ` [Buildroot] [PATCH v2 7/7] package/gcnano-binaries: provides libgbm Kamel Bouhara
2021-10-01 14:13 ` [Buildroot] [PATCH v2 1/7] package/opengl/libgbm: new virtual package Thomas Petazzoni
2021-10-07  9:35   ` Kamel Bouhara
2021-10-08 12:40     ` Thomas Petazzoni
     [not found]       ` <YWA98UOCDjOFh51v@aptenodytes>
2021-10-08 13:10         ` Thomas Petazzoni
2021-10-03 21:05 ` Yann E. MORIN
2021-10-07 10:00   ` Kamel Bouhara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211001161852.5e0e5a7e@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@buildroot.org \
    --cc=kamel.bouhara@bootlin.com \
    --cc=paul.kocialkowski@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.