1 #!/bin/sh 1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0-only 2 # SPDX-License-Identifier: GPL-2.0-only 3 # 3 # 4 # Print the minimum supported version of the g 4 # Print the minimum supported version of the given tool. 5 # When you raise the minimum version, please u 5 # When you raise the minimum version, please update 6 # Documentation/process/changes.rst as well. 6 # Documentation/process/changes.rst as well. 7 7 8 set -e 8 set -e 9 9 10 if [ $# != 1 ]; then 10 if [ $# != 1 ]; then 11 echo "Usage: $0 toolname" >&2 11 echo "Usage: $0 toolname" >&2 12 exit 1 12 exit 1 13 fi 13 fi 14 14 15 case "$1" in 15 case "$1" in 16 binutils) 16 binutils) 17 echo 2.25.0 !! 17 echo 2.23.0 18 ;; 18 ;; 19 gcc) 19 gcc) 20 if [ "$ARCH" = parisc64 ]; then !! 20 echo 5.1.0 21 echo 12.0.0 !! 21 ;; 22 else !! 22 icc) 23 echo 5.1.0 !! 23 # temporary 24 fi !! 24 echo 16.0.3 25 ;; 25 ;; 26 llvm) 26 llvm) >> 27 # https://lore.kernel.org/r/YMtib5hKVyNknZt3@osiris/ 27 if [ "$SRCARCH" = s390 ]; then 28 if [ "$SRCARCH" = s390 ]; then 28 echo 15.0.0 !! 29 echo 13.0.0 29 elif [ "$SRCARCH" = loongarch ]; then << 30 echo 18.0.0 << 31 else 30 else 32 echo 13.0.1 !! 31 echo 11.0.0 33 fi 32 fi 34 ;; << 35 rustc) << 36 echo 1.78.0 << 37 ;; << 38 bindgen) << 39 echo 0.65.1 << 40 ;; 33 ;; 41 *) 34 *) 42 echo "$1: unknown tool" >&2 35 echo "$1: unknown tool" >&2 43 exit 1 36 exit 1 44 ;; 37 ;; 45 esac 38 esac
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.