From 569b842985713d02f34367621ed7a6b6e5efdf73 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Fri, 20 Dec 2013 23:27:59 +0100 Subject: [PATCH] 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" Cc: Arnout Vandecappelle Cc: Thomas Petazzoni Cc: Peter Korsgaard Cc: Gustavo Zacarias Signed-off-by: Thomas Petazzoni --- package/cryptodev/Config.in | 5 +++++ package/cryptodev/cryptodev.mk | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package/cryptodev/Config.in b/package/cryptodev/Config.in index d7b77548b3..0780cc754d 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 ad5adf0cfb..11e6f48ad7 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 -- 2.30.2