Skip to contentSkip to conversation

Pull request for branch yem/providers

GIT PULL New Yann E. MORIN 2 participants 9 messages Dec 20, 2013 – Dec 25, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: "Yann E. MORIN" <[email protected]>

Hello All!

This series is a third attempt at trying to fix the BR2_EXTERNAL issue, in that packages in BR2_EXTERNAL can't be providers of an implementation for a virtual package, such as libegl.

The basic idea behind this series is that Arnout found it ugly that virtual packages had to each be aware of all their possible providers. For example, libegl.mk had four conditional dependencies, one for each of the builtin providers (freescale's vivante, rpi, TI's gfx, or Allwinner's sunxi mali).

This would prohibit a package in BR2_EXTERNAL to provide another implementation (eg. with an in-house proprietary, non-public package), since the virtual package's rules were evaluated even before we had a chance to parse BR2_EXTERNAL, and thus either requiring the new dependency to be added to the virtual package (hence defeating one of the selling-point of BR2_EXTERNAL0, or not allow external packages to provides implementations (hence killing that same selling-point of BR2_EXTERNAL as well).

So, Arnout suggested (and I was already working on it) that packages would declare themselves as providers, all in a single Kconfig variable, so the virtual package would just have to depend on that single, Kconfig-set variable.

This is what this series does for each virtual packages:
- moves the virtual package definition to its own Config.in
- introduces the string option BR2_PACKAGE_PROVIDES_xxxx
- changes all providers to default that variable to thier own name

for each of: opengl-egl, opengl-es, openmax, openvg, and powervr.

If anyone is feeling like writing a blurb in the manual, just feel free to go ahead and add a section about virtual packages! ;-p

Changes v1 -> v2:
- use qstrip when setting *_DEPENDENCIES (Thomas)
- convert jpeg and cryptodev (Thomas, Gustavo)

Regards,
Yann E. MORIN.

The following changes since commit 2746158497cdaf80a5b85584e3972857ac2e7e82:

util-linux: Add config switches for some more binaries (2013-12-20 22:45:31 +0100)

are available in the git repository at:

git://gitorious.org/buildroot/buildroot.git yem/providers

for you to fetch changes up to de12afe6412691eab4a049309636aa6bd627dd60:

package/cryptodev: switch to package-defined providers (2013-12-20 23:17:18 +0100)

----------------------------------------------------------------
Yann E. MORIN (7):
package/opengl/libegl: switch to package-defined providers package/opengl/libgles: switch to package-defined providers package/opengl/libopenvg: switch to package-defined providers package/opengl/libopenmax: switch to package-defined providers package/powervr: switch to package-defined providers package/libjpeg: switch to package-defined providers package/cryptodev: switch to package-defined providers

 package/bellagio/Config.in                       |  7 +++++++
 package/cryptodev/Config.in                      |  5 +++++
 package/cryptodev/cryptodev.mk                   |  9 +--------
 package/freescale-imx/gpu-viv-bin-mx6q/Config.in |  6 ++++++
 package/jpeg/Config.in                           |  5 +++++
 package/jpeg/jpeg.mk                             |  9 +--------
 package/opengl/Config.in                         | 15 ++++-----------
 package/opengl/libegl/Config.in                  |  6 ++++++
 package/opengl/libegl/libegl.mk                  | 17 +----------------
 package/opengl/libgles/Config.in                 |  6 ++++++
 package/opengl/libgles/libgles.mk                | 17 +----------------
 package/opengl/libopenmax/Config.in              |  6 ++++++
 package/opengl/libopenmax/libopenmax.mk          |  9 +--------
 package/opengl/libopenvg/Config.in               |  6 ++++++
 package/opengl/libopenvg/libopenvg.mk            |  5 +----
 package/powervr/Config.in                        |  4 ++++
 package/powervr/powervr.mk                       |  5 +----
 package/rpi-userland/Config.in                   | 16 ++++++++++++++++
 package/sunxi-mali/Config.in                     |  6 ++++++
 package/ti-gfx/Config.in                         |  9 +++++++++
 20 files changed, 93 insertions(+), 75 deletions(-)
 create mode 100644 package/opengl/libegl/Config.in
 create mode 100644 package/opengl/libgles/Config.in
 create mode 100644 package/opengl/libopenmax/Config.in
 create mode 100644 package/opengl/libopenvg/Config.in
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
#1 lore raw

PATCH 1/7 package/opengl/libegl: switch to package-defined providers

From: "Yann E. MORIN" <[email protected]>

It seems weird that the libegl package has to know all of the packages that may provide the EGL implementation.

This also breaks implementation provided by packages in BR2_EXTERNAL, since we can't easily depend on the order of packages before we can derive the dependencies of libegl.

So, Arnout and I separately came up to the same conclusion: move the dependency selection from out of libegl, and into each of the packages that provides an EGL implementation. Here it is.

Since we no longer depend on the order packages are included, but on values set at Kconfig-time, we can now have EGL providers in BR2_EXTERNAL.

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/freescale-imx/gpu-viv-bin-mx6q/Config.in |  3 +++
 package/opengl/Config.in                         |  3 +--
 package/opengl/libegl/Config.in                  |  6 ++++++
 package/opengl/libegl/libegl.mk                  | 17 +----------------
 package/rpi-userland/Config.in                   |  7 +++++++
 package/sunxi-mali/Config.in                     |  3 +++
 package/ti-gfx/Config.in                         |  3 +++
 7 files changed, 24 insertions(+), 18 deletions(-)
 create mode 100644 package/opengl/libegl/Config.in
package/freescale-imx/gpu-viv-bin-mx6q/Config.in +3 -0
index 64e42ba..68380a2 100644
@@ -24,6 +24,9 @@ config BR2_PACKAGE_GPU_VIV_BIN_MX6Q
 
 if BR2_PACKAGE_GPU_VIV_BIN_MX6Q
 
+config BR2_PACKAGE_PROVIDES_OPENGL_EGL
+	default "gpu-viv-bin-mx6q"
+
 config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_EXAMPLES
 	bool "install examples"
 	help
package/opengl/Config.in +1 -2
index 1636807..686543b 100644
@@ -1,5 +1,4 @@
-config BR2_PACKAGE_HAS_OPENGL_EGL
-	bool
+source "package/opengl/libegl/Config.in"
 
 config BR2_PACKAGE_HAS_OPENGL_ES
 	bool
package/opengl/libegl/Config.in new file +6 -0
new file mode 100644
index 0000000..2d81a20
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HAS_OPENGL_EGL
+	bool
+
+config BR2_PACKAGE_PROVIDES_OPENGL_EGL
+	depends on BR2_PACKAGE_HAS_OPENGL_EGL
+	string
package/opengl/libegl/libegl.mk +1 -16
index c194b02..b2b74f1 100644
@@ -5,22 +5,7 @@
 ################################################################################
 
 LIBEGL_SOURCE =
-
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-LIBEGL_DEPENDENCIES += rpi-userland
-endif
-
-ifeq ($(BR2_PACKAGE_TI_GFX),y)
-LIBEGL_DEPENDENCIES += ti-gfx
-endif
-
-ifeq ($(BR2_PACKAGE_SUNXI_MALI),y)
-LIBEGL_DEPENDENCIES += sunxi-mali
-endif
-
-ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q),y)
-LIBEGL_DEPENDENCIES += gpu-viv-bin-mx6q
-endif
+LIBEGL_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENGL_EGL))
 
 ifeq ($(LIBEGL_DEPENDENCIES),)
 define LIBEGL_CONFIGURE_CMDS
