From 02e4d32524e99906100db2c3aa0c51e748916231 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Tue, 1 Aug 2023 04:49:56 +0200 Subject: util/crossgcc: Update GMP from 6.2.1 to 6.3.0 Change-Id: I67d443cb15d89482b20b01f4068502b16ac8fc8e Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/76865 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- util/crossgcc/buildgcc | 2 +- util/crossgcc/patches/gmp-6.2.1_generic-build.patch | 20 -------------------- util/crossgcc/patches/gmp-6.3.0_generic-build.patch | 20 ++++++++++++++++++++ util/crossgcc/sum/gmp-6.2.1.tar.xz.cksum | 1 - util/crossgcc/sum/gmp-6.3.0.tar.xz.cksum | 1 + 5 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 util/crossgcc/patches/gmp-6.2.1_generic-build.patch create mode 100644 util/crossgcc/patches/gmp-6.3.0_generic-build.patch delete mode 100644 util/crossgcc/sum/gmp-6.2.1.tar.xz.cksum create mode 100644 util/crossgcc/sum/gmp-6.3.0.tar.xz.cksum (limited to 'util/crossgcc') diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 1abb4a901a..033aac0c7b 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -35,7 +35,7 @@ USE_COREBOOT_MIRROR=0 COREBOOT_MIRROR_URL="https://www.coreboot.org/releases/crossgcc-sources" # GCC toolchain version numbers -GMP_VERSION=6.2.1 +GMP_VERSION=6.3.0 MPFR_VERSION=4.2.0 MPC_VERSION=1.3.1 GCC_VERSION=11.4.0 diff --git a/util/crossgcc/patches/gmp-6.2.1_generic-build.patch b/util/crossgcc/patches/gmp-6.2.1_generic-build.patch deleted file mode 100644 index a05635f1d1..0000000000 --- a/util/crossgcc/patches/gmp-6.2.1_generic-build.patch +++ /dev/null @@ -1,20 +0,0 @@ -Ensure that GMP is built for a generic CPU on x86 - -While GMP supports fat builds on x86 that adapt to the CPU's -capabilities, by default it builds for the CPU of the builder. -Running that binary on an older CPU then can fail. ---- gmp-6.2.0/config.guess~ 2020-09-02 19:23:01.817510842 +0200 -+++ gmp-6.2.0/config.guess 2020-09-02 19:24:55.742325907 +0200 -@@ -1029,6 +1029,12 @@ - virtualisers allow guests to set a broken state. */ - suffix = "noavx"; - -+ if (cpuid_64bit) { -+ modelstr="x86_64"; -+ } else { -+ modelstr="pentium"; -+ } -+ suffix=""; - printf ("%s%s", modelstr, suffix); - return 0; - } diff --git a/util/crossgcc/patches/gmp-6.3.0_generic-build.patch b/util/crossgcc/patches/gmp-6.3.0_generic-build.patch new file mode 100644 index 0000000000..a05635f1d1 --- /dev/null +++ b/util/crossgcc/patches/gmp-6.3.0_generic-build.patch @@ -0,0 +1,20 @@ +Ensure that GMP is built for a generic CPU on x86 + +While GMP supports fat builds on x86 that adapt to the CPU's +capabilities, by default it builds for the CPU of the builder. +Running that binary on an older CPU then can fail. +--- gmp-6.2.0/config.guess~ 2020-09-02 19:23:01.817510842 +0200 ++++ gmp-6.2.0/config.guess 2020-09-02 19:24:55.742325907 +0200 +@@ -1029,6 +1029,12 @@ + virtualisers allow guests to set a broken state. */ + suffix = "noavx"; + ++ if (cpuid_64bit) { ++ modelstr="x86_64"; ++ } else { ++ modelstr="pentium"; ++ } ++ suffix=""; + printf ("%s%s", modelstr, suffix); + return 0; + } diff --git a/util/crossgcc/sum/gmp-6.2.1.tar.xz.cksum b/util/crossgcc/sum/gmp-6.2.1.tar.xz.cksum deleted file mode 100644 index 3ea4232e59..0000000000 --- a/util/crossgcc/sum/gmp-6.2.1.tar.xz.cksum +++ /dev/null @@ -1 +0,0 @@ -0578d48607ec0e272177d175fd1807c30b00fdf2 tarballs/gmp-6.2.1.tar.xz diff --git a/util/crossgcc/sum/gmp-6.3.0.tar.xz.cksum b/util/crossgcc/sum/gmp-6.3.0.tar.xz.cksum new file mode 100644 index 0000000000..56abf27a75 --- /dev/null +++ b/util/crossgcc/sum/gmp-6.3.0.tar.xz.cksum @@ -0,0 +1 @@ +b4043dd2964ab1a858109da85c44de224384f352 tarballs/gmp-6.3.0.tar.xz -- cgit v1.2.3