Build the 6.0 series for PowerPC with binutils 2.38
[kernel-tools.git] / setup-toolchain.sh
index 5f4cace5e198090bc19ab3a0ac892c453d4cb623..967c8f5d17f21c369e85523c3066457ff88bb094 100755 (executable)
@@ -230,10 +230,10 @@ do
       build gcc
       reset_path
     ;;
-    powerpc64-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"
+    powerpc-linux)
+      # The 6.0 series needs to be build with binutils 2.38
+      export binutils_version="2.38"
+      export toolchain_directory="toolchain-$gcc_version-binutils-$binutils_version"
       reset_path
       set_path
       reset_path
@@ -245,8 +245,8 @@ do
       build gcc
       reset_path
     ;;
-    powerpc64le-linux)
-      # The 5.10 and 4.9 series needs to be build 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
@@ -260,8 +260,8 @@ do
       build gcc
       reset_path
     ;;
-    s390x-linux)
-      # The 4.19 kerrnel series needs to be built with GCC 11.3
+    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"
       reset_path
@@ -274,6 +274,8 @@ do
       build binutils
       build gcc
       reset_path
+    ;;
+    s390x-linux)
       # The 4.9, and 4.14 kernel series needs to be built with GCC 8.5
       export gcc_version="8.5.0"
       export toolchain_directory="toolchain-$gcc_version"