]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: collect minimum tool versions into scripts/min-tool-version.sh
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Mar 2021 16:12:55 +0000 (01:12 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 16 Mar 2021 15:40:14 +0000 (00:40 +0900)
commite421f81cb24e8a9d616b0624bf0e86dd1607dccf
tree744a4dcc8d480a9f54bb88cecbcdeaec17f2e43d
parent884a7fa1b090ccab785f9fa2a9168238d473d801
kbuild: collect minimum tool versions into scripts/min-tool-version.sh

The kernel build uses various tools, many of which are provided by the
same software suite, for example, LLVM and Binutils.

When you raise the minimum version of Clang/LLVM, you need to update
clang_min_version in scripts/cc-version.sh and also lld_min_version in
scripts/ld-version.sh.

Kbuild can handle CC=clang and LD=ld.lld independently, but it does not
make much sense to maintain their versions separately.

Let's create a central place of minimum tool versions so you do not need
to touch multiple files. scripts/min-tool-version.sh prints the minimum
version of the given tool.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
scripts/cc-version.sh
scripts/ld-version.sh
scripts/min-tool-version.sh [new file with mode: 0755]