[OpenWrt-Devel] [PATCH 2/4] kernel: enable AES-NI for x86_64

Ulrich Weber uweber.linux at gmail.com
Wed Feb 11 09:09:40 EST 2015


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

diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index 7fea3bf..3d76ef3 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -274,6 +274,18 @@ define KernelPackage/crypto-aes/x86
   AUTOLOAD:=$(call AutoLoad,09,cryptd ablk_helper gf128mul xts 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/ablk_helper.ko \
+	$(LINUX_DIR)/arch/x86/crypto/glue_helper.ko \
+	$(LINUX_DIR)/crypto/cryptd.ko \
+	$(LINUX_DIR)/crypto/gf128mul.ko \
+	$(LINUX_DIR)/crypto/xts.ko \
+	$(LINUX_DIR)/crypto/lrw.ko
+  AUTOLOAD:=$(call AutoLoad,09,cryptd ablk_helper gf128mul xts 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