package/rpi-userland/Config.in +7 -0
index 8910211..3c8959e 100644
@@ -17,6 +17,13 @@ config BR2_PACKAGE_RPI_USERLAND
 
 	  https://github.com/raspberrypi/userland/
 
+if BR2_PACKAGE_RPI_USERLAND
+
+config BR2_PACKAGE_PROVIDES_OPENGL_EGL
+	default "rpi-userland"
+
+endif
+
 comment "rpi-userland needs a toolchain w/ C++, largefile, threads"
 	depends on BR2_arm
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
package/sunxi-mali/Config.in +3 -0
index 2ca049d..7f07647 100644
@@ -18,6 +18,9 @@ config BR2_PACKAGE_SUNXI_MALI
 
 if BR2_PACKAGE_SUNXI_MALI
 
+config BR2_PACKAGE_PROVIDES_OPENGL_EGL
+	default "sunxi-mali"
+
 config BR2_PACKAGE_SUNXI_MALI_DBG
 	bool "install malitest and maliver tools"
 	help
package/ti-gfx/Config.in +3 -0
index ec3a54c..e89660f 100644
@@ -11,6 +11,9 @@ config BR2_PACKAGE_TI_GFX
 
 if BR2_PACKAGE_TI_GFX
 
+config BR2_PACKAGE_PROVIDES_OPENGL_EGL
+	default "ti-gfx"
+
 config BR2_PACKAGE_TI_GFX_DEBUG
 	bool "enable debug support"
 	help
