Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp320031rwd; Mon, 12 Jun 2023 14:10:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5CwuH9EWGjrdyH9gdZwDd3ggKPuRqAQUWBCh+6jFfRM4Y2D/YJZzpfIErmQZJDhWOJFq+n X-Received: by 2002:a05:6402:40d4:b0:514:ab8b:ee78 with SMTP id z20-20020a05640240d400b00514ab8bee78mr10055898edb.3.1686604211983; Mon, 12 Jun 2023 14:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686604211; cv=none; d=google.com; s=arc-20160816; b=oFjiBSw2gES9XfYsN09smsliErMCEU2WnmtXpHaI8WT+aoCLyWMY6p2J/ICa+SZGUd fULaUq/NVwNHF/gxrecT+Cet3qLpWXSsqcWQHlIvrQ/MmdKQOYurdtfgkLw9vVzkCqSy 2zZQ1g2+zWED5PqosTVW0yrnmKi6+ZnewaSQFPbrGdQQlJSMqcKyThOVvfhp+/798qEP ygNKBxdm5mbYA6XHNJuhZl2nvlktXMjBP7vHZbtmUlG8WMVb1x7Uj/8e6F+2VSocUupT no8t2dCVG0S00K4ifLC0s0hc01O9ngnWwyPJjtASstdn8JqQJ+wF26jWuqVKR5mLxc63 Rrzw== 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; bh=8qjWAjkbYbXDKURl9b3nIjPGmcVbr5nsLwg3p6VWu9s=; b=rMWOpFU9pWyI4bNzgi4y8iT73Qba7jXhmGySBzlQoenJ3oRo8OnT0SJelt0iGeakeX myADOAMjE4bKZjSEwpfgXbsKjVkTB042I45CqehuIGiidtWJVfutZcNztknRWwmxtFN3 CgbDTzSBIGjgGk3w0ol6K9d//627KYHSd2VsQ1xiLcNN+f/mgBZ7YRamJ0iWHVI36cRS nguzsUpwf9cJXUTomBINcuMisrmAyhtlFinD5WySooswuFzIdPhxDNUgBezLP0FOgLKT d6c2plXwdzzyA3JZQRehLV30dSwChlfYqXKqZNg0X5qVTITrLIOazJ40OXNe2E1+tnXw Z2Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d22-20020a056402079600b00510d8a8acc8si6686811edy.397.2023.06.12.14.09.39; Mon, 12 Jun 2023 14:10:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232987AbjFLVIc (ORCPT + 99 others); Mon, 12 Jun 2023 17:08:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238253AbjFLVHz (ORCPT ); Mon, 12 Jun 2023 17:07:55 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C38E019F; Mon, 12 Jun 2023 14:05:01 -0700 (PDT) Received: from i53875b22.versanet.de ([83.135.91.34] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q8oic-0005fR-94; Mon, 12 Jun 2023 23:04:54 +0200 From: Heiko Stuebner To: palmer@dabbelt.com, paul.walmsley@sifive.com Cc: heiko@sntech.de, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net, conor.dooley@microchip.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, christoph.muellner@vrull.eu, Heiko Stuebner Subject: [PATCH v5 3/4] RISC-V: hook new crypto subdir into build-system Date: Mon, 12 Jun 2023 23:04:41 +0200 Message-Id: <20230612210442.1805962-4-heiko.stuebner@vrull.eu> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230612210442.1805962-1-heiko.stuebner@vrull.eu> References: <20230612210442.1805962-1-heiko.stuebner@vrull.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 --- 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 afa83e307a2e..250d1fd38618 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 a0e080d5f6ae..f37768ef9ab2 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1404,6 +1404,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.39.0