buildgcc: Update coreboot reference toolchain to gcc 4.6.2
In addition: - drop some unneeded patches - make the scripting support depend on SKIPPYTHON not SKIPGDB so it is possible to build GDB with and without scripting support - rename the repository checkout version of GCC trunk, not X+1 so we don't have to change it on every version upgrade. Change-Id: I1b7d5b8921187c1c1d39b04f20bb715ddba72fe8 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/367 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
2d4fecec51
commit
1200ec5a53
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
CROSSGCC_DATE="November 1st, 2011"
|
CROSSGCC_DATE="November 1st, 2011"
|
||||||
CROSSGCC_VERSION="1.06"
|
CROSSGCC_VERSION="1.07"
|
||||||
|
|
||||||
# default settings
|
# default settings
|
||||||
TARGETDIR=`pwd`/xgcc
|
TARGETDIR=`pwd`/xgcc
|
||||||
|
@ -33,7 +33,7 @@ GMP_VERSION=5.0.2
|
||||||
MPFR_VERSION=3.1.0
|
MPFR_VERSION=3.1.0
|
||||||
MPC_VERSION=0.9
|
MPC_VERSION=0.9
|
||||||
LIBELF_VERSION=0.8.13
|
LIBELF_VERSION=0.8.13
|
||||||
GCC_VERSION=4.6.1
|
GCC_VERSION=4.6.2
|
||||||
GCC_AUTOCONF_VERSION=2.64
|
GCC_AUTOCONF_VERSION=2.64
|
||||||
BINUTILS_VERSION=2.21.1
|
BINUTILS_VERSION=2.21.1
|
||||||
GDB_VERSION=7.3.1
|
GDB_VERSION=7.3.1
|
||||||
|
@ -225,7 +225,7 @@ fi
|
||||||
USE_GOLD=""
|
USE_GOLD=""
|
||||||
GCC_OPTIONS="--enable-lto"
|
GCC_OPTIONS="--enable-lto"
|
||||||
|
|
||||||
if [ ${GCC_VERSION} = "4.6.2" ]; then
|
if [ ${GCC_VERSION} = "trunk" ]; then
|
||||||
if [ ! -r tarballs/gcc-core-${GCC_VERSION}.tar.bz2 ]; then
|
if [ ! -r tarballs/gcc-core-${GCC_VERSION}.tar.bz2 ]; then
|
||||||
printf "Pre-Release GCC ${GCC_VERSION}, checking out subversion trunk\n"
|
printf "Pre-Release GCC ${GCC_VERSION}, checking out subversion trunk\n"
|
||||||
mkdir -p tarballs/.tmp
|
mkdir -p tarballs/.tmp
|
||||||
|
@ -499,8 +499,8 @@ fi
|
||||||
|
|
||||||
if [ -f build-expat/.success ]; then
|
if [ -f build-expat/.success ]; then
|
||||||
printf "Skipping Expat as it is already built\n"
|
printf "Skipping Expat as it is already built\n"
|
||||||
elif [ $SKIPGDB -eq 1 ]; then
|
elif [ $SKIPPYTHON -eq 1 ]; then
|
||||||
printf "Skipping Expat as requested by command line (skip GDB)\n"
|
printf "Skipping Expat (Python scripting not enabled)\n"
|
||||||
else
|
else
|
||||||
printf "Building Expat ${EXPAT_VERSION} ... "
|
printf "Building Expat ${EXPAT_VERSION} ... "
|
||||||
(
|
(
|
||||||
|
@ -521,8 +521,8 @@ fi
|
||||||
|
|
||||||
if [ -f build-python/.success ]; then
|
if [ -f build-python/.success ]; then
|
||||||
printf "Skipping Python as it is already built\n"
|
printf "Skipping Python as it is already built\n"
|
||||||
elif [ $SKIPGDB -eq 1 ]; then
|
elif [ $SKIPPYTHON -eq 1 ]; then
|
||||||
printf "Skipping Python as requested by command line (skip GDB)\n"
|
printf "Skipping Python (Python scripting not enabled)\n"
|
||||||
else
|
else
|
||||||
printf "Building Python ${PYTHON_VERSION} ... "
|
printf "Building Python ${PYTHON_VERSION} ... "
|
||||||
(
|
(
|
||||||
|
@ -544,7 +544,7 @@ fi
|
||||||
if [ -f build-gdb/.success ]; then
|
if [ -f build-gdb/.success ]; then
|
||||||
printf "Skipping GDB as it is already built\n"
|
printf "Skipping GDB as it is already built\n"
|
||||||
elif [ $SKIPGDB -eq 1 ]; then
|
elif [ $SKIPGDB -eq 1 ]; then
|
||||||
printf "Skipping GDB as requested by command line\n"
|
printf "Skipping GDB (GDB support not enabled)\n"
|
||||||
else
|
else
|
||||||
printf "Building GDB ${GDB_VERSION} ... "
|
printf "Building GDB ${GDB_VERSION} ... "
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- binutils-2.20.1/bfd/Makefile.in~ 2010-07-25 10:56:45 +0000
|
|
||||||
+++ binutils-2.20.1/bfd/Makefile.in 2010-07-25 10:19:24 +0000
|
|
||||||
@@ -320,7 +320,7 @@
|
|
||||||
# RELEASE=y
|
|
||||||
INCDIR = $(srcdir)/../include
|
|
||||||
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
|
||||||
-SUBDIRS = doc po
|
|
||||||
+SUBDIRS = po
|
|
||||||
bfddocdir = doc
|
|
||||||
libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
|
|
||||||
@SHARED_LDFLAGS@ $(am__empty)
|
|
|
@ -1,10 +0,0 @@
|
||||||
diff -ur gcc-4.5.2.orig/gcc/config/i386/i386elf.h gcc-4.5.1/gcc/config/i386/i386elf.h
|
|
||||||
--- gcc-4.5.2.orig/gcc/config/i386/i386elf.h 2010-11-17 19:48:16.184401200 -0700
|
|
||||||
+++ gcc-4.5.2/gcc/config/i386/i386elf.h 2010-11-17 20:52:54.443969900 -0700
|
|
||||||
@@ -123,3 +123,6 @@
|
|
||||||
#undef ASM_OUTPUT_ALIGNED_BSS
|
|
||||||
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
|
|
||||||
asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
|
|
||||||
+
|
|
||||||
+/* Enable parsing of #pragma pack(push,<n>) and #pragma pack(pop). */
|
|
||||||
+#define HANDLE_PRAGMA_PACK_PUSH_POP 1
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue