From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/8] package/mesa3d: introduce new Kconfig option to indicate full OpenGL support
Date: Wed, 27 Apr 2016 21:30:40 +0200 [thread overview]
Message-ID: <20160427213040.327325f8@free-electrons.com> (raw)
In-Reply-To: <1461586822-1003-1-git-send-email-bernd.kuhls@t-online.de>
Hello,
On Mon, 25 Apr 2016 14:20:15 +0200, Bernd Kuhls wrote:
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index 45ca69c..2235f6c 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -29,6 +29,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> config BR2_PACKAGE_MESA3D_DRI_DRIVER
> select BR2_PACKAGE_MESA3D_DRIVER
> select BR2_PACKAGE_HAS_LIBGL if BR2_PACKAGE_XORG7
> + select BR2_PACKAGE_MESA3D_OPENGL_GL if BR2_PACKAGE_XORG7
> select BR2_PACKAGE_XLIB_LIBXSHMFENCE if BR2_PACKAGE_XPROTO_DRI3PROTO
> select BR2_PACKAGE_XPROTO_PRESENTPROTO if BR2_PACKAGE_XPROTO_DRI3PROTO
> bool
> @@ -145,7 +146,33 @@ config BR2_PACKAGE_MESA3D_OSMESA
>
> if BR2_PACKAGE_MESA3D_DRIVER
>
> -comment "Additional API Support"
> +comment "API Support"
> +
> +if BR2_PACKAGE_MESA3D_DRI_DRIVER
> +if BR2_PACKAGE_XORG7
> +
> +config BR2_PACKAGE_MESA3D_OPENGL_GL
> + bool "OpenGL"
> + help
> + This helper option is only visible when enabled and indicates
> + that Mesa3D contains full OpenGL support.
> +
> +endif
> +endif
> +
> +comment "full OpenGL support needs a DRI driver"
> + depends on !BR2_PACKAGE_MESA3D_OPENGL_GL
> + depends on BR2_PACKAGE_XORG7
> +
> +comment "full OpenGL support needs X.org"
> + depends on BR2_PACKAGE_MESA3D_DRI_DRIVER
> + depends on !BR2_PACKAGE_MESA3D_OPENGL_GL
> + depends on !BR2_PACKAGE_XORG7
> +
> +comment "full OpenGL support needs a DRI driver and X.org"
> + depends on !BR2_PACKAGE_MESA3D_DRI_DRIVER
> + depends on !BR2_PACKAGE_MESA3D_OPENGL_GL
> + depends on !BR2_PACKAGE_XORG7
Unless I'm missing something, I believe this is much more complicated
than it needs to be. Can't you just remove all this, and replace it
with:
config BR2_PACKAGE_MESA3D_OPENGL_GL
bool
default y
depends on BR2_PACKAGE_XORG7
depends on BR2_PACKAGE_MESA3D_DRI_DRIVER
This way, BR2_PACKAGE_MESA3D_OPENGL_GL is a blind option, that
indicates to mesa3d.mk whether full OpenGL support is enabled or not.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-04-27 19:30 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-25 12:20 [Buildroot] [PATCH 1/8] package/mesa3d: introduce new Kconfig option to indicate full OpenGL support Bernd Kuhls
2016-04-25 12:20 ` [Buildroot] [PATCH 2/8] package/glmark2: gl support also depends on X.org Bernd Kuhls
2016-04-27 19:05 ` Gustavo Zacarias
2016-04-27 19:32 ` Thomas Petazzoni
2016-04-27 19:38 ` Gustavo Zacarias
2016-04-27 19:49 ` Thomas Petazzoni
2016-04-27 19:54 ` Gustavo Zacarias
2016-04-27 20:52 ` Bernd Kuhls
2016-04-25 12:20 ` [Buildroot] [PATCH 3/8] package/kodi: Update OpenGL check Bernd Kuhls
2016-04-27 19:05 ` Gustavo Zacarias
2016-04-25 12:20 ` [Buildroot] [PATCH 4/8] package/libva: " Bernd Kuhls
2016-04-27 19:06 ` Gustavo Zacarias
2016-04-25 12:20 ` [Buildroot] [PATCH 5/8] package/x11r7/xdriver_xf86-video-intel: " Bernd Kuhls
2016-04-27 19:06 ` Gustavo Zacarias
2016-04-25 12:20 ` [Buildroot] [PATCH 6/8] package/x11r7/xdriver_xf86-video-mach64: " Bernd Kuhls
2016-04-27 19:07 ` Gustavo Zacarias
2016-04-25 12:20 ` [Buildroot] [PATCH 7/8] package/x11r7/xdriver_xf86-video-r128: " Bernd Kuhls
2016-04-27 19:11 ` Gustavo Zacarias
2016-04-25 12:20 ` [Buildroot] [PATCH 8/8] package/x11r7/xserver_xorg-server: " Bernd Kuhls
2016-04-27 19:11 ` Gustavo Zacarias
2016-04-27 19:04 ` [Buildroot] [PATCH 1/8] package/mesa3d: introduce new Kconfig option to indicate full OpenGL support Gustavo Zacarias
2016-04-27 19:30 ` Thomas Petazzoni [this message]
2016-04-27 20:46 ` Bernd Kuhls
2016-04-27 20:56 ` Thomas Petazzoni
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=20160427213040.327325f8@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox