Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2766132rda; Wed, 25 Oct 2023 11:37:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0hTddTX62NNyIm0U6XFptr3l1cFzwkQMw+Dl3DrS6GXhYigvFTK0zsfVYBAm1+aBKA6rT X-Received: by 2002:a25:d68c:0:b0:d81:7d00:41f9 with SMTP id n134-20020a25d68c000000b00d817d0041f9mr16492540ybg.57.1698259040306; Wed, 25 Oct 2023 11:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698259040; cv=none; d=google.com; s=arc-20160816; b=FwmdOGzbyH1vA8GmgX7tmVlsGTWaBOInv3A8aOwIPMKNZW6IFCaSoS0N7xLFBRrr+a 6mf4TOkxcgBu3UGb5899vfitPRl+MX+/LsPhHVZnfFK2+YojcRRnb/0Qz6qyOwRwdZQt CRxZbFIjsb4b+Nfyl6k8yDhFbh3/p6We728RveagEzt2dW8f3jpWzGzh7vNjLqHCSSjo 7dYGjTUAwqt6jxTQ+HHOm30tT1/XkZqXbZzHIKxasSzLqcxiXXPiLj+UzsVZ5/qKSN+v 4tgg6Qn/QaYBnRCg1IVv+EkxTK+B4k8ArVidFf6Pu98HiZwfsDhkZRg8CWJl//pXxTnu q2Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WMA+62ieF0dHRmbCC9GfwETOr1r4110ste5ly+nBz6U=; fh=mW5aUsjoOotHlwNYMx8xbHsUCWUVMMbs4tDVgGIL6Ds=; b=yDyXcZ+oqvb7OBgX2d6Zapd314QRRhSGXSBxyPK254Dhr37R8wUSc7AuxLEltjAxml 0Y4Xt+8pdDFw4sAdnWQWHOwFFO8+4QaDUomygz1KbNQUk15rWVDGD7erYlwZeMyIdSHu OUUt9sHxfgEiT2q5S/DsnWCMr8r4qzMu2L/y1Y4FoDmV/8bLGQZ4b2iwVbkZU42I0iQ2 6TFs4eI5iodjEJV7YDzJ8jYe70/pRbMHNB8PErpAbzA1bV78Js3JiOpVlxBSEr5qYZus KBIZKvSdRH9fPdQ3HsJ60nwsGz/mFFiefT8COw3p/leE9R94nCPIiEvV3/8qNrXU8BwL 3nhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=FyWciSEh; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id l1-20020a25cc01000000b00da044e32ccbsi5415244ybf.556.2023.10.25.11.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 11:37:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=FyWciSEh; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2D06F80EB841; Wed, 25 Oct 2023 11:37:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234893AbjJYShN (ORCPT + 99 others); Wed, 25 Oct 2023 14:37:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234847AbjJYShG (ORCPT ); Wed, 25 Oct 2023 14:37:06 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F370C18D for ; Wed, 25 Oct 2023 11:37:03 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5aa481d53e5so89031a12.1 for ; Wed, 25 Oct 2023 11:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1698259023; x=1698863823; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WMA+62ieF0dHRmbCC9GfwETOr1r4110ste5ly+nBz6U=; b=FyWciSEhZaGJi8lq7OaF4XxWpflQgxldWhG6M26PCik/FEGWr34IA6SU/ZdBsMIHTX Oyy+CKsNHq4yAY72nJdPnnqTEHomF4+Plx1qJo10VfZk6kBZ3ySTdt/s7tfTi43MdpZR 2QfHo2UlX8dm4jA9mZ+Vxk2SSn50k8wCOSD1zZPGtoISqSFeqmP/pAj9Ki3bwNLMWCyg LELHMhQWVZCFg5Xa6HBqakc7k4kxSs1uTcO67ZVNLphRIwNODEnUyo/WSNy9pw9zWnnw 42XvCPdhdSlob8q2WnfGH9l8iWjBxsb6JnpPu8vYwCxT27+DeLD+9KNYSbriEfcKs1I1 Og2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698259023; x=1698863823; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WMA+62ieF0dHRmbCC9GfwETOr1r4110ste5ly+nBz6U=; b=cNf580UlRCUzLDqsuPG9kF8S5BpsmYxt3P786KWCCPzDsyvprqU5LVLcgWlTWnpyXI wz/VhyPMpWwMI9iDhjRzj+x0vbHtyAp5hZ6yuYym+UUlHnhOR/kzIr/22VWqVM+m0g7l ThEYIdJqi1VMhU7CDXDPOxe5ZOb8QhneJpVV8L5Rt1qJaT5iST26aWgoZpXju5+TU1Pz zLMn+wXXnK2MQZZrmSjit70VWzFVyoNbuAQc2vWeA4CeDzEpoY+9Blv7o+HzIsZ4QbXv 46jRkY5d48vW3WxDqHQHKidQNiM9psbyvRf5ETpgp4DOin11mTeJUq7sqDnmctp8m6zh FaaA== X-Gm-Message-State: AOJu0YwLaDDrBk3bSHRIWQ02qrWIb1TS0p+rwrXwFwvFcVzw7lshJjHh ath/SwJFeOJf3AwXIjkZTrzmKQ== X-Received: by 2002:a17:90a:7889:b0:27d:1dc:aa5a with SMTP id x9-20020a17090a788900b0027d01dcaa5amr15159894pjk.23.1698259023367; Wed, 25 Oct 2023 11:37:03 -0700 (PDT) Received: from localhost.localdomain ([49.216.222.119]) by smtp.gmail.com with ESMTPSA id g3-20020a17090adb0300b00278f1512dd9sm212367pjv.32.2023.10.25.11.36.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Oct 2023 11:37:03 -0700 (PDT) From: Jerry Shih To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net Cc: andy.chiu@sifive.com, greentime.hu@sifive.com, conor.dooley@microchip.com, guoren@kernel.org, bjorn@rivosinc.com, heiko@sntech.de, ebiggers@kernel.org, ardb@kernel.org, phoebe.chen@sifive.com, hongrong.hsu@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH 02/12] RISC-V: hook new crypto subdir into build-system Date: Thu, 26 Oct 2023 02:36:34 +0800 Message-Id: <20231025183644.8735-3-jerry.shih@sifive.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20231025183644.8735-1-jerry.shih@sifive.com> References: <20231025183644.8735-1-jerry.shih@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 11:37:16 -0700 (PDT) From: Heiko Stuebner Create a crypto subdirectory for added accelerated cryptography routines and hook it into the riscv Kbuild and the main crypto Kconfig. Signed-off-by: Heiko Stuebner Signed-off-by: Jerry Shih --- arch/riscv/Kbuild | 1 + arch/riscv/crypto/Kconfig | 5 +++++ arch/riscv/crypto/Makefile | 4 ++++ crypto/Kconfig | 3 +++ 4 files changed, 13 insertions(+) create mode 100644 arch/riscv/crypto/Kconfig create mode 100644 arch/riscv/crypto/Makefile diff --git a/arch/riscv/Kbuild b/arch/riscv/Kbuild index d25ad1c19f88..2c585f7a0b6e 100644 --- a/arch/riscv/Kbuild +++ b/arch/riscv/Kbuild @@ -2,6 +2,7 @@ obj-y += kernel/ mm/ net/ obj-$(CONFIG_BUILTIN_DTB) += boot/dts/ +obj-$(CONFIG_CRYPTO) += crypto/ obj-y += errata/ obj-$(CONFIG_KVM) += kvm/ diff --git a/arch/riscv/crypto/Kconfig b/arch/riscv/crypto/Kconfig new file mode 100644 index 000000000000..10d60edc0110 --- /dev/null +++ b/arch/riscv/crypto/Kconfig @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 + +menu "Accelerated Cryptographic Algorithms for CPU (riscv)" + +endmenu diff --git a/arch/riscv/crypto/Makefile b/arch/riscv/crypto/Makefile new file mode 100644 index 000000000000..b3b6332c9f6d --- /dev/null +++ b/arch/riscv/crypto/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# linux/arch/riscv/crypto/Makefile +# diff --git a/crypto/Kconfig b/crypto/Kconfig index 650b1b3620d8..c7b23d2c58e4 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1436,6 +1436,9 @@ endif if PPC source "arch/powerpc/crypto/Kconfig" endif +if RISCV +source "arch/riscv/crypto/Kconfig" +endif if S390 source "arch/s390/crypto/Kconfig" endif -- 2.28.0