The 6.0 kernel series is now EOL and some exceptions can be removed now
[kernel-tools.git] / setup-toolchain.sh
index 00f58b399948546da8a1d8d17c99f567b6a866ef..b5ec494bb13e5cb588f458aebb521d27fd7e6e15 100755 (executable)
@@ -215,8 +215,8 @@ do
   # Now build some additional toolchains beyond the default ones. This
   # is because some older kernels needs older toolchain versions.
   case $target in
-    mipsel-linux)
-      # The 4.9 kernel series needs to be built with GCC 11.3
+    powerpc64-linux)
+      # The 5.10 needs to be build with GCC 11.3
       export gcc_version="11.3.0"
       export toolchain_directory="toolchain-$gcc_version"
       reset_path
@@ -230,8 +230,8 @@ do
       build gcc
       reset_path
     ;;
-    powerpc64-linux)
-      # The 5.10 and 4.9 series needs to be build with GCC 11.3
+    powerpc64le-linux)
+      # The 5.10 series needs to be build with GCC 11.3
       export gcc_version="11.3.0"
       export toolchain_directory="toolchain-$gcc_version"
       reset_path
@@ -245,10 +245,11 @@ do
       build gcc
       reset_path
     ;;
-    powerpc64le-linux)
-      # The 5.10 and 4.9 series needs to be build with GCC 11.3
-      export gcc_version="11.3.0"
-      export toolchain_directory="toolchain-$gcc_version"
+    riscv64-linux)
+      # The 4.19 series needs to be built with GCC 10.4 & binutils 2.37
+      export gcc_version="10.4.0"
+      export binutils_version="2.37"
+      export toolchain_directory="toolchain-$gcc_version-bintuils-$binutils_version"
       reset_path
       set_path
       reset_path
@@ -261,7 +262,7 @@ do
       reset_path
     ;;
     s390x-linux)
-      # The 4.9, and 4.14 kernel series needs to be built with GCC 8.5
+      # The 4.14 kernel series needs to be built with GCC 8.5
       export gcc_version="8.5.0"
       export toolchain_directory="toolchain-$gcc_version"
       reset_path