summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-12-20 22:27:59 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-25 17:21:55 (GMT)
commit569b842985713d02f34367621ed7a6b6e5efdf73 (patch)
treeddb820bad3ca826e7c46efa78e8a6154eb0bcf3c
parent17a0165a2a605ca46fea5721674fee2f0b985dbc (diff)
downloadbuildroot-569b842985713d02f34367621ed7a6b6e5efdf73.tar.gz
buildroot-569b842985713d02f34367621ed7a6b6e5efdf73.tar.bz2
package/cryptodev: switch to package-defined providers
For the underlying reasons, see previous patch, titled: package/opengl/libegl: switch to package-defined providers Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <jacmet@uclibc.org> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/cryptodev/Config.in5
-rw-r--r--package/cryptodev/cryptodev.mk9
2 files changed, 6 insertions, 8 deletions
diff --git a/package/cryptodev/Config.in b/package/cryptodev/Config.in
index d7b7754..0780cc7 100644
--- a/package/cryptodev/Config.in
+++ b/package/cryptodev/Config.in
@@ -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
diff --git a/package/cryptodev/cryptodev.mk b/package/cryptodev/cryptodev.mk
index ad5adf0..11e6f48 100644
--- a/package/cryptodev/cryptodev.mk
+++ b/package/cryptodev/cryptodev.mk
@@ -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