Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6383106rdb; Mon, 1 Jan 2024 22:51:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpjGAf+fcFjb6HwVOnPh97aZt5Re1orhRqoIpt+Uc3IpVJJwj5qu9oXewtweaYEvxBeWgC X-Received: by 2002:a05:6214:508d:b0:67f:273e:6aba with SMTP id kk13-20020a056214508d00b0067f273e6abamr31117896qvb.57.1704178295632; Mon, 01 Jan 2024 22:51:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704178295; cv=none; d=google.com; s=arc-20160816; b=VbJ/2EI5RJEdKVZgPr8zN/yRmoO2hNEf6h8DYuIkKLSURK0mZN2AzhMzJGUUV42+JO h8iSY7ElI46iGc8l+JAi1sSpHb5/Bx9TtXhL5V5YSMtTCUcLwO4FaDyQAx/A+HGu8pqi SxSbvnNB63q/zfWav/PxLzupUzbKoQ76nrDxN1YplD3MSvGq3CnFbNsPuSCg1kMgUcY4 HGv0jvMSIVmKEA3hTcs/fgEgLWlG+fnhwCJ7HzrniJ0Ed8m19J/y7EL1N+FNUzyMnHsP ndjK55DsNmq7DSfbhmGrKE11AafLD7fpqKTv4p3aVveNMQd6PKEAhYfZ5jzVpV0O5mh9 rRMA== 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=XsgnR7SdCAmkLA5iMhho1efUro5EcBfZGmwyMCmTHTk=; fh=h+xnY7OmAuCe6mDtzOXAt9rxrYcugKBVBTM4XWhheuU=; b=KsRTgrhfPw/VzYTFwMypxfL1pXL7T14Nn6sBhJALJgyqrGpiwPXocHWxT0Ii4XNtSY 3Vj03gxedl7n++YRq+oGjbfImA/g+XEKxPa7doNGK6cIiTDdVz18jFo5yyCZKP2au/i5 1UxxaDyd81iBnsedkcz+T2Vn8nx8uUkIyFX2IUOJFDQ+N6uz1oGd69/kzQzjX88HzUF3 E7WJx/3IMpPjsyzi2hwBe6wONQPXQJIJGK9pf/ETuOuj6klG3qfO0BmUceXwjFA3NU6N GoF8m3V9+rqJ5YzRAF1JiaZ+1KtWIYr5rhxA7LnvBosNADOHrroTWPKKiWf7S6BND/OJ DM3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sxdSmTFr; spf=pass (google.com: domain of linux-crypto+bounces-1184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x15-20020a0cb20f000000b0067f9637cb1asi15125124qvd.442.2024.01.01.22.51.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 22:51:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sxdSmTFr; spf=pass (google.com: domain of linux-crypto+bounces-1184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 629221C213B6 for ; Tue, 2 Jan 2024 06:51:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C703AD2F0; Tue, 2 Jan 2024 06:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sxdSmTFr" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E2B6D298; Tue, 2 Jan 2024 06:50:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFBB7C433CC; Tue, 2 Jan 2024 06:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704178226; bh=4LDaa8miGX63GOCzm8SPiKzDeUQSHDxUGMUaV7Nkuco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sxdSmTFrm9Xl4hfb9Rj5yaTAeLll/pSJ03NiplnrB6f8quiDI98TGCrSWBaEKH7/E XoxAmn0Z/FOYZyPEAZXeDBYr3StoGhzK8qSEoRVQoVs7oOj+X9FKXrDBCtVEbEWyAg x5HI6wm9ql+D/bO9MLHah+9ytmSkChINqoR6uuGRGAyKDljE8ERj6XG+EstHHc4m+0 786bVMAbSHJADyW+UB8KaJh2OybdAy63u/L1hNmMiffoE2taGlXZfPE9VyhsXt0nce lRZzTY/bR6S6Y1OLG2RW0Ttyklhm7DaSn0OIp4G/MVL0Hqo1eJTbBXpa6pxzEe1ejO uAYqOfkLEtksQ== From: Eric Biggers To: linux-crypto@vger.kernel.org, linux-riscv@lists.infradead.org, Jerry Shih Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Heiko Stuebner , Phoebe Chen , hongrong.hsu@sifive.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , Andy Chiu , Heiko Stuebner Subject: [RFC PATCH 05/13] RISC-V: hook new crypto subdir into build-system Date: Tue, 2 Jan 2024 00:47:31 -0600 Message-ID: <20240102064743.220490-6-ebiggers@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240102064743.220490-1-ebiggers@kernel.org> References: <20240102064743.220490-1-ebiggers@kernel.org> Precedence: bulk X-Mailing-List: linux-crypto@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 Signed-off-by: Eric Biggers --- 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 d25ad1c19f881..2c585f7a0b6ef 100644 --- a/arch/riscv/Kbuild +++ b/arch/riscv/Kbuild @@ -1,11 +1,12 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y += kernel/ mm/ net/ obj-$(CONFIG_BUILTIN_DTB) += boot/dts/ +obj-$(CONFIG_CRYPTO) += crypto/ obj-y += errata/ obj-$(CONFIG_KVM) += kvm/ obj-$(CONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY) += purgatory/ # for cleaning subdir- += boot diff --git a/arch/riscv/crypto/Kconfig b/arch/riscv/crypto/Kconfig new file mode 100644 index 0000000000000..10d60edc0110a --- /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 0000000000000..b3b6332c9f6d0 --- /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 70661f58ee41c..c8fd2b83e589b 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1512,20 +1512,23 @@ source "arch/arm64/crypto/Kconfig" endif if LOONGARCH source "arch/loongarch/crypto/Kconfig" endif if MIPS source "arch/mips/crypto/Kconfig" 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 if SPARC source "arch/sparc/crypto/Kconfig" endif if X86 source "arch/x86/crypto/Kconfig" endif endif -- 2.43.0