All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/19 v3] Add new virtual-package infrastructure
@ 2014-03-02 16:52 Yann E. MORIN
  2014-03-02 16:52 ` [Buildroot] [PATCH 01/19] package/libgles: rename package and the _HAS and _PROVIDES variables Yann E. MORIN
                   ` (19 more replies)
  0 siblings, 20 replies; 25+ messages in thread
From: Yann E. MORIN @ 2014-03-02 16:52 UTC (permalink / raw)
  To: buildroot

From: "Yann E. MORIN" <yann.morin.1998@free.fr>

Hello All!

Here is a quick series implementing a new infrastructure for virtual
packages.

Basically, all a virtual package has to do in its .mk is:

    $(eval $(virtual-package))

There is no need to:
  - define the dependency against the provider,
  - define _SOURCE=""  (empty)

But it requires the config options for the virtual package be named
after the package, eg.:

    package | Selector option        | Provider option
    --------+------------------------+-----------------------------
    libegl  | BR2_PACKAGE_HAS_LIBEGL | BR2_PACKAGE_PROVIDES_LIBEGL
    jpeg    | BR2_PACKAGE_HAS_JPEG   | BR2_PACKAGE_PROVIDES_JPEG

So the series:
  - starts with renaming some config options in the current virtual
    packages
  - then introduces the new virtual-package infra and the associated
    documentation in the manual
  - and finally converts the virtual packages over to the new infra.

Special thanks to ?ric for his initial work on the manual, which
prompted the idea for this new infra! That's partly for this that I
kept his initial change to the manual almost unmolested.

Notes:

  - the version string is strange. This does not work:
        $(2)_VERSION = virtual
    so I had to come up with the solution in patch 16.

  - patch 17 is not to be applied. It contains only example virtual
    packages, to check the implementation.


Changes v2 -> v3:
  - rename libegl and libgles: s/^/opengl-/  (Thomas P)
  - add host variant, for the upcoming lua stuff  (Fran?ois)
  - add fake version string  (Thomas DS)

Changes v1 -> v2:
  - include ?ric's virtual package tutorial to the manual  (?ric)
  - split the renaimg of config options from the actual conversion to
    the virtual-package infra
  - rebase on top of master after post-release merge
  - add host-virtual-package (will be needed by a pending lua-related
    series by Fran?ois)


Regards,
Yann E. MORIN.


----------------------------------------------------------------
Yann E. MORIN (18):
      package/libgles: rename package and the _HAS and _PROVIDES variables
      package/libegl: rename package and the _HAS and _PROVIDES variables
      package/libopenmax: rename the _HAS and _PROVIDES variables
      package/libopenvg: rename the _HAS and _PROVIDES variables
      package/luainterpreter: rename the _HAS and _PROVIDES variables
      package/lua: rename config options
      packages: add infrastructure for virtual packages
      manual: update the virtual package section with the new infrastructure
      package/powervr: convert to the virtual-package infrastructure
      package/opengl-libgles: convert to the virtual-package infrastructure
      package/opengl-libegl: convert to the virtual-package infrastructure
      package/libopenmax: convert to the virtual-package infrastructure
      package/libopenvg: convert to the virtual-package infrastructure
      package/luainterpreter: convert to the virtual-package infrastructure
      package/jpeg: convert to the virtual-package infrastructure
      package/cryptodev: convert to the virtual-package infrastructure
      virtual-package: fake a version string for virtual packages
      FOO: tentative target and host virt packages

