Skip to content

Commit 178f385

Browse files
Heiko Stuebnerpalmer-dabbelt
authored andcommitted
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 <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Signed-off-by: Jerry Shih <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 34ca4ec commit 178f385

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

arch/riscv/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
obj-y += kernel/ mm/ net/
44
obj-$(CONFIG_BUILTIN_DTB) += boot/dts/
5+
obj-$(CONFIG_CRYPTO) += crypto/
56
obj-y += errata/
67
obj-$(CONFIG_KVM) += kvm/
78

arch/riscv/crypto/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
menu "Accelerated Cryptographic Algorithms for CPU (riscv)"
4+
5+
endmenu

arch/riscv/crypto/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SPDX-License-Identifier: GPL-2.0-only

crypto/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,9 @@ endif
14961496
if PPC
14971497
source "arch/powerpc/crypto/Kconfig"
14981498
endif
1499+
if RISCV
1500+
source "arch/riscv/crypto/Kconfig"
1501+
endif
14991502
if S390
15001503
source "arch/s390/crypto/Kconfig"
15011504
endif

0 commit comments

Comments
 (0)