min-tool-version.sh 582 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.30.0
  15. ;;
  16. gcc)
  17. if [ "$ARCH" = parisc64 ]; then
  18. echo 12.0.0
  19. else
  20. echo 8.1.0
  21. fi
  22. ;;
  23. llvm)
  24. if [ "$SRCARCH" = loongarch ]; then
  25. echo 18.0.0
  26. else
  27. echo 15.0.0
  28. fi
  29. ;;
  30. rustc)
  31. echo 1.78.0
  32. ;;
  33. bindgen)
  34. echo 0.65.1
  35. ;;
  36. *)
  37. echo "$1: unknown tool" >&2
  38. exit 1
  39. ;;
  40. esac