[OpenWrt-Devel] [PATCH 3/5] kernel: enable AES-NI for x86_64

Ulrich Weber uweber.linux at gmail.com
Tue Feb 17 10:54:54 EST 2015


Signed-off-by: Ulrich Weber <uw at ocedo.com>
---
 package/kernel/linux/modules/crypto.mk | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index 1ae962f..e52f25a 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -270,7 +270,8 @@ define KernelPackage/crypto-aes
   KCONFIG:=CONFIG_CRYPTO_AES CONFIG_CRYPTO_AES_586 CONFIG_CRYPTO_AES_NI_INTEL
   FILES:=$(LINUX_DIR)/crypto/aes_generic.ko
   AUTOLOAD:=$(call AutoLoad,09,aes_generic)
-  $(call AddDepends/crypto,+TARGET_x86:kmod-crypto-cryptd +TARGET_x86:kmod-crypto-gf128 +TARGET_x86:kmod-crypto-xts)
+  $(call AddDepends/crypto,+TARGET_x86:kmod-crypto-cryptd +TARGET_x86:kmod-crypto-gf128 +TARGET_x86:kmod-crypto-xts \
+			   +TARGET_x86_64:kmod-crypto-cryptd +TARGET_x86_64:kmod-crypto-gf128 +TARGET_x86_64:kmod-crypto-xts)
 endef
 
 define KernelPackage/crypto-aes/x86
@@ -281,6 +282,15 @@ define KernelPackage/crypto-aes/x86
   AUTOLOAD:=$(call AutoLoad,09,ablk_helper lrw aes_generic aes-i586 aesni-intel)
 endef
 
+define KernelPackage/crypto-aes/x86_64
+  FILES+=$(LINUX_DIR)/arch/x86/crypto/aes-x86_64.ko \
+	$(LINUX_DIR)/arch/x86/crypto/aesni-intel.ko \
+	$(LINUX_DIR)/arch/x86/crypto/glue_helper.ko \
+	$(LINUX_DIR)/crypto/ablk_helper.ko \
+	$(LINUX_DIR)/crypto/lrw.ko
+  AUTOLOAD:=$(call AutoLoad,09,ablk_helper glue_helper lrw aes_generic aes-x86_64 aesni-intel)
+endef
+
 $(eval $(call KernelPackage,crypto-aes))
 
 
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list