kernel/modules: add OCTEON SHA512 module
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Nov 2015 21:34:08 +0000 (21:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 15 Nov 2015 21:34:08 +0000 (21:34 +0000)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
SVN-Revision: 47479

package/kernel/linux/modules/crypto.mk

index ca36c2f2cc8b92a76bce32b783f3a57c661dcab3..9626b21fdbfa9be089a636f1345d3d0440d5adf4 100644 (file)
@@ -511,12 +511,19 @@ $(eval $(call KernelPackage,crypto-sha256))
 define KernelPackage/crypto-sha512
   TITLE:=SHA512 digest CryptoAPI module
   DEPENDS:=+kmod-crypto-hash
-  KCONFIG:=CONFIG_CRYPTO_SHA512
+  KCONFIG:= \
+       CONFIG_CRYPTO_SHA512 \
+       CONFIG_CRYPTO_SHA512_OCTEON
   FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
   AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
   $(call AddDepends/crypto)
 endef
 
+define KernelPackage/crypto-sha512/octeon
+  FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko
+  AUTOLOAD:=$(call AutoLoad,09,octeon-sha512)
+endef
+
 $(eval $(call KernelPackage,crypto-sha512))