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

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@vrull.eu>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jerry Shih <jerry.shih@sifive.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20240122002024.27477-4-ebiggers@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
Heiko Stuebner 2024-01-21 16:19:14 -08:00 committed by Palmer Dabbelt
parent 34ca4ec628
commit 178f385643
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
4 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,7 @@
obj-y += kernel/ mm/ net/ obj-y += kernel/ mm/ net/
obj-$(CONFIG_BUILTIN_DTB) += boot/dts/ obj-$(CONFIG_BUILTIN_DTB) += boot/dts/
obj-$(CONFIG_CRYPTO) += crypto/
obj-y += errata/ obj-y += errata/
obj-$(CONFIG_KVM) += kvm/ obj-$(CONFIG_KVM) += kvm/

View file

@ -0,0 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
menu "Accelerated Cryptographic Algorithms for CPU (riscv)"
endmenu

View file

@ -0,0 +1 @@
# SPDX-License-Identifier: GPL-2.0-only

View file

@ -1496,6 +1496,9 @@ endif
if PPC if PPC
source "arch/powerpc/crypto/Kconfig" source "arch/powerpc/crypto/Kconfig"
endif endif
if RISCV
source "arch/riscv/crypto/Kconfig"
endif
if S390 if S390
source "arch/s390/crypto/Kconfig" source "arch/s390/crypto/Kconfig"
endif endif