blob: 319f92104f5652f0c00a8ffba8259a10a8dce121 [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)
20 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293
21 # https://lore.kernel.org/r/20210107111841.GN1551@shell.armlinux.org.uk
22 if [ "$SRCARCH" = arm64 ]; then
23 echo 5.1.0
24 else
25 echo 4.9.0
26 fi
27 ;;
28icc)
29 # temporary
30 echo 16.0.3
31 ;;
32llvm)
Nathan Chancellore2bc3e92021-06-17 12:31:40 -070033 # https://lore.kernel.org/r/YMtib5hKVyNknZt3@osiris/
34 if [ "$SRCARCH" = s390 ]; then
35 echo 13.0.0
36 else
37 echo 10.0.1
38 fi
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +090039 ;;
40*)
41 echo "$1: unknown tool" >&2
42 exit 1
43 ;;
44esac