[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220310140808.311513696@linuxfoundation.org>
Date: Thu, 10 Mar 2022 15:18:46 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Sami Tolvanen <samitolvanen@...gle.com>,
Masahiro Yamada <masahiroy@...nel.org>,
Nathan Chancellor <natechancellor@...il.com>,
Sedat Dilek <sedat.dilek@...il.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: [PATCH 4.19 19/33] kbuild: add CONFIG_LD_IS_LLD
From: Sami Tolvanen <samitolvanen@...gle.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@...gle.com>
Acked-by: Masahiro Yamada <masahiroy@...nel.org>
[nc: Reword commit message]
Signed-off-by: Nathan Chancellor <natechancellor@...il.com>
Tested-by: Sedat Dilek <sedat.dilek@...il.com>
Reviewed-by: Sedat Dilek <sedat.dilek@...il.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
init/Kconfig | 3 +++
1 file changed, 3 insertions(+)
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -19,6 +19,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))
Powered by blists - more mailing lists