Signature · 1 line
1.8.1.2
#2 lore raw

PATCH 2/7 package/opengl/libgles: switch to package-defined providers

In reply to Yann E. MORIN

From: "Yann E. MORIN" <[email protected]>

For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/freescale-imx/gpu-viv-bin-mx6q/Config.in |  3 +++
 package/opengl/Config.in                         |  4 +---
 package/opengl/libgles/Config.in                 |  6 ++++++
 package/opengl/libgles/libgles.mk                | 17 +----------------
 package/rpi-userland/Config.in                   |  3 +++
 package/sunxi-mali/Config.in                     |  3 +++
 package/ti-gfx/Config.in                         |  3 +++
 7 files changed, 20 insertions(+), 19 deletions(-)
 create mode 100644 package/opengl/libgles/Config.in
package/freescale-imx/gpu-viv-bin-mx6q/Config.in +3 -0
index 68380a2..e084568 100644
@@ -27,6 +27,9 @@ if BR2_PACKAGE_GPU_VIV_BIN_MX6Q
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 	default "gpu-viv-bin-mx6q"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+	default "gpu-viv-bin-mx6q"
+
 config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_EXAMPLES
 	bool "install examples"
 	help
package/opengl/Config.in +1 -3
index 686543b..3960082 100644
@@ -1,7 +1,5 @@
 source "package/opengl/libegl/Config.in"
-
-config BR2_PACKAGE_HAS_OPENGL_ES
-	bool
+source "package/opengl/libgles/Config.in"
 
 config BR2_PACKAGE_HAS_OPENVG
 	bool
package/opengl/libgles/Config.in new file +6 -0
new file mode 100644
index 0000000..75ccfc8
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HAS_OPENGL_ES
+	bool
+
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+	depends on BR2_PACKAGE_HAS_OPENGL_ES
+	string
package/opengl/libgles/libgles.mk +1 -16
index ec157ac..0dcbaa7 100644
@@ -5,22 +5,7 @@
 ################################################################################
 
 LIBGLES_SOURCE =
-
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-LIBGLES_DEPENDENCIES += rpi-userland
-endif
-
-ifeq ($(BR2_PACKAGE_TI_GFX),y)
-LIBGLES_DEPENDENCIES += ti-gfx
-endif
-
-ifeq ($(BR2_PACKAGE_SUNXI_MALI),y)
-LIBGLES_DEPENDENCIES += sunxi-mali
-endif
-
-ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q),y)
-LIBGLES_DEPENDENCIES += gpu-viv-bin-mx6q
-endif
+LIBGLES_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENGL_ES))
 
 ifeq ($(LIBGLES_DEPENDENCIES),)
 define LIBGLES_CONFIGURE_CMDS
