Masahiro Yamada | e24b3ff | 2021-03-16 01:12:55 +0900 | [diff] [blame] | 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) |
Nick Desaulniers | 76ae847 | 2021-09-10 16:40:38 -0700 | [diff] [blame] | 20 | echo 5.1.0 |
Masahiro Yamada | e24b3ff | 2021-03-16 01:12:55 +0900 | [diff] [blame] | 21 | ;; |
| 22 | icc) |
| 23 | # temporary |
| 24 | echo 16.0.3 |
| 25 | ;; |
| 26 | llvm) |
Nathan Chancellor | e2bc3e9 | 2021-06-17 12:31:40 -0700 | [diff] [blame] | 27 | # https://lore.kernel.org/r/YMtib5hKVyNknZt3@osiris/ |
| 28 | if [ "$SRCARCH" = s390 ]; then |
| 29 | echo 13.0.0 |
| 30 | else |
Nathan Chancellor | df05c0e | 2021-11-29 09:57:58 -0700 | [diff] [blame] | 31 | echo 11.0.0 |
Nathan Chancellor | e2bc3e9 | 2021-06-17 12:31:40 -0700 | [diff] [blame] | 32 | fi |
Masahiro Yamada | e24b3ff | 2021-03-16 01:12:55 +0900 | [diff] [blame] | 33 | ;; |
| 34 | *) |
| 35 | echo "$1: unknown tool" >&2 |
| 36 | exit 1 |
| 37 | ;; |
| 38 | esac |