Improve fetching external projects and building speed, and fix compiling
with more recent version of GCC
This commit is contained in:
parent
75e1abafd6
commit
d83e5260a1
4
external/gpl3/binutils/fetch.sh
vendored
4
external/gpl3/binutils/fetch.sh
vendored
|
|
@ -5,8 +5,8 @@ echo $0
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
|
|
||||||
# Configure fetch method
|
# Configure fetch method
|
||||||
URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/binutils-2.23.2.tar.bz2"
|
URL="https://ftpmirror.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2"
|
||||||
BACKUP_URL="http://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2"
|
BACKUP_URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/binutils-2.23.2.tar.bz2"
|
||||||
FETCH=ftp
|
FETCH=ftp
|
||||||
which curl >/dev/null
|
which curl >/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
|
||||||
10
external/gpl3/binutils/patches/0011-fix-gold-errors-header.patch
vendored
Normal file
10
external/gpl3/binutils/patches/0011-fix-gold-errors-header.patch
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
--- dist.orig/gold/errors.h 2011-06-08 04:43:28.000000000 +0000
|
||||||
|
+++ dist/gold/errors.h 2024-03-04 06:53:40.580217099 +0000
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
#define GOLD_ERRORS_H
|
||||||
|
|
||||||
|
#include <cstdarg>
|
||||||
|
+#include <string>
|
||||||
|
|
||||||
|
#include "gold-threads.h"
|
||||||
|
|
||||||
5
external/gpl3/gcc/fetch.sh
vendored
5
external/gpl3/gcc/fetch.sh
vendored
|
|
@ -9,8 +9,9 @@ cd `dirname $0`
|
||||||
: ${SED=sed}
|
: ${SED=sed}
|
||||||
|
|
||||||
# Configure fetch method
|
# Configure fetch method
|
||||||
URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/gcc-4.8.5.tar.bz2"
|
# URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/gcc-4.8.5.tar.bz2"
|
||||||
BACKUP_URL="ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.8.5/gcc-4.8.5.tar.bz2"
|
URL="https://ftpmirror.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2"
|
||||||
|
BACKUP_URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/gcc-4.8.5.tar.bz2"
|
||||||
FETCH=ftp
|
FETCH=ftp
|
||||||
if which curl >/dev/null
|
if which curl >/dev/null
|
||||||
then
|
then
|
||||||
|
|
|
||||||
16
external/gpl3/gcc/patches/0005-fix-gcc-reloads.patch
vendored
Normal file
16
external/gpl3/gcc/patches/0005-fix-gcc-reloads.patch
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
--- dist.orig/gcc/reload1.c 2013-01-21 14:55:05.000000000 +0000
|
||||||
|
+++ dist/gcc/reload1.c 2024-03-04 09:27:54.119538490 +0000
|
||||||
|
@@ -436,11 +436,11 @@
|
||||||
|
gen_rtx_REG (Pmode,
|
||||||
|
LAST_VIRTUAL_REGISTER + 1),
|
||||||
|
GEN_INT (4)));
|
||||||
|
- spill_indirect_levels = 0;
|
||||||
|
+ spill_indirect_levels = false;
|
||||||
|
|
||||||
|
while (memory_address_p (QImode, tem))
|
||||||
|
{
|
||||||
|
- spill_indirect_levels++;
|
||||||
|
+ spill_indirect_levels = true;
|
||||||
|
tem = gen_rtx_MEM (Pmode, tem);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -23,6 +23,8 @@ fi
|
||||||
: ${OBJ=../obj.${ARCH}}
|
: ${OBJ=../obj.${ARCH}}
|
||||||
: ${TOOLCHAIN_TRIPLET=arm-elf32-minix-}
|
: ${TOOLCHAIN_TRIPLET=arm-elf32-minix-}
|
||||||
: ${BUILDSH=build.sh}
|
: ${BUILDSH=build.sh}
|
||||||
|
# Set the number of parallel build jobs the same number of CPU cores.
|
||||||
|
: ${JOBS=$(nproc)}
|
||||||
|
|
||||||
: ${SETS="minix-base minix-comp minix-games minix-man minix-tests tests"}
|
: ${SETS="minix-base minix-comp minix-games minix-man minix-tests tests"}
|
||||||
: ${IMG=minix_arm_sd.img}
|
: ${IMG=minix_arm_sd.img}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user