package/rpi-userland/Config.in +3 -0
index 3c8959e..b8860d6 100644
@@ -22,6 +22,9 @@ if BR2_PACKAGE_RPI_USERLAND
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 	default "rpi-userland"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+	default "rpi-userland"
+
 endif
 
 comment "rpi-userland needs a toolchain w/ C++, largefile, threads"
package/sunxi-mali/Config.in +3 -0
index 7f07647..9f188a3 100644
@@ -21,6 +21,9 @@ if BR2_PACKAGE_SUNXI_MALI
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 	default "sunxi-mali"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+	default "sunxi-mali"
+
 config BR2_PACKAGE_SUNXI_MALI_DBG
 	bool "install malitest and maliver tools"
 	help
package/ti-gfx/Config.in +3 -0
index e89660f..929247b 100644
@@ -14,6 +14,9 @@ if BR2_PACKAGE_TI_GFX
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 	default "ti-gfx"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+	default "ti-gfx"
+
 config BR2_PACKAGE_TI_GFX_DEBUG
 	bool "enable debug support"
 	help
Signature · 1 line
1.8.1.2
#3 lore raw

PATCH 3/7 package/opengl/libopenvg: switch to package-defined providers

In reply to Yann E. MORIN

From: "Yann E. MORIN" <[email protected]>

For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/opengl/Config.in              | 4 +---
 package/opengl/libopenvg/Config.in    | 6 ++++++
 package/opengl/libopenvg/libopenvg.mk | 5 +----
 package/rpi-userland/Config.in        | 3 +++
 4 files changed, 11 insertions(+), 7 deletions(-)
 create mode 100644 package/opengl/libopenvg/Config.in
package/opengl/Config.in +1 -3
index 3960082..109cde8 100644
@@ -1,8 +1,6 @@
 source "package/opengl/libegl/Config.in"
 source "package/opengl/libgles/Config.in"
-
-config BR2_PACKAGE_HAS_OPENVG
-	bool
+source "package/opengl/libopenvg/Config.in"
 
 config BR2_PACKAGE_HAS_OPENMAX
 	bool
package/opengl/libopenvg/Config.in new file +6 -0
new file mode 100644
index 0000000..9d31525
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HAS_OPENVG
+	bool
+
+config BR2_PACKAGE_PROVIDES_OPENVG
+	depends on BR2_PACKAGE_HAS_OPENVG
+	string
package/opengl/libopenvg/libopenvg.mk +1 -4
index 3296f63..ffd9d68 100644
@@ -5,10 +5,7 @@
 ################################################################################
 
 LIBOPENVG_SOURCE =
-
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-LIBOPENVG_DEPENDENCIES += rpi-userland
-endif
+LIBOPENVG_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENVG))
 
 ifeq ($(LIBOPENVG_DEPENDENCIES),)
 define LIBOPENVG_CONFIGURE_CMDS
package/rpi-userland/Config.in +3 -0
index b8860d6..271c71d 100644
@@ -25,6 +25,9 @@ config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 config BR2_PACKAGE_PROVIDES_OPENGL_ES
 	default "rpi-userland"
 
+config BR2_PACKAGE_PROVIDES_OPENVG
+	default "rpi-userland"
+
 endif
 
 comment "rpi-userland needs a toolchain w/ C++, largefile, threads"
Signature · 1 line
1.8.1.2
#4 lore raw

PATCH 4/7 package/opengl/libopenmax: switch to package-defined providers

In reply to Yann E. MORIN

From: "Yann E. MORIN" <[email protected]>

For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/bellagio/Config.in              | 7 +++++++
 package/opengl/Config.in                | 4 +---
 package/opengl/libopenmax/Config.in     | 6 ++++++
 package/opengl/libopenmax/libopenmax.mk | 9 +--------
 package/rpi-userland/Config.in          | 3 +++
 5 files changed, 18 insertions(+), 11 deletions(-)
 create mode 100644 package/opengl/libopenmax/Config.in
