buildgcc: Update reference toolchain

* GCC 4.8.1
 * binutils 2.23.2
 * GDB 7.6
 * ACPICA 20130626
 * Python 3.3.2

... this adds support for Aarch64. For Ron.

Change-Id: Idec91bcd615bc35c83373bd23d4681f1c8eb015c
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/3758
Tested-by: build bot (Jenkins)
Reviewed-by: David Hubbard <david.c.hubbard+coreboot@gmail.com>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Stefan Reinauer 2013-07-10 14:27:56 -07:00 committed by Ronald G. Minnich
parent b5e777c433
commit 0d2119da46
10 changed files with 46 additions and 149 deletions

View File

@ -20,8 +20,8 @@
# Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA # Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
# #
CROSSGCC_DATE="April 19th, 2013" CROSSGCC_DATE="July 9th, 2013"
CROSSGCC_VERSION="1.21" CROSSGCC_VERSION="1.22"
# default settings # default settings
TARGETDIR=`pwd`/xgcc TARGETDIR=`pwd`/xgcc
@ -29,16 +29,16 @@ TARGETARCH=i386-elf
DESTDIR= DESTDIR=
# version numbers # version numbers
GMP_VERSION=5.0.5 GMP_VERSION=5.1.2
MPFR_VERSION=3.1.1 MPFR_VERSION=3.1.2
MPC_VERSION=1.0.1 MPC_VERSION=1.0.1
LIBELF_VERSION=0.8.13 LIBELF_VERSION=0.8.13
GCC_VERSION=4.7.3 GCC_VERSION=4.8.1
GCC_AUTOCONF_VERSION=2.64 GCC_AUTOCONF_VERSION=2.69
BINUTILS_VERSION=2.23 BINUTILS_VERSION=2.23.2
GDB_VERSION=7.5 GDB_VERSION=7.6
IASL_VERSION=20121114 IASL_VERSION=20130626
PYTHON_VERSION=2.7.3 PYTHON_VERSION=3.3.2
EXPAT_VERSION=2.1.0 EXPAT_VERSION=2.1.0
# archive locations # archive locations
@ -47,7 +47,7 @@ MPFR_ARCHIVE="http://ftpmirror.gnu.org/mpfr/mpfr-${MPFR_VERSION}.tar.bz2"
MPC_ARCHIVE="http://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz" 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="http://www.mr511.de/software/libelf-${LIBELF_VERSION}.tar.gz"
GCC_ARCHIVE="http://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.bz2" 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.gz" BINUTILS_ARCHIVE="http://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.bz2"
GDB_ARCHIVE="http://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.bz2" GDB_ARCHIVE="http://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.bz2"
IASL_ARCHIVE="http://www.acpica.org/sites/acpica/files/acpica-unix-${IASL_VERSION}.tar.gz" IASL_ARCHIVE="http://www.acpica.org/sites/acpica/files/acpica-unix-${IASL_VERSION}.tar.gz"
PYTHON_ARCHIVE="http://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.bz2" PYTHON_ARCHIVE="http://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.bz2"
@ -78,6 +78,8 @@ cyan='\033[0;36m'
CYAN='\033[1;36m' CYAN='\033[1;36m'
NC='\033[0m' # No Color NC='\033[0m' # No Color
UNAME=`uname`
normalize_dirs() normalize_dirs()
{ {
mkdir -p $DESTDIR$TARGETDIR/lib mkdir -p $DESTDIR$TARGETDIR/lib
@ -104,7 +106,7 @@ searchgnu()
fi fi
done done
# A workaround for XxxBSD, whose nongnu patch and tar also work. # A workaround for XxxBSD, whose nongnu patch and tar also work.
if [ `uname` = "FreeBSD" -o `uname` = "NetBSD" ]; then if [ $UNAME = "FreeBSD" -o $UNAME = "NetBSD" ]; then
if [ $1 != "make" ]; then if [ $1 != "make" ]; then
if test -x "`which $1 2>/dev/null`"; then if test -x "`which $1 2>/dev/null`"; then
echo $1 echo $1
@ -227,7 +229,8 @@ case "$TARGETARCH" in
i386-mingw32) ;; i386-mingw32) ;;
i386*) TARGETARCH=i386-elf;; i386*) TARGETARCH=i386-elf;;
arm*) TARGETARCH=armv7a-eabi;; arm*) TARGETARCH=armv7a-eabi;;
*) printf "Invalid architecture\n\n"; myhelp; exit 1;; aarch64*) TARGETARCH=aarch64-elf;;
*) printf "${red}WARNING: Unsupported architecture $TARGETARCH.${NC}\n\n"; ;;
esac esac
echo "Target arch is now $TARGETARCH" echo "Target arch is now $TARGETARCH"
@ -302,7 +305,7 @@ printf "Unpacked and patched ... "
printf "${green}ok${NC}\n" printf "${green}ok${NC}\n"
CC=cc CC=cc
if [ `uname` = "Darwin" ]; then if [ $UNAME = "Darwin" ]; then
#GCC_OPTIONS="$GCC_OPTIONS --enable-threads=posix" #GCC_OPTIONS="$GCC_OPTIONS --enable-threads=posix"
# generally the OS X compiler can create x64 binaries. # generally the OS X compiler can create x64 binaries.
@ -368,7 +371,7 @@ if [ -f build-mpfr/.success ]; then
else else
printf "Building MPFR ${MPFR_VERSION} ... " printf "Building MPFR ${MPFR_VERSION} ... "
( (
test `uname` = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL" test $UNAME = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL"
cd build-mpfr cd build-mpfr
rm -f .failed rm -f .failed
CC="$CC" ../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \ CC="$CC" ../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \
@ -594,7 +597,11 @@ printf "Building IASL ${IASL_VERSION} ... "
cd $IASL_DIR/generate/unix cd $IASL_DIR/generate/unix
rm -f .failed rm -f .failed
CFLAGS="$HOSTCFLAGS" CFLAGS="$HOSTCFLAGS"
$MAKE CC="$CC" iasl || touch .failed HOST="_LINUX"
test $UNAME = "Darwin" && HOST="_APPLE"
test $UNAME = "FreeBSD" && HOST="_FreeBSD"
test $UNAME = "Cygwin" && HOST="_CYGWIN"
HOST="$HOST" OPT_CFLAGS="-O -D_FORTIFY_SOURCE=2" CFLAGS="$CFLAGS" $MAKE CC="$CC" iasl || touch .failed
rm -f $DESTDIR$TARGETDIR/bin/iasl || touch .failed rm -f $DESTDIR$TARGETDIR/bin/iasl || touch .failed
if [ -d bin32 ]; then cp bin32/iasl $DESTDIR$TARGETDIR/bin || touch .failed ; fi if [ -d bin32 ]; then cp bin32/iasl $DESTDIR$TARGETDIR/bin || touch .failed ; fi
if [ -d bin64 ]; then cp bin64/iasl $DESTDIR$TARGETDIR/bin || touch .failed ; fi if [ -d bin64 ]; then cp bin64/iasl $DESTDIR$TARGETDIR/bin || touch .failed ; fi

View File

@ -1,11 +0,0 @@
diff -ur acpica-unix-20121114/generate/unix/Makefile.config acpica-unix-20121114.patched/generate/unix/Makefile.config
--- acpica-unix-20121114/generate/unix/Makefile.config 2012-11-14 17:22:38.000000000 +0100
+++ acpica-unix-20121114.patched/generate/unix/Makefile.config 2012-11-15 21:19:36.683902859 +0100
@@ -104,6 +104,7 @@
# automatically included in -Wall.
#
CFLAGS += \
+ -O \
$(BITSFLAG) \
-D$(HOST) \
-D_GNU_SOURCE \

View File

@ -1,20 +0,0 @@
diff -ur acpica-unix-20121114.orig/generate/unix/Makefile.config acpica-unix-20121114/generate/unix/Makefile.config
--- acpica-unix-20121114.orig/generate/unix/Makefile.config 2012-11-14 08:22:38.000000000 -0800
+++ acpica-unix-20121114/generate/unix/Makefile.config 2012-12-05 15:53:35.000000000 -0800
@@ -135,15 +135,11 @@
-Waggregate-return \
-Wchar-subscripts \
-Wempty-body \
- -Wlogical-op \
-Wmissing-declarations \
-Wmissing-field-initializers \
- -Wmissing-parameter-type \
-Wnested-externs \
- -Wold-style-declaration \
-Wold-style-definition \
- -Wredundant-decls \
- -Wtype-limits
+ -Wredundant-decls
#
# Extra warning flags (possible future use)

View File

@ -1,12 +0,0 @@
diff -ur acpica-unix-20121114.orig/generate/unix/Makefile.config acpica-unix-20121114/generate/unix/Makefile.config
--- acpica-unix-20121114.orig/generate/unix/Makefile.config 2012-12-05 16:11:48.000000000 -0800
+++ acpica-unix-20121114/generate/unix/Makefile.config 2012-12-05 16:12:31.000000000 -0800
@@ -57,7 +57,7 @@
#
COPYPROG = \
@mkdir -p ../$(BINDIR); \
- cp --remove-destination $(PROG) ../$(BINDIR); \
+ cp $(PROG) ../$(BINDIR); \
echo "Copied $(PROG) to $(FINAL_PROG)";
#

View File

@ -1,69 +0,0 @@
diff -Nurbs acpica-unix-20121114.orig/generate/unix/Makefile.common acpica-unix-20121114/generate/unix/Makefile.common
--- acpica-unix-20121114.orig/generate/unix/Makefile.common 2012-11-15 00:22:38.000000000 +0800
+++ acpica-unix-20121114/generate/unix/Makefile.common 2013-02-09 12:11:55.994133871 +0800
@@ -19,17 +19,17 @@
if [ $(BITS) -eq 32 ]; then \
echo "Forced 32-bit generation of $@"; \
mkdir -p obj32; \
- make BITS=32; \
+ $(MAKE) BITS=32; \
echo "32-bit version of $@:"; \
ls -al ../bin32/$@; \
elif [ $(findstring 64,$(HARDWARE_NAME)) ]; then \
mkdir -p obj64; \
- make BITS=64; \
+ $(MAKE) BITS=64; \
echo "64-bit version of $@:"; \
ls -al ../bin64/$@; \
else \
mkdir -p obj32; \
- make BITS=32; \
+ $(MAKE) BITS=32; \
echo "32-bit version of $@:"; \
ls -al ../bin32/$@; \
fi;
@@ -47,7 +47,7 @@
(cd $(BUILD_DIRECTORY_PATH)/$$toolname; \
pwd; \
mkdir -p obj32; \
- make BITS=32; \
+ $(MAKE) BITS=32; \
echo "32-bit version of $$toolname:"; \
ls -al obj32/$$toolname \
); \
@@ -61,7 +61,7 @@
(cd $(BUILD_DIRECTORY_PATH)/$$toolname; \
pwd; \
mkdir -p obj64; \
- make BITS=64; \
+ $(MAKE) BITS=64; \
echo "64-bit version of $$toolname:"; \
ls -al obj64/$$toolname \
); \
@@ -73,11 +73,11 @@
echo "Removing $$toolname"; \
pwd; \
if [ -d "obj32" ] ; then \
- make BITS=32 clean; \
+ $(MAKE) BITS=32 clean; \
rmdir obj32; \
fi; \
if [ -d "obj64" ] ; then \
- make BITS=64 clean; \
+ $(MAKE) BITS=64 clean; \
rmdir obj64; \
fi; \
echo ""; \
@@ -92,10 +92,10 @@
(cd $(BUILD_DIRECTORY_PATH)/$$toolname; \
pwd; \
if [ $(findstring 64,$(HARDWARE_NAME)) ]; then \
- make BITS=64 PROG=$$toolname install; \
+ $(MAKE) BITS=64 PROG=$$toolname install; \
echo "Installed 64-bit version of $$toolname"; \
else \
- make BITS=32 PROG=$$toolname install; \
+ $(MAKE) BITS=32 PROG=$$toolname install; \
echo "Installed 32-bit version of $$toolname"; \
fi; \
echo ""; \

View File

@ -1,6 +1,6 @@
diff -u binutils-2.23/config.sub binutils-2.23/config.sub diff -u binutils-2.23.2/config.sub binutils-2.23.2/config.sub
--- binutils-2.23/config.sub 2012-04-25 08:53:25.000000000 -0700 --- binutils-2.23.2/config.sub 2012-04-25 08:53:25.000000000 -0700
+++ binutils-2.23/config.sub 2012-12-04 14:58:16.050136773 -0800 +++ binutils-2.23.2/config.sub 2012-12-04 14:58:16.050136773 -0800
@@ -259,7 +259,7 @@ @@ -259,7 +259,7 @@
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \

View File

@ -1,6 +1,6 @@
diff -ur binutils-2.23/bfd/Makefile.in binutils-2.23.patched/bfd/Makefile.in diff -ur binutils-2.23.2/bfd/Makefile.in binutils-2.23.2.patched/bfd/Makefile.in
--- binutils-2.23/bfd/Makefile.in 2012-10-22 14:33:51.000000000 +0200 --- binutils-2.23.2/bfd/Makefile.in 2012-10-22 14:33:51.000000000 +0200
+++ binutils-2.23.patched/bfd/Makefile.in 2012-10-24 15:33:04.442080163 +0200 +++ binutils-2.23.2.patched/bfd/Makefile.in 2012-10-24 15:33:04.442080163 +0200
@@ -323,7 +323,7 @@ @@ -323,7 +323,7 @@
RELEASE = y RELEASE = y
INCDIR = $(srcdir)/../include INCDIR = $(srcdir)/../include

View File

@ -1,12 +0,0 @@
diff -ur gcc-4.7.3/config.sub gcc-4.7.3-patched/config.sub
--- gcc-4.7.3/config.sub 2012-08-06 16:34:27.000000000 +0200
+++ gcc-4.7.3-patched/config.sub 2013-04-19 00:25:16.401391381 +0200
@@ -250,7 +250,7 @@
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | arc | arm | arm[bl]e | arme[lb] | armv* | armv[345][lb] | avr | avr32 \
| be32 | be64 \
| bfin \
| c4x | clipper \

View File

@ -0,0 +1,14 @@
diff -ur gdb-7.6.orig/missing gdb-7.6/missing
--- gdb-7.6.orig/missing 2009-08-22 04:48:33.000000000 -0700
+++ gdb-7.6/missing 2013-07-10 13:10:32.940902728 -0700
@@ -314,8 +314,8 @@
fi
# If the file does not exist, the user really needs makeinfo;
# let's fail without touching anything.
- test -f $file || exit 1
- touch $file
+ #test -f $file || exit 1
+ #touch $file
;;
tar*)

View File

@ -1,6 +1,6 @@
diff -ur gdb-7.5/gdb/python/python.c gdb-7.5.patched/gdb/python/python.c diff -ur gdb-7.6/gdb/python/python.c gdb-7.6.patched/gdb/python/python.c
--- gdb-7.5/gdb/python/python.c 2012-06-25 18:53:20.000000000 +0200 --- gdb-7.6/gdb/python/python.c 2012-06-25 18:53:20.000000000 +0200
+++ gdb-7.5.patched/gdb/python/python.c 2012-10-24 15:28:37.422047559 +0200 +++ gdb-7.6.patched/gdb/python/python.c 2012-10-24 15:28:37.422047.69 +0200
@@ -1227,6 +1227,15 @@ @@ -1227,6 +1227,15 @@
SLASH_STRING, "python", NULL)); SLASH_STRING, "python", NULL));
#endif #endif