at commit 205cccd0
| 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.30.0 |
| 18 | ;; |
| 19 | gcc) |
| 20 | if [ "$ARCH" = parisc64 ]; then |
| 21 | echo 12.0.0 |
| 22 | else |
| 23 | echo 8.1.0 |
| 24 | fi |
| 25 | ;; |
| 26 | llvm) |
| 27 | if [ "$SRCARCH" = loongarch ]; then |
| 28 | echo 18.0.0 |
| 29 | else |
| 30 | echo 17.0.1 |
| 31 | fi |
| 32 | ;; |
| 33 | rustc) |
| 34 | if [ "$SRCARCH" = "s390" ]; then |
| 35 | echo 1.96.0 |
| 36 | elif [ "$ARCH" = powerpc ]; then |
| 37 | echo 1.95.0 |
| 38 | else |
| 39 | echo 1.85.0 |
| 40 | fi |
| 41 | ;; |
| 42 | bindgen) |
| 43 | echo 0.71.1 |
| 44 | ;; |
| 45 | *) |
| 46 | echo "$1: unknown tool" >&2 |
| 47 | exit 1 |
| 48 | ;; |
| 49 | esac |