package/bellagio/Config.in +7 -0
index e3da432..2beb658 100644
@@ -17,5 +17,12 @@ config BR2_PACKAGE_BELLAGIO
 
 	  http://omxil.sourceforge.net/
 
+if BR2_PACKAGE_BELLAGIO
+
+config BR2_PACKAGE_PROVIDES_OPENMAX
+	default "bellagio"
+
+endif
+
 comment "bellagio needs a toolchain w/ C++, threads, dynamic library"
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB
package/opengl/Config.in +1 -3
index 109cde8..ed81835 100644
@@ -1,6 +1,4 @@
 source "package/opengl/libegl/Config.in"
 source "package/opengl/libgles/Config.in"
 source "package/opengl/libopenvg/Config.in"
-
-config BR2_PACKAGE_HAS_OPENMAX
-	bool
+source "package/opengl/libopenmax/Config.in"
package/opengl/libopenmax/Config.in new file +6 -0
new file mode 100644
index 0000000..105c53e
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HAS_OPENMAX
+	bool
+
+config BR2_PACKAGE_PROVIDES_OPENMAX
+	depends on BR2_PACKAGE_HAS_OPENMAX
+	string
package/opengl/libopenmax/libopenmax.mk +1 -8
index 9e6f89a..c4f1f71 100644
@@ -5,14 +5,7 @@
 ################################################################################
 
 LIBOPENMAX_SOURCE =
-
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-LIBOPENMAX_DEPENDENCIES += rpi-userland
-endif
-
-ifeq ($(BR2_PACKAGE_BELLAGIO),y)
-LIBOPENMAX_DEPENDENCIES += bellagio
-endif
+LIBOPENMAX_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENMAX))
 
 ifeq ($(LIBOPENMAX_DEPENDENCIES),)
 define LIBOPENMAX_CONFIGURE_CMDS
package/rpi-userland/Config.in +3 -0
index 271c71d..2303942 100644
@@ -28,6 +28,9 @@ config BR2_PACKAGE_PROVIDES_OPENGL_ES
 config BR2_PACKAGE_PROVIDES_OPENVG
 	default "rpi-userland"
 
+config BR2_PACKAGE_PROVIDES_OPENMAX
+	default "rpi-userland"
+
 endif
 
 comment "rpi-userland needs a toolchain w/ C++, largefile, threads"
Signature · 1 line
1.8.1.2
#5 lore raw

PATCH 5/7 package/powervr: switch to package-defined providers

In reply to Yann E. MORIN

From: "Yann E. MORIN" <[email protected]>

For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/powervr/Config.in  | 4 ++++
 package/powervr/powervr.mk | 5 +----
 package/ti-gfx/Config.in   | 3 +++
 3 files changed, 8 insertions(+), 4 deletions(-)
package/powervr/Config.in +4 -0
index d09ce74..746e15b 100644
@@ -1,2 +1,6 @@
 config BR2_PACKAGE_HAS_POWERVR
 	bool
+
+config BR2_PACKAGE_PROVIDES_POWERVR
+	depends on BR2_PACKAGE_HAS_POWERVR
+	string
package/powervr/powervr.mk +1 -4
index 83392fd..1f43505 100644
@@ -5,10 +5,7 @@
 ################################################################################
 
 POWERVR_SOURCE =
-
-ifeq ($(BR2_PACKAGE_TI_GFX),y)
-POWERVR_DEPENDENCIES += ti-gfx
-endif
+POWERVR_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_POWERVR))
 
 ifeq ($(POWERVR_DEPENDENCIES),)
 define POWERVR_CONFIGURE_CMDS
package/ti-gfx/Config.in +3 -0
index 929247b..f455f4c 100644
@@ -17,6 +17,9 @@ config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 config BR2_PACKAGE_PROVIDES_OPENGL_ES
 	default "ti-gfx"
 
