min-tool-version.sh 631 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. set -e
  8. if [ $# != 1 ]; then
  9. echo "Usage: $0 toolname" >&2
  10. exit 1
  11. fi
  12. case "$1" in
  13. binutils)
  14. echo 2.23.0
  15. ;;
  16. gcc)
  17. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293
  18. # https://lore.kernel.org/r/[email protected]
  19. if [ "$SRCARCH" = arm64 ]; then
  20. echo 5.1.0
  21. else
  22. echo 4.9.0
  23. fi
  24. ;;
  25. icc)
  26. # temporary
  27. echo 16.0.3
  28. ;;
  29. llvm)
  30. echo 10.0.1
  31. ;;
  32. *)
  33. echo "$1: unknown tool" >&2
  34. exit 1
  35. ;;
  36. esac