Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

riscv: Remove ld.lld version checks from many TOOLCHAIN_HAS configs

Now that the minimum supported version of LLVM for building the kernel
has been bumped to 15.0.0, several ld.lld version checks become
tautological, as they are always true. Replace them with a simple
CONFIG_LD_IS_LLD check.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250821-bump-min-llvm-ver-15-v2-9-635f3294e5f0@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

+5 -5
+5 -5
arch/riscv/Kconfig
··· 620 620 default y 621 621 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64imv) 622 622 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32imv) 623 - depends on LLD_VERSION >= 140000 || LD_VERSION >= 23800 623 + depends on LD_IS_LLD || LD_VERSION >= 23800 624 624 depends on AS_HAS_OPTION_ARCH 625 625 626 626 config RISCV_ISA_V ··· 721 721 default y 722 722 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zbb) 723 723 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zbb) 724 - depends on LLD_VERSION >= 150000 || LD_VERSION >= 23900 724 + depends on LD_IS_LLD || LD_VERSION >= 23900 725 725 depends on AS_HAS_OPTION_ARCH 726 726 727 727 # This symbol indicates that the toolchain supports all v1.0 vector crypto ··· 736 736 default y 737 737 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zba) 738 738 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zba) 739 - depends on LLD_VERSION >= 150000 || LD_VERSION >= 23900 739 + depends on LD_IS_LLD || LD_VERSION >= 23900 740 740 depends on AS_HAS_OPTION_ARCH 741 741 742 742 config RISCV_ISA_ZBA ··· 771 771 default y 772 772 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zbc) 773 773 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zbc) 774 - depends on LLD_VERSION >= 150000 || LD_VERSION >= 23900 774 + depends on LD_IS_LLD || LD_VERSION >= 23900 775 775 depends on AS_HAS_OPTION_ARCH 776 776 777 777 config RISCV_ISA_ZBC ··· 794 794 default y 795 795 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zbkb) 796 796 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zbkb) 797 - depends on LLD_VERSION >= 150000 || LD_VERSION >= 23900 797 + depends on LD_IS_LLD || LD_VERSION >= 23900 798 798 depends on AS_HAS_OPTION_ARCH 799 799 800 800 config RISCV_ISA_ZBKB