From patchwork Mon Jun 12 21:04:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 106887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp135188vqr; Mon, 12 Jun 2023 14:11:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fUp2O3Jvic9SZiXocBPxJvF9+LNsoPuAq1ENcstUM2Pm7xHFOuBt5jboxJLt8J6clD+GU X-Received: by 2002:aa7:c157:0:b0:510:ed22:db43 with SMTP id r23-20020aa7c157000000b00510ed22db43mr6414548edp.24.1686604292823; Mon, 12 Jun 2023 14:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686604292; cv=none; d=google.com; s=arc-20160816; b=SHE+JffuxjlbiJ4VTjw7AS8NlxvFnnuXFBIpXgy7OTfVmAT+yvJbe9/YiJ2rxiwNol nNyHwFmE81/SBYe+6lAFfp2B2SFHUzUNEdb2fyhvyzgy86vUg7J5yYrqIcV/j4yrK5lB 8Ae3kYLV4Boy7yFDpNmjkpLQsjeqNS9uOXONgvt34Kt8UdL/1H/6HcS7xDOaBwmZy+s+ 5aTlOo7mRNwr5e1DhrpdPkYAZVTGQPBKUMMmJeWz6+0tv0JrDiJNLJ/dJ0HSatjqLg+8 egxltXpt19oeguRmTmcAfU+0EKLlxIAcPqmAJVZ2aZNOMq0xJOudo7zWiQclLk8XLKb6 3m8g== 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=Ex23s/HA+iZXdQJpZi2WkW+pGVT/Nzlnp05XEW+0nXJxIucWJy+N6E0bdomNqSxGNf y306l+A+DlP9u5OFTFGAsXmh92ExUaX3XfOxflXJg7VNPI8Plq1kgWmrXetrKFhPwG5x AyjbYsCknyI0xlIJDLqyV0iGCv+tcy8oTuGUwxDFqkB3LK0+2WD7pqACQt3zIU1FzQ9r a4Q87/dKJurKoCGeRrnmMBjz+jYWmcJyL0trmuX0GpUrnIREHIALwFFPhYSQRXnuDLPM GaB6R0Kb6EY5iwCGhAURaywFKTQ4jgBZaH6yyWPVONrf8JVyr9saTaNSrlOzLyGB4Yqg bb/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a50fb05000000b005154f73bf75si6912192edq.591.2023.06.12.14.11.06; Mon, 12 Jun 2023 14:11:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S239611AbjFLVJA (ORCPT + 99 others); Mon, 12 Jun 2023 17:09:00 -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 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768532783212421111?= X-GMAIL-MSGID: =?utf-8?q?1768532783212421111?= 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