From patchwork Tue Feb 17 15:54:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weber X-Patchwork-Id: 440644 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 E10ED14017B for ; Wed, 18 Feb 2015 02:59:23 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3566328C0F1; Tue, 17 Feb 2015 16:56:14 +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 83B5F28BF2B for ; Tue, 17 Feb 2015 16:55:23 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 17 Feb 2015 16:55:20 +0100 (CET) Received: by mail-qg0-f50.google.com with SMTP id e89so28540151qgf.9 for ; Tue, 17 Feb 2015 07:55:19 -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=YH/xG/ocYSmb5m44LaqwYP6P8r3ZWOxGphTJ61+yfa4=; b=Z/w7H4H43pCzg7w6sM3ywVXaixp2iJ2KyoaqujFwW8Kn1QAgbPDrBjcYctoGZRF4m3 v1Yd9lEmbXrTB+8FKeoybykcrKmJxRK6FNy3MtF9lcC+ivo3NfVI3VmLYMODSkcEyDJ4 65oSAo9xtujByL28ar97r9K84LCdH+88Z/fQVuC3si7Hnuv5Mp2SZ8p+j3TeA9Fk6X6b 16dt3xUfNN7Z8TIJStEIIyBXpW6Qxpr6owilXLztpzevCVoSBvlyN3IlS/5NL0Zq3OMw BSXNCiQTP6ny5b9545+TnSL0v7TygKj2LfvioLYXyeTuAeOnTR2sdmywSWt6KMASIj8o WjTg== X-Received: by 10.140.134.198 with SMTP id 189mr749856qhg.7.1424188519410; Tue, 17 Feb 2015 07:55:19 -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 w107sm16098052qge.5.2015.02.17.07.55.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Feb 2015 07:55:18 -0800 (PST) From: Ulrich Weber X-Google-Original-From: Ulrich Weber To: openwrt-devel@lists.openwrt.org Date: Tue, 17 Feb 2015 16:54:56 +0100 Message-Id: <1424188496-4199-6-git-send-email-uw@ocedo.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424188496-4199-1-git-send-email-uw@ocedo.com> References: <1424188496-4199-1-git-send-email-uw@ocedo.com> Cc: Ulrich Weber Subject: [OpenWrt-Devel] [PATCH 5/5] kernel: add x86_64 SSSE3 support for SHA1/SHA256/SHA512 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 | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index 1a3050a..10e85e0 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -495,35 +495,50 @@ $(eval $(call KernelPackage,crypto-michael-mic)) define KernelPackage/crypto-sha1 TITLE:=SHA1 digest CryptoAPI module DEPENDS:=+kmod-crypto-hash - KCONFIG:=CONFIG_CRYPTO_SHA1 + KCONFIG:=CONFIG_CRYPTO_SHA1 CONFIG_CRYPTO_SHA1_SSSE3 FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko AUTOLOAD:=$(call AutoLoad,09,sha1_generic) $(call AddDepends/crypto) 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)) define KernelPackage/crypto-sha256 TITLE:=SHA224 SHA256 digest CryptoAPI module DEPENDS:=+kmod-crypto-hash - KCONFIG:=CONFIG_CRYPTO_SHA256 + KCONFIG:=CONFIG_CRYPTO_SHA256 CONFIG_CRYPTO_SHA256_SSSE3 FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko AUTOLOAD:=$(call AutoLoad,09,sha256_generic) $(call AddDepends/crypto) endef +define KernelPackage/crypto-sha256/x86_64 + FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko + AUTOLOAD:=$(call AutoLoad,09,sha256-ssse3) +endef + $(eval $(call KernelPackage,crypto-sha256)) define KernelPackage/crypto-sha512 TITLE:=SHA512 digest CryptoAPI module DEPENDS:=+kmod-crypto-hash - KCONFIG:=CONFIG_CRYPTO_SHA512 + KCONFIG:=CONFIG_CRYPTO_SHA512 CONFIG_CRYPTO_SHA512_SSSE3 FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko AUTOLOAD:=$(call AutoLoad,09,sha512_generic) $(call AddDepends/crypto) endef +define KernelPackage/crypto-sha512/x86_64 + FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko + AUTOLOAD:=$(call AutoLoad,09,sha512-ssse3) +endef + define KernelPackage/crypto-misc TITLE:=Other CryptoAPI modules DEPENDS:=+kmod-crypto-manager