e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 1) #!/bin/sh
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 2) # SPDX-License-Identifier: GPL-2.0-only
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 3) #
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 4) # Print the minimum supported version of the given tool.
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 5) # When you raise the minimum version, please update
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 6) # Documentation/process/changes.rst as well.
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 7)
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 8) set -e
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 9)
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 10) if [ $# != 1 ]; then
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 11) echo "Usage: $0 toolname" >&2
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 12) exit 1
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 13) fi
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 14)
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 15) case "$1" in
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 16) binutils)
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 17) echo 2.23.0
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 18) ;;
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 19) gcc)
76ae847497bc5 (Nick Desaulniers 2021-09-10 16:40:38 -0700 20) echo 5.1.0
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 21) ;;
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 22) icc)
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 23) # temporary
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 24) echo 16.0.3
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 25) ;;
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 26) llvm)
e2bc3e91d91ed (Nathan Chancellor 2021-06-17 12:31:40 -0700 27) # https://lore.kernel.org/r/YMtib5hKVyNknZt3@osiris/
e2bc3e91d91ed (Nathan Chancellor 2021-06-17 12:31:40 -0700 28) if [ "$SRCARCH" = s390 ]; then
e2bc3e91d91ed (Nathan Chancellor 2021-06-17 12:31:40 -0700 29) echo 13.0.0
e2bc3e91d91ed (Nathan Chancellor 2021-06-17 12:31:40 -0700 30) else
e2bc3e91d91ed (Nathan Chancellor 2021-06-17 12:31:40 -0700 31) echo 10.0.1
e2bc3e91d91ed (Nathan Chancellor 2021-06-17 12:31:40 -0700 32) fi
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 33) ;;
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 34) *)
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 35) echo "$1: unknown tool" >&2
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 36) exit 1
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 37) ;;
e24b3ffcf4216 (Masahiro Yamada 2021-03-16 01:12:55 +0900 38) esac