eric.le.bihan.dev at free.fr (1):
      manual: add virtual package tutorial

 Config.in.legacy                                   | 21 +++++
 docs/manual/adding-packages-virtual.txt            | 93 ++++++++++++++++++++++
 docs/manual/adding-packages.txt                    |  2 +
 package/Config.in                                  |  6 +-
 package/Makefile.in                                |  1 +
 package/bellagio/Config.in                         |  4 +-
 package/cairo/cairo.mk                             |  6 +-
 package/cryptodev/Config.in                        |  3 +
 package/cryptodev/cryptodev.mk                     | 12 +--
 package/foo-prov/Config.in                         | 15 ++++
 package/foo-prov/foo-prov.mk                       | 13 +++
 package/foo-user/Config.in                         |  7 ++
 package/foo-user/foo-user.mk                       | 16 ++++
 package/foo-virt/Config.in                         | 13 +++
 package/foo-virt/foo-virt.mk                       |  2 +
 package/freescale-imx/gpu-viv-bin-mx6q/Config.in   |  8 +-
 package/gstreamer1/gst-omx/Config.in               |  4 +-
 package/gstreamer1/gst1-plugins-bad/Config.in      |  2 +-
 .../gst1-plugins-bad/gst1-plugins-bad.mk           |  2 +-
 package/jpeg/Config.in                             |  3 +
 package/jpeg/jpeg.mk                               | 12 +--
 package/lbase64/Config.in                          |  2 +-
 package/lpeg/Config.in                             |  2 +-
 package/lpty/Config.in                             |  2 +-
 package/lrandom/Config.in                          |  2 +-
 package/lsqlite3/Config.in                         |  2 +-
 package/lua-cjson/Config.in                        |  2 +-
 package/lua-ev/Config.in                           |  2 +-
 package/lua-msgpack-native/Config.in               |  2 +-
 package/lua/Config.in                              | 14 ++--
 package/lua/lua.mk                                 |  4 +-
 package/luaexpat/Config.in                         |  2 +-
 package/luafilesystem/Config.in                    |  2 +-
 package/luainterpreter/Config.in                   |  6 +-
 package/luainterpreter/luainterpreter.mk           | 11 +--
 package/luajit/Config.in                           |  4 +-
 package/luaposix/Config.in                         |  2 +-
 package/luasec/Config.in                           |  2 +-
 package/luasocket/Config.in                        |  2 +-
 package/luasql-sqlite3/Config.in                   |  2 +-
 package/lzlib/Config.in                            |  2 +-
 package/opengl/Config.in                           |  4 +-
 package/opengl/libegl/Config.in                    |  6 --
 package/opengl/libegl/libegl.mk                    | 16 ----
 package/opengl/libgles/Config.in                   |  6 --
 package/opengl/libgles/libgles.mk                  | 16 ----
 package/opengl/libopenmax/Config.in                |  6 +-
 package/opengl/libopenmax/libopenmax.mk            | 11 +--
 package/opengl/libopenvg/Config.in                 |  6 +-
 package/opengl/libopenvg/libopenvg.mk              | 11 +--
 package/opengl/opengl-libegl/Config.in             |  6 ++
 package/opengl/opengl-libegl/opengl-libegl.mk      |  7 ++
 package/opengl/opengl-libgles/Config.in            |  6 ++
 package/opengl/opengl-libgles/opengl-libgles.mk    |  7 ++
 package/pkg-virtual.mk                             | 70 ++++++++++++++++
 package/powervr/powervr.mk                         | 11 +--
 package/qt/Config.in                               |  4 +-
 package/qt/qt.mk                                   |  2 +-
 package/qt5/qt5base/Config.in                      |  6 +-
 package/qt5/qt5base/qt5base.mk                     |  2 +-
 package/qt5/qt5declarative/Config.in               |  6 +-
 package/qt5/qt5graphicaleffects/Config.in          |  6 +-
 package/qt5/qt5multimedia/Config.in                |  6 +-
 package/qt5/qt5quick1/Config.in                    |  6 +-
 package/qt5/qt5quickcontrols/Config.in             |  6 +-
 package/rings/Config.in                            |  2 +-
 package/rpi-userland/Config.in                     | 16 ++--
 package/sunxi-mali/Config.in                       |  8 +-
 package/ti-gfx/Config.in                           |  8 +-
 69 files changed, 385 insertions(+), 196 deletions(-)
 create mode 100644 docs/manual/adding-packages-virtual.txt
 create mode 100644 package/foo-prov/Config.in
 create mode 100644 package/foo-prov/foo-prov.mk
 create mode 100644 package/foo-user/Config.in
 create mode 100644 package/foo-user/foo-user.mk
 create mode 100644 package/foo-virt/Config.in
 create mode 100644 package/foo-virt/foo-virt.mk
 delete mode 100644 package/opengl/libegl/Config.in
 delete mode 100644 package/opengl/libegl/libegl.mk
 delete mode 100644 package/opengl/libgles/Config.in
 delete mode 100644 package/opengl/libgles/libgles.mk
 create mode 100644 package/opengl/opengl-libegl/Config.in
 create mode 100644 package/opengl/opengl-libegl/opengl-libegl.mk
 create mode 100644 package/opengl/opengl-libgles/Config.in
 create mode 100644 package/opengl/opengl-libgles/opengl-libgles.mk
 create mode 100644 package/pkg-virtual.mk

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-03-03 17:19 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-02 16:52 [Buildroot] [PATCH 0/19 v3] Add new virtual-package infrastructure Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 01/19] package/libgles: rename package and the _HAS and _PROVIDES variables Yann E. MORIN
2014-03-02 17:26   ` Samuel Martin
2014-03-02 16:52 ` [Buildroot] [PATCH 02/19] package/libegl: " Yann E. MORIN
2014-03-02 17:27   ` Samuel Martin
2014-03-02 16:52 ` [Buildroot] [PATCH 03/19] package/libopenmax: rename " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 04/19] package/libopenvg: " Yann E. MORIN
2014-03-02 22:39   ` Jerzy Grzegorek
2014-03-02 16:52 ` [Buildroot] [PATCH 05/19] package/luainterpreter: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 06/19] package/lua: rename config options Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 07/19] manual: add virtual package tutorial Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 08/19] packages: add infrastructure for virtual packages Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 09/19] manual: update the virtual package section with the new infrastructure Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 10/19] package/powervr: convert to the virtual-package infrastructure Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 11/19] package/opengl-libgles: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 12/19] package/opengl-libegl: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 13/19] package/libopenmax: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 14/19] package/libopenvg: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 15/19] package/luainterpreter: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 16/19] package/jpeg: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 17/19] package/cryptodev: " Yann E. MORIN
2014-03-02 16:52 ` [Buildroot] [PATCH 18/19] virtual-package: fake a version string for virtual packages Yann E. MORIN
2014-03-02 17:29   ` Samuel Martin
2014-03-02 16:53 ` [Buildroot] [PATCH 19/19] FOO: tentative target and host virt packages Yann E. MORIN
2014-03-03 17:19 ` [Buildroot] [PATCH 0/19 v3] Add new virtual-package infrastructure Yann E. MORIN

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.