Thread (6 messages) flat view 6 messages, 2 authors, 2021-06-25
STALE1869d REVIEWED: 3 (0M)

3 review trailers.

[PATCH stable-v5.4 v2 1/2] kbuild: add CONFIG_LD_IS_LLD

From: Jisheng Zhang <hidden>
Date: 2021-06-25 07:57:27
Also in: stable
Subsystem: the rest · Maintainer: Linus Torvalds

From: Sami Tolvanen <samitolvanen@google.com>

commit b744b43f79cc758127042e71f9ad7b1afda30f84 upstream.

Similarly to the CC_IS_CLANG config, add LD_IS_LLD to avoid GNU ld
specific logic such as ld-version or ld-ifversion and gain the
ability to select potential features that depend on the linker at
configuration time such as LTO.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
[nc: Reword commit message]
Signed-off-by: Nathan Chancellor <redacted>
Tested-by: Sedat Dilek <redacted>
Reviewed-by: Sedat Dilek <redacted>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
 init/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/init/Kconfig b/init/Kconfig
index 4f9fd78e2200..f23e90d9935f 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -20,6 +20,9 @@ config GCC_VERSION
 config CC_IS_CLANG
 	def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)
 
+config LD_IS_LLD
+	def_bool $(success,$(LD) -v | head -n 1 | grep -q LLD)
+
 config CLANG_VERSION
 	int
 	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
-- 
2.32.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help