From patchwork Wed Feb 11 14:09:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weber X-Patchwork-Id: 438784 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 058AE14028E for ; Thu, 12 Feb 2015 01:12:17 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A8BE328BC6A; Wed, 11 Feb 2015 15:08:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 05A7028A715 for ; Wed, 11 Feb 2015 15:07:33 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-qg0-f54.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 11 Feb 2015 15:07:30 +0100 (CET) Received: by mail-qg0-f54.google.com with SMTP id z60so2673110qgd.13 for ; Wed, 11 Feb 2015 06:10:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cqYqDCqpGbYq5nxwPbkuG6fN5G/l0bxXs1lyjv+5x2g=; b=cnG9Qpj2FF+WTRRQ2gjA+kvP2so9CTUpzmYFN3lok8fosFWK5PZp45VcEUeGF4Qz+I 3WWWFum728EsOyDtYh3HSLQZQFcK+ywQFK82QO8pwN8UO4fkNjk4fpLOEH+vOQh7sOAa 7J3JltnSSLKvFonU2ntqQxD2n1Emcwe6omHYZ/0YA5dMBs3j/ajqgZYcoW7spXf4y7VK vqUN3nxf2PXLgyxYHznKxLYSITmcaPSz3YNecDwQ7+xIByCGmgGhK4V7A2T4gLKu8t30 0rEye8VYv8uA/Bq1OWBXkEcuvZWyIncxPeY0AFlx+a9xB8Utl6XOzKl+3TNNUUhlhM1o 69/Q== X-Received: by 10.140.37.39 with SMTP id q36mr26626051qgq.18.1423663806911; Wed, 11 Feb 2015 06:10:06 -0800 (PST) Received: from localhost.localdomain (HSI-KBW-217-008-059-040.hsi.kabelbw.de. [217.8.59.40]) by mx.google.com with ESMTPSA id u91sm850299qgd.29.2015.02.11.06.10.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Feb 2015 06:10:06 -0800 (PST) From: Ulrich Weber X-Google-Original-From: Ulrich Weber To: openwrt-devel@lists.openwrt.org Date: Wed, 11 Feb 2015 15:09:40 +0100 Message-Id: <1423663782-14771-3-git-send-email-uw@ocedo.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423663782-14771-1-git-send-email-uw@ocedo.com> References: <1423663782-14771-1-git-send-email-uw@ocedo.com> Cc: Ulrich Weber Subject: [OpenWrt-Devel] [PATCH 2/4] kernel: enable AES-NI for x86_64 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Ulrich Weber --- 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))