diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-04-05 17:21:55 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-04-05 19:21:13 +0200 |
commit | 76c07120e7380509b63b3ab4fb5e98eee9d6ad04 (patch) | |
tree | 75575e66d8bbe3929df35dd269e4071f7fdfe022 | |
parent | 5e82185537209962a6d6283e2ea898eff8129271 (diff) | |
download | buildroot-76c07120e7380509b63b3ab4fb5e98eee9d6ad04.tar.gz buildroot-76c07120e7380509b63b3ab4fb5e98eee9d6ad04.zip |
package/cryptodev: convert to the virtual-package infrastructure
Since this package is implemented via a choice rather than the usual
separate-package providers, we only need BR2_PACKAGE_HAS_CRYPTODEV
to be always defined when the 'cryptodev' package is selected.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Cc: Mike Zick <minimod@morethan.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/cryptodev/Config.in | 3 | ||||
-rw-r--r-- | package/cryptodev/cryptodev.mk | 12 |
2 files changed, 4 insertions, 11 deletions
diff --git a/package/cryptodev/Config.in b/package/cryptodev/Config.in index 0780cc754d..2407e0482f 100644 --- a/package/cryptodev/Config.in +++ b/package/cryptodev/Config.in @@ -37,6 +37,9 @@ config BR2_PACKAGE_OCF_LINUX endchoice +config BR2_PACKAGE_HAS_CRYPTODEV + def_bool y + config BR2_PACKAGE_PROVIDES_CRYPTODEV string default "cryptodev-linux" if BR2_PACKAGE_CRYPTODEV_LINUX diff --git a/package/cryptodev/cryptodev.mk b/package/cryptodev/cryptodev.mk index 11e6f48ad7..969d1bd17a 100644 --- a/package/cryptodev/cryptodev.mk +++ b/package/cryptodev/cryptodev.mk @@ -4,14 +4,4 @@ # ################################################################################ -CRYPTODEV_SOURCE = -CRYPTODEV_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_CRYPTODEV)) - -ifeq ($(CRYPTODEV_DEPENDENCIES),) -define CRYPTODEV_CONFIGURE_CMDS - echo "No CRYPTODEV implementation defined. Configuration error" - exit 1 -endef -endif - -$(eval $(generic-package)) +$(eval $(virtual-package)) |