aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2017-01-04 00:44:14 +0100
committerStijn Tintel <stijn@linux-ipv6.be>2017-01-04 13:20:33 +0100
commit159e82d0db0f6621fda887ef3938c4d3acde8f96 (patch)
tree426a18f0764303e6cbebe9963d08246f516cf620 /package/kernel
parenta93accd73dba6d56247a1076e62c612b31e4ebc3 (diff)
downloadupstream-159e82d0db0f6621fda887ef3938c4d3acde8f96.tar.gz
upstream-159e82d0db0f6621fda887ef3938c4d3acde8f96.tar.bz2
upstream-159e82d0db0f6621fda887ef3938c4d3acde8f96.zip
kernel/modules: add SSSE3 SHA1 module
This module is optimized for SSSE3/AVX/AVX2/SHA-NI. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'package/kernel')
-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 6a076d762e..c788ebb549 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -533,7 +533,8 @@ define KernelPackage/crypto-sha1
DEPENDS:=+kmod-crypto-hash
KCONFIG:= \
CONFIG_CRYPTO_SHA1 \
- CONFIG_CRYPTO_SHA1_OCTEON
+ CONFIG_CRYPTO_SHA1_OCTEON \
+ CONFIG_CRYPTO_SHA1_SSSE3
FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
$(call AddDepends/crypto)
@@ -544,6 +545,11 @@ define KernelPackage/crypto-sha1/octeon
AUTOLOAD:=$(call AutoLoad,09,octeon-sha1)
endef
+define KernelPackage/crypto-sha1/x86/64
+ FILES+=$(LINUX_DIR)/arch/x86/crypto/sha1-ssse3.ko
+ AUTOLOAD:=$(call AutoLoad,09,sha1-ssse3)
+endef
+
$(eval $(call KernelPackage,crypto-sha1))