kernel: ocf: add missing kernel dependencies
authorJonas Gorski <jogo@openwrt.org>
Thu, 1 Aug 2013 23:04:42 +0000 (23:04 +0000)
committerJonas Gorski <jogo@openwrt.org>
Thu, 1 Aug 2013 23:04:42 +0000 (23:04 +0000)
OCF_CRYPTOSOFT uses both symbols form crypto_hash and crypto_blkcipher,
so let it select these through kernel config.

Fixes the following build error:

ERROR: "crypto_alloc_ahash" [crypto/ocf/cryptosoft.ko] undefined!
ERROR: "crypto_ahash_digest" [crypto/ocf/cryptosoft.ko] undefined!
ERROR: "crypto_ahash_setkey" [crypto/ocf/cryptosoft.ko] undefined!
make[6]: *** [__modpost] Error 1
make[5]: *** [modules] Error 2

Reported-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 37652

target/linux/generic/files/crypto/ocf/Kconfig

index 65a44619151ac65bcb687ddd7e4051fd28a81acd..d5e4c7209d489c8a719ee8edcf53e1bac6e3ff7a 100644 (file)
@@ -27,6 +27,9 @@ config OCF_CRYPTODEV
 config OCF_CRYPTOSOFT
        tristate "cryptosoft (software crypto engine)"
        depends on OCF_OCF
+       select CRYPTO
+       select CRYPTO_HASH
+       select CRYPTO_BLKCIPHER
        help
          A software driver for the OCF framework that uses
          the kernel CryptoAPI.