summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2017-01-04 00:50:32 +0100
committerStijn Tintel <stijn@linux-ipv6.be>2017-01-04 13:20:33 +0100
commit86de53203e31293204fe98602051083583af12f5 (patch)
treefa6f4004faa56535eb7982bcdd4f66d8fa325183
parent159e82d0db0f6621fda887ef3938c4d3acde8f96 (diff)
downloadmtk-20170518-86de53203e31293204fe98602051083583af12f5.zip
mtk-20170518-86de53203e31293204fe98602051083583af12f5.tar.gz
mtk-20170518-86de53203e31293204fe98602051083583af12f5.tar.bz2
kernel/modules: add SSSE3 SHA256 module
This module is optimized for SSSE3/AVX/AVX2/SHA-NI. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
-rw-r--r--package/kernel/linux/modules/crypto.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index c788ebb..6e3f2cc 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -558,7 +558,8 @@ define KernelPackage/crypto-sha256
DEPENDS:=+kmod-crypto-hash
KCONFIG:= \
CONFIG_CRYPTO_SHA256 \
- CONFIG_CRYPTO_SHA256_OCTEON
+ CONFIG_CRYPTO_SHA256_OCTEON \
+ CONFIG_CRYPTO_SHA256_SSSE3
FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
$(call AddDepends/crypto)
@@ -569,6 +570,11 @@ define KernelPackage/crypto-sha256/octeon
AUTOLOAD:=$(call AutoLoad,09,octeon-sha256)
endef
+define KernelPackage/crypto-sha256/x86/64
+ FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko
+ AUTOLOAD:=$(call AutoLoad,09,sha256-ssse3)
+endef
+
$(eval $(call KernelPackage,crypto-sha256))