aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-15 21:33:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-15 21:33:54 +0000
commitc3e18049e8f478c78b8c4fb13a96acf52e224d8e (patch)
treea7a650d044f97e0540cb391c0e03d3bb7aa1f4ee
parent24d84b5b8081aa38f05a9f4e3485f5c999b0acdb (diff)
downloadmaster-187ad058-c3e18049e8f478c78b8c4fb13a96acf52e224d8e.tar.gz
master-187ad058-c3e18049e8f478c78b8c4fb13a96acf52e224d8e.tar.bz2
master-187ad058-c3e18049e8f478c78b8c4fb13a96acf52e224d8e.zip
kernel/modules: add OCTEON SHA256 module
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47477 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/linux/modules/crypto.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index f5c58954b8..2328fac043 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -492,12 +492,19 @@ $(eval $(call KernelPackage,crypto-sha1))
define KernelPackage/crypto-sha256
TITLE:=SHA224 SHA256 digest CryptoAPI module
DEPENDS:=+kmod-crypto-hash
- KCONFIG:=CONFIG_CRYPTO_SHA256
+ KCONFIG:= \
+ CONFIG_CRYPTO_SHA256 \
+ CONFIG_CRYPTO_SHA256_OCTEON
FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
$(call AddDepends/crypto)
endef
+define KernelPackage/crypto-sha256/octeon
+ FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko
+ AUTOLOAD:=$(call AutoLoad,09,octeon-sha256)
+endef
+
$(eval $(call KernelPackage,crypto-sha256))