]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - scripts/min-tool-version.sh
Merge tag 'probes-fixes-v6.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git...
[thirdparty/kernel/linux.git] / scripts / min-tool-version.sh
CommitLineData
e24b3ffc
MY
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-only
3#
4# Print the minimum supported version of the given tool.
5# When you raise the minimum version, please update
6# Documentation/process/changes.rst as well.
7
8set -e
9
10if [ $# != 1 ]; then
11 echo "Usage: $0 toolname" >&2
12 exit 1
13fi
14
15case "$1" in
16binutils)
e4412739 17 echo 2.25.0
e24b3ffc
MY
18 ;;
19gcc)
28e113f8
HD
20 if [ "$ARCH" = parisc64 ]; then
21 echo 12.0.0
8664645a
PZ
22 else
23 echo 5.1.0
24 fi
e24b3ffc 25 ;;
e24b3ffc 26llvm)
e2bc3e91 27 if [ "$SRCARCH" = s390 ]; then
30d17fac 28 echo 15.0.0
f58b0aba
WR
29 elif [ "$SRCARCH" = loongarch ]; then
30 echo 18.0.0
e2bc3e91 31 else
9c1b86f8 32 echo 13.0.1
e2bc3e91 33 fi
e24b3ffc 34 ;;
78521f33 35rustc)
768409cf 36 echo 1.76.0
78521f33
MO
37 ;;
38bindgen)
08ab7865 39 echo 0.65.1
78521f33 40 ;;
e24b3ffc
MY
41*)
42 echo "$1: unknown tool" >&2
43 exit 1
44 ;;
45esac