diff options
author | Robert Marko <robimarko@gmail.com> | 2024-03-06 18:30:21 +0100 |
---|---|---|
committer | Robert Marko <robimarko@gmail.com> | 2024-03-06 18:30:21 +0100 |
commit | 09207c0348299e0760dfc4e97dfaab27135a9ad1 (patch) | |
tree | 08440d06fdaff7fe9821c86b8b75ea1469596953 /package/kernel | |
parent | 9425064bdbc873a285f476da101199433d3a80e4 (diff) | |
download | openwrt-09207c0348299e0760dfc4e97dfaab27135a9ad1.tar.gz openwrt-09207c0348299e0760dfc4e97dfaab27135a9ad1.tar.bz2 openwrt-09207c0348299e0760dfc4e97dfaab27135a9ad1.zip |
kernel: crypto: add SHA256 ARM64 ASM optimized module
Kernel has an ASM optimized version of SHA256 that was ported from
OpenSSL, so lets package it as it provides significant perfomance
improvement compared to the generic implementation.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/linux/modules/crypto.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index 9d5c80f8e5..839e1bd45f 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -984,6 +984,7 @@ define KernelPackage/crypto-sha256 CONFIG_CRYPTO_SHA256 \ CONFIG_CRYPTO_SHA256_OCTEON \ CONFIG_CRYPTO_SHA256_PPC_SPE \ + CONFIG_CRYPTO_SHA256_ARM64 \ CONFIG_CRYPTO_SHA256_SSSE3 FILES:= \ $(LINUX_DIR)/crypto/sha256_generic.ko \ @@ -992,6 +993,11 @@ define KernelPackage/crypto-sha256 $(call AddDepends/crypto) endef +define KernelPackage/crypto-sha256/aarch64 + FILES+=$(LINUX_DIR)/arch/arm64/crypto/sha256-arm64.ko + AUTOLOAD+=$(call AutoLoad,09,sha256-arm64) +endef + define KernelPackage/crypto-sha256/octeon FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko AUTOLOAD+=$(call AutoLoad,09,octeon-sha256) |