All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 14/16] opengl: New virtual package
Date: Mon, 31 Mar 2014 22:21:35 +0200	[thread overview]
Message-ID: <20140331202135.GC5004@free.fr> (raw)
In-Reply-To: <1396296389-28821-15-git-send-email-bernd.kuhls@t-online.de>

Bernd, All,

On 2014-03-31 22:06 +0200, Bernd Kuhls spake thusly:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/mesa3d/Config.in       |    4 ++++
>  package/opengl/Config.in       |    1 +
>  package/opengl/libgl/Config.in |    6 ++++++
>  package/opengl/libgl/libgl.mk  |   16 ++++++++++++++++
>  4 files changed, 27 insertions(+)
>  create mode 100644 package/opengl/libgl/Config.in
>  create mode 100644 package/opengl/libgl/libgl.mk
> 
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index 8ed0c07..d735e76 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -34,6 +34,7 @@ comment "DRI drivers need shared libdrm"
>  
>  config BR2_PACKAGE_MESA3D_DRIVER
>  	bool
> +	select BR2_PACKAGE_HAS_OPENGL_GL
>  
>  menu "Drivers"
>  
> @@ -106,6 +107,9 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES
>  
>  endmenu
>  
> +config BR2_PACKAGE_PROVIDES_OPENGL_GL
> +	default "mesa3d" if BR2_PACKAGE_MESA3D_DRIVER
> +
>  config BR2_PACKAGE_PROVIDES_OPENGL_EGL
>  	default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL

Hey! I'm already working on this! :-)

Are you on IRC? There is a very lengthy discussion on this topic right
now in the #buildroot channel. This would have been a nice occasion to
properly sync-up our work, and to avoid duplication...

(adding Paul in Cc, who's been very helpful on IRC on this topic.)

But anyway, this patch should be split in two:
  - a first patch to add the virtual package itself
  - a second patch to make mesa3d a provider to the virtual package

> diff --git a/package/opengl/Config.in b/package/opengl/Config.in
> index ed81835..02010a9 100644
> --- a/package/opengl/Config.in
> +++ b/package/opengl/Config.in
> @@ -1,4 +1,5 @@
>  source "package/opengl/libegl/Config.in"
> +source "package/opengl/libgl/Config.in"
>  source "package/opengl/libgles/Config.in"
>  source "package/opengl/libopenvg/Config.in"
>  source "package/opengl/libopenmax/Config.in"
> diff --git a/package/opengl/libgl/Config.in b/package/opengl/libgl/Config.in
> new file mode 100644
> index 0000000..5421c86
> --- /dev/null
> +++ b/package/opengl/libgl/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_HAS_OPENGL_GL
> +	bool
> +
> +config BR2_PACKAGE_PROVIDES_OPENGL_GL
> +	depends on BR2_PACKAGE_HAS_OPENGL_GL
> +	string
> diff --git a/package/opengl/libgl/libgl.mk b/package/opengl/libgl/libgl.mk
> new file mode 100644
> index 0000000..66346d6
> --- /dev/null
> +++ b/package/opengl/libgl/libgl.mk
> @@ -0,0 +1,16 @@
> +################################################################################
> +#
> +# libgl
> +#
> +################################################################################
> +
> +LIBGL_SOURCE =
> +LIBGL_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENGL_GL))
> +
> +ifeq ($(BR2_PACKAGE_HAS_OPENGL_GL),y)
> +ifeq ($(LIBGL_DEPENDENCIES),)
> +$(error No libGL implementation selected. Configuration error.)
> +endif
> +endif
> +
> +$(eval $(generic-package))

Strange how this is so similar to what I've done here! Hehehe! ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2014-03-31 20:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 20:06 [Buildroot] [PATCH 00/16] XBMC Gotham Beta3 Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 01/16] pixman: Version bump 0.32.4 Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 02/16] xlib_xtrans: Version bump 1.3.4 Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 03/16] file: Version bump 5.18 Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 04/16] flex: Version bump 2.5.39 Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 05/16] sqlite: Version bump 3.8.4.2 Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 06/16] libdrm: Explain dependency on xorg in Kconfig Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH v4 07/16] xdriver_xf86-video-intel: Bump version to 2.99.911 Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 08/16] libva: new package Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 09/16] libva-intel-driver: " Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 10/16] ffmpeg: Add libva support Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 11/16] libglu: new package Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 12/16] libglew: " Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 13/16] sdl: Add new dependency libglu for opengl support Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH 14/16] opengl: New virtual package Bernd Kuhls
2014-03-31 20:21   ` Yann E. MORIN [this message]
2014-04-01 17:01     ` Bernd Kuhls
2014-03-31 20:06 ` [Buildroot] [PATCH WIP 15/16] xbmc: Bump version to Gotham_beta3 Bernd Kuhls
2014-03-31 22:05   ` Yann E. MORIN
2014-04-01 17:11     ` Bernd Kuhls
2014-04-01 18:35       ` Yann E. MORIN
2014-04-01 19:40         ` Bernd Kuhls
2014-04-01 21:29           ` Maxime Hadjinlian
2014-04-01 21:30           ` Yann E. MORIN
2014-03-31 20:06 ` [Buildroot] [PATCH WIP 16/16] xbmc: Add xbmc-send script to send commands to xbmc service Bernd Kuhls
2014-03-31 22:20   ` Yann E. MORIN
2014-05-20 20:49     ` Bernd Kuhls

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=20140331202135.GC5004@free.fr \
    --to=yann.morin.1998@free.fr \
    --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 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.