RISC-V: fix check for zvkb with tip-of-tree clang
authorEric Biggers <ebiggers@google.com>
Sat, 27 Jan 2024 09:00:54 +0000 (01:00 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 28 Feb 2024 15:08:33 +0000 (07:08 -0800)
LLVM commit 8e01042da9d3 ("[RISCV] Add missing dependency check for Zvkb
(#79467)") broke the check used by the TOOLCHAIN_HAS_VECTOR_CRYPTO
kconfig symbol because it made zvkb start depending on v or zve*.  Fix
this by specifying both v and zvkb when checking for support for zvkb.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240127090055.124336-1-ebiggers@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig

index 27b1f44caa18ff08bc263c8f2440cfcf348c0c7b..0bfcfec67ed57291f63b97826829ce1225475382 100644 (file)
@@ -591,7 +591,7 @@ config TOOLCHAIN_HAS_ZBB
 # extensions, including Zvk*, Zvbb, and Zvbc.  LLVM added all of these at once.
 # binutils added all except Zvkb, then added Zvkb.  So we just check for Zvkb.
 config TOOLCHAIN_HAS_VECTOR_CRYPTO
-       def_bool $(as-instr, .option arch$(comma) +zvkb)
+       def_bool $(as-instr, .option arch$(comma) +v$(comma) +zvkb)
        depends on AS_HAS_OPTION_ARCH
 
 config RISCV_ISA_ZBB