Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5583611rdb; Sun, 31 Dec 2023 07:28:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBCDZK1ZJTiOVQXTN3QHuDMqmhziBU1lf9MKUmsC5D3EN/w25fJ+bjot/jo34HqKNg4//M X-Received: by 2002:a05:6870:2386:b0:1fb:335e:a4b6 with SMTP id e6-20020a056870238600b001fb335ea4b6mr19518398oap.14.1704036514963; Sun, 31 Dec 2023 07:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704036514; cv=none; d=google.com; s=arc-20160816; b=JN6RiVBGXdh891ebSaN7E4A6xTE5NxxiG+7A4zQGRvj+XxAssYcNBwnu5wwXPLWBY1 HLnCk1JaQXvZRyyCLIwfUVciL6S2ymNcOUpmfODNHPsehupIjfIv2iGUZ1jvveeBXJCn Nt0Xa7H1waCk7d5LZO3cqVbd5rs4WZLu7ALlof3TSIywdOoN4K3li7nG2cvyF/o1oPeU xKaF0ePwUmPzhFEq7xmpxXclk8B9KfGJRRZAyDUnj1EwIoahZRQ54ei5OPQsM3uLmbut iDIhggWVE49xbZbE2UBuytJPoGYCdp3xfGKW9bVO7Cu0EdBtzA+ZWVqbR3McNNBuBdyJ 9qFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=leMifUQFY/hnRKKKOp+M4kt1TiREdMrY53gOOvxLu5g=; fh=EdrkxR6/0cUzdeRoIO4nQ0kc+YBaYAptqDtNOny9eFo=; b=CEw6CJ/PnJUhIUyuyOcepHB1tITPQhhiyOtlCDwg3PTcVzIWwQmTD29bQphWDWcTJJ zRXeyzqxJN83CL2Ij5eOe0+2DxoKG6SBNF6xfcO8O2FpXf8y39oV44fgSBAZjKSK/A/9 XM53MVChbg5ZmFBnZRWmaXuRFzwy7cMJBbRsV39BKGGIPx8TdWh5rK7oYVGmWz94iPam Lxz7iDlAViGjI6JhYFq50lHWKlO5EvNChO7Jaw+eeoKdzE88whJq+MZEIvSfRUN3Bn6p yCWHDydw2UuvEFkZIhluweOeA3noTo8LLtODFDMEi2DRK3fD8wkJaMXEJf+NbdIqLBkh c3TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=EgK3MOKR; spf=pass (google.com: domain of linux-kernel+bounces-13732-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gt4-20020a17090af2c400b0028bbe24f30asi17529097pjb.132.2023.12.31.07.28.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 07:28:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13732-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=EgK3MOKR; spf=pass (google.com: domain of linux-kernel+bounces-13732-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 99854281B77 for ; Sun, 31 Dec 2023 15:28:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0613B666; Sun, 31 Dec 2023 15:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="EgK3MOKR" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D747CA957 for ; Sun, 31 Dec 2023 15:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-7b7f2c72846so400401839f.2 for ; Sun, 31 Dec 2023 07:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1704036480; x=1704641280; 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=leMifUQFY/hnRKKKOp+M4kt1TiREdMrY53gOOvxLu5g=; b=EgK3MOKRC8Yak0GueyTlYsgy0GJ/JXChiZHZ3HaWP6ow73J3K12TL/wZUAvLPR9/iu nERe9vhr2/CS4a/PMAOpz+0Fjm+hZnQVSkyjcEGNTlc62PoF9in2UHeH3wHN+hqHN/Ma pnEaumnn6SpwGcwFQS4UVZHW5h9nJm8MXTd/C9FDUbxy2E8Hr2Rp6fH8VnSPIRWXnpxF Y0FnlJQG2YLsfWzShu0yIuj2WA6qBXYChAIpVQ4OfWEwRyv4dY69MVJvfiS1vr6+Rftu TMhdazHS/Sn/w+fZIRLr6hPMX5iHn2Nmd/i8YnRFH5FVlIRGS5UROBrYebv8TcpHSDcz ee+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704036480; x=1704641280; 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=leMifUQFY/hnRKKKOp+M4kt1TiREdMrY53gOOvxLu5g=; b=k5EsyoUafEtbgivyJyC9DSteNgJO/KUa/VOCmEnLgaarjwiigmeJwlsX8+6Yo8U3y1 xYQe/GJUtRgaG6BS9cgGQpdEi/3Wgr/sj7TXJVEzU9n+5OPXSRyUpzFxxODJPdGkybWs qiKShVz29gFL3KhGpWZqhsdm0L/WR4bD46OilYa4HyYVIX96K3U8wGUlppVHuv9ZSVXR QmSn3jjyV66D4XDEbwQITrBexW8vL8SSZVxincJUn6x+xuRMWi9h0jBoorbvS877qQ/l INa7PoIZp65M/SHL249AD7E0xK+v7fxnZNG/4amreYmsOqlEfWpGbGTrMzYsl0j6Gqzf k+TA== X-Gm-Message-State: AOJu0YyVNwVq2USTU3G3M9oln0E2knw5lRX1lq0IavFdF21lLz97Q/qz 8NPRzotsYSSzg96fO2Sj8bvqH6XlXpuWyg== X-Received: by 2002:a92:ca4a:0:b0:35f:f4ae:955e with SMTP id q10-20020a92ca4a000000b0035ff4ae955emr17849031ilo.35.1704036479991; Sun, 31 Dec 2023 07:27:59 -0800 (PST) Received: from localhost.localdomain ([49.216.222.63]) by smtp.gmail.com with ESMTPSA id n4-20020a170902e54400b001cc3c521affsm18624430plf.300.2023.12.31.07.27.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2023 07:27:59 -0800 (PST) From: Jerry Shih To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net, conor.dooley@microchip.com, ebiggers@kernel.org, ardb@kernel.org Cc: heiko@sntech.de, 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 v4 02/11] RISC-V: hook new crypto subdir into build-system Date: Sun, 31 Dec 2023 23:27:34 +0800 Message-Id: <20231231152743.6304-3-jerry.shih@sifive.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20231231152743.6304-1-jerry.shih@sifive.com> References: <20231231152743.6304-1-jerry.shih@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Eric Biggers 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 70661f58ee41..c8fd2b83e589 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1519,6 +1519,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