blob: 7c20252a90c68d6108caa0207c6769ae761861dc [file] [log] [blame]
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +09001#!/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)
17 echo 2.23.0
18 ;;
19gcc)
Nick Desaulniers76ae8472021-09-10 16:40:38 -070020 echo 5.1.0
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +090021 ;;
22icc)
23 # temporary
24 echo 16.0.3
25 ;;
26llvm)
Nathan Chancellore2bc3e92021-06-17 12:31:40 -070027 # https://lore.kernel.org/r/YMtib5hKVyNknZt3@osiris/
28 if [ "$SRCARCH" = s390 ]; then
29 echo 13.0.0
30 else
Nathan Chancellordf05c0e2021-11-29 09:57:58 -070031 echo 11.0.0
Nathan Chancellore2bc3e92021-06-17 12:31:40 -070032 fi
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +090033 ;;
34*)
35 echo "$1: unknown tool" >&2
36 exit 1
37 ;;
38esac