Add new key A534BE3F83E241D918280AEB5831D11A0D4DB02A for MPFR 4.2.0
[kernel-tools.git] / setup-toolchain.sh
index b5ec494bb13e5cb588f458aebb521d27fd7e6e15..922a43ed4e348bf57a0b8377b185103d0b6d8d64 100755 (executable)
@@ -66,10 +66,10 @@ setup_keyring
 download_source () {
   # This handles the actual downloading the of the source code from
   # the GNU FTP mirrors along with invoking GPG for verification.
-  if [ ! -f "binutils-$binutils_version.tar.lz" ]; then
-    wget http://ftpmirror.gnu.org/gnu/binutils/binutils-$binutils_version.tar.lz
-    wget http://ftpmirror.gnu.org/gnu/binutils/binutils-$binutils_version.tar.lz.sig
-    gpg --no-default-keyring --keyring ./gnu-keyring.gpg --verify binutils-$binutils_version.tar.lz.sig
+  if [ ! -f "binutils-$binutils_version.tar.bz2" ]; then
+    wget http://ftpmirror.gnu.org/gnu/binutils/binutils-$binutils_version.tar.bz2
+    wget http://ftpmirror.gnu.org/gnu/binutils/binutils-$binutils_version.tar.bz2.sig
+    gpg --no-default-keyring --keyring ./gnu-keyring.gpg --verify binutils-$binutils_version.tar.bz2.sig
   fi
   if [ ! -f "gcc-$gcc_version.tar.xz" ]; then
     wget http://ftpmirror.gnu.org/gnu/gcc/gcc-$gcc_version/gcc-$gcc_version.tar.xz
@@ -98,7 +98,7 @@ setup_source () {
   # function extracts the tarballs and places things into the
   # appropriate locations as needed.
   if [ ! -d "binutils-$binutils_version" ]; then
-    tar xf binutils-$binutils_version.tar.lz
+    tar xf binutils-$binutils_version.tar.bz2
   fi
   if [ ! -d "gcc-$gcc_version" ]; then
     tar xf gcc-$gcc_version.tar.xz
@@ -189,10 +189,10 @@ do
   # these. These are just the defaults and are adjusted for specific
   # architectures as needed as the program runs.
   export gcc_version="12.2.0"
-  export binutils_version="2.39"
+  export binutils_version="2.40"
   export gmp_version="6.2.1"
-  export mpc_version="1.2.1"
-  export mpfr_version="4.1.0"
+  export mpc_version="1.3.1"
+  export mpfr_version="4.2.0"
   # The $toolchain_directory variable is used to store each
   # compiled toolchain, named after the associated GCC version when
   # the above versions are being used. The intention is to change