+config BR2_PACKAGE_PROVIDES_POWERVR
+	default "ti-gfx"
+
 config BR2_PACKAGE_TI_GFX_DEBUG
 	bool "enable debug support"
 	help
Signature · 1 line
1.8.1.2
#6 lore raw

PATCH 6/7 package/libjpeg: switch to package-defined providers

In reply to Yann E. MORIN

From: "Yann E. MORIN" <[email protected]>

For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Gustavo Zacarias <[email protected]>
---
 package/jpeg/Config.in | 5 +++++
 package/jpeg/jpeg.mk   | 9 +--------
 2 files changed, 6 insertions(+), 8 deletions(-)
package/jpeg/Config.in +5 -0
index 9508faf..b7cdfeb 100644
@@ -30,4 +30,9 @@ config BR2_PACKAGE_JPEG_TURBO
 
 endchoice
 
+config BR2_PACKAGE_PROVIDES_JPEG
+	string
+	default "libjpeg"    if BR2_PACKAGE_LIBJPEG
+	default "jpeg-turbo" if BR2_PACKAGE_JPEG_TURBO
+
 endif
package/jpeg/jpeg.mk +1 -8
index eaa2394..3695bc8 100644
@@ -5,14 +5,7 @@
 ################################################################################
 
 JPEG_SOURCE =
-
-ifeq ($(BR2_PACKAGE_JPEG_TURBO),y)
-JPEG_DEPENDENCIES += jpeg-turbo
-endif
-
-ifeq ($(BR2_PACKAGE_LIBJPEG),y)
-JPEG_DEPENDENCIES += libjpeg
-endif
+JPEG_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_JPEG))
 
 ifeq ($(JPEG_DEPENDENCIES),)
 define JPEG_CONFIGURE_CMDS
Signature · 1 line
1.8.1.2
#7 lore raw

PATCH 7/7 package/cryptodev: switch to package-defined providers

In reply to Yann E. MORIN

From: "Yann E. MORIN" <[email protected]>

For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Gustavo Zacarias <[email protected]>
---
 package/cryptodev/Config.in    | 5 +++++
 package/cryptodev/cryptodev.mk | 9 +--------
 2 files changed, 6 insertions(+), 8 deletions(-)
package/cryptodev/Config.in +5 -0
index d7b7754..0780cc7 100644
@@ -37,4 +37,9 @@ config BR2_PACKAGE_OCF_LINUX
 
 endchoice
 
+config BR2_PACKAGE_PROVIDES_CRYPTODEV
+	string
+	default "cryptodev-linux" if BR2_PACKAGE_CRYPTODEV_LINUX
+	default "ocf-linux"       if BR2_PACKAGE_OCF_LINUX
+
 endif
package/cryptodev/cryptodev.mk +1 -8
index ad5adf0..11e6f48 100644
@@ -5,14 +5,7 @@
 ################################################################################
 
 CRYPTODEV_SOURCE =
-
-ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)
-CRYPTODEV_DEPENDENCIES += cryptodev-linux
-endif
-
-ifeq ($(BR2_PACKAGE_OCF_LINUX),y)
-CRYPTODEV_DEPENDENCIES += ocf-linux
-endif
+CRYPTODEV_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_CRYPTODEV))
 
 ifeq ($(CRYPTODEV_DEPENDENCIES),)
 define CRYPTODEV_CONFIGURE_CMDS
Signature · 1 line
1.8.1.2
#8 lore raw
In reply to Yann E. MORIN

Dear Yann E. MORIN,

Quoted 8 lines · Yann E. MORIN

Yann E. MORIN (7):
package/opengl/libegl: switch to package-defined providers package/opengl/libgles: switch to package-defined providers package/opengl/libopenvg: switch to package-defined providers package/opengl/libopenmax: switch to package-defined providers package/powervr: switch to package-defined providers package/libjpeg: switch to package-defined providers package/cryptodev: switch to package-defined providers

Thanks, applied!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com