RISC-V: hook new crypto subdir into build-system

A patch from »Implement GCM ghash using Zbc and Zbkb extensions« in state Obsolete for linux-kernel

From: Heiko Stuebner <heiko.stuebner@...> Date: Fri, 27 Jan 2023 14:32:12 +0100

Commit-Message

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 <heiko.stuebner@...>

Patch-Comment

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

Statistics

  • 13 lines added
  • 0 lines removed

Changes

------------------------------ arch/riscv/Kbuild -------------------------------
index afa83e307a2e..250d1fd38618 100644
@@ -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/
-------------------------- arch/riscv/crypto/Kconfig ---------------------------
new file mode 100644
index 000000000000..10d60edc0110
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
+menu "Accelerated Cryptographic Algorithms for CPU (riscv)"
+
+endmenu
-------------------------- arch/riscv/crypto/Makefile --------------------------
new file mode 100644
index 000000000000..b3b6332c9f6d
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# linux/arch/riscv/crypto/Makefile
+#
-------------------------------- crypto/Kconfig --------------------------------
index 650b1b3620d8..c7b23d2c58e4 100644
@@ -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
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...