aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-09-27 00:35:47 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2019-09-27 01:58:57 -0500
commit9797d4119d5de6cb4db1aec928a79038dc3f066b (patch)
tree6705a5b2862545057d213f5240caa34f2c987757 /resources
parentd703e4281944d69acab53accec11abe605e17897 (diff)
downloadlibrebootfr-9797d4119d5de6cb4db1aec928a79038dc3f066b.tar.gz
librebootfr-9797d4119d5de6cb4db1aec928a79038dc3f066b.zip
Update URI pointing to libelf v0.8.13
The mirror for the version of libelf needed is down, preventing crossgcc from being built using the old build system. Resolves issues #664, #672
Diffstat (limited to 'resources')
-rw-r--r--resources/libreboot/patch/crossgcc/libelf.patch25
-rwxr-xr-xresources/scripts/helpers/download/crossgcc2
2 files changed, 27 insertions, 0 deletions
diff --git a/resources/libreboot/patch/crossgcc/libelf.patch b/resources/libreboot/patch/crossgcc/libelf.patch
new file mode 100644
index 00000000..af954446
--- /dev/null
+++ b/resources/libreboot/patch/crossgcc/libelf.patch
@@ -0,0 +1,25 @@
+From e2896721cff5af4d869a7c900e748c803f25a2ce Mon Sep 17 00:00:00 2001
+From: Andrew Robbins <contact@andrewrobbins.info>
+Date: Thu, 26 Sep 2019 18:19:07 -0500
+Subject: [PATCH] buildgcc: Replace dead libelf archive URI
+
+---
+ util/crossgcc/buildgcc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
+index 97c38b8d95..54f87972e6 100755
+--- a/util/crossgcc/buildgcc
++++ b/util/crossgcc/buildgcc
+@@ -57,7 +57,7 @@ MAKE_VERSION=4.2.1
+ GMP_ARCHIVE="http://ftpmirror.gnu.org/gmp/gmp-${GMP_VERSION}.tar.xz"
+ MPFR_ARCHIVE="http://ftpmirror.gnu.org/mpfr/mpfr-${MPFR_VERSION}.tar.xz"
+ MPC_ARCHIVE="http://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz"
+-LIBELF_ARCHIVE="http://www.mr511.de/software/libelf-${LIBELF_VERSION}.tar.gz"
++LIBELF_ARCHIVE="https://fossies.org/linux/misc/old/libelf-${LIBELF_VERSION}.tar.gz"
+ GCC_ARCHIVE="http://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.bz2"
+ BINUTILS_ARCHIVE="http://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.bz2"
+ GDB_ARCHIVE="http://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.xz"
+--
+2.23.0
+
diff --git a/resources/scripts/helpers/download/crossgcc b/resources/scripts/helpers/download/crossgcc
index 54f55439..5469c866 100755
--- a/resources/scripts/helpers/download/crossgcc
+++ b/resources/scripts/helpers/download/crossgcc
@@ -49,6 +49,8 @@ rm -Rf "crossgcc/"
# workaround to fix the error on debian stretch and later, when building
# GMP. If -pie is enabled in GCC, then --with-pic must be used when compiling
git am ../resources/libreboot/patch/crossgcc/gccfix.diff
+ # Update URI pointing to the version of libelf we need
+ git am ../resources/libreboot/patch/crossgcc/libelf.patch
#Patch to add hash checking to buildgcc
git apply ../resources/libreboot/patch/crossgcc/buildgcc_hash_patch.diff
rm -Rf .git* */*/.git*