Files
linux/scripts
Bernhard Rosenkränzer d07a1c097b UPSTREAM: kbuild: Fix ld-version.sh script if LLD was built with LLD_VENDOR
If LLD was built with -DLLD_VENDOR="xyz", ld.lld --version output
will prefix LLD_VENDOR. Since LLD_VENDOR can contain spaces, the
LLD identifier isn't guaranteed to be $2 either.

Adjust the version checker to handle such versions of lld.

Link: https://lore.kernel.org/lkml/20210302221211.1620858-1-bero@lindev.ch/
Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
[masahiro yamada: refactor the code]
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
(cherry picked from commit 1f09af0625)
Bug: 210043760
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ic9a5b75cf0e7ffebcc77e81b4402c579dd13f3e2
2022-01-07 15:00:26 -08:00
..
2021-05-20 15:35:25 +02:00
2017-03-28 16:16:52 +02:00
2021-05-20 15:35:25 +02:00
2021-05-22 11:40:55 +02:00
2021-05-22 11:40:55 +02:00
2021-05-22 11:40:55 +02:00
2021-05-22 11:40:55 +02:00