Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
8set -e
9
10if [ $# != 1 ]; then
11 echo "Usage: $0 toolname" >&2
12 exit 1
13fi
14
15case "$1" in
16binutils)
17 echo 2.25.0
18 ;;
19gcc)
20 if [ "$ARCH" = parisc64 ]; then
21 echo 12.0.0
22 elif [ "$SRCARCH" = x86 ]; then
23 echo 8.1.0
24 else
25 echo 5.1.0
26 fi
27 ;;
28llvm)
29 if [ "$SRCARCH" = s390 -o "$SRCARCH" = x86 ]; then
30 echo 15.0.0
31 elif [ "$SRCARCH" = loongarch ]; then
32 echo 18.0.0
33 else
34 echo 13.0.1
35 fi
36 ;;
37rustc)
38 echo 1.78.0
39 ;;
40bindgen)
41 echo 0.65.1
42 ;;
43*)
44 echo "$1: unknown tool" >&2
45 exit 1
46 ;;
47esac