Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / scripts / min-tool-version.sh
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
8 set -e
9
10 if [ $# != 1 ]; then
11         echo "Usage: $0 toolname" >&2
12         exit 1
13 fi
14
15 case "$1" in
16 binutils)
17         echo 2.23.0
18         ;;
19 gcc)
20         echo 5.1.0
21         ;;
22 icc)
23         # temporary
24         echo 16.0.3
25         ;;
26 llvm)
27         if [ "$SRCARCH" = s390 ]; then
28                 echo 14.0.0
29         else
30                 echo 11.0.0
31         fi
32         ;;
33 *)
34         echo "$1: unknown tool" >&2
35         exit 1
36         ;;
37 esac