min-tool-version.sh 554 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. echo 5.1.0
  18. ;;
  19. icc)
  20. # temporary
  21. echo 16.0.3
  22. ;;
  23. llvm)
  24. if [ "$SRCARCH" = s390 ]; then
  25. echo 15.0.0
  26. else
  27. echo 11.0.0
  28. fi
  29. ;;
  30. rustc)
  31. echo 1.62.0
  32. ;;
  33. bindgen)
  34. echo 0.56.0
  35. ;;
  36. *)
  37. echo "$1: unknown tool" >&2
  38. exit 1
  39. ;;
  40. esac