[coreboot-gerrit] Patch set updated for coreboot: buildgcc: Add GNU make to reference toolchain

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Sat Jan 30 11:14:25 CET 2016


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13519

-gerrit

commit 6d471ec67ec35f7023d0082c40659b22a3d8ea62
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Fri Jan 29 18:03:26 2016 -0800

    buildgcc: Add GNU make to reference toolchain
    
    Change-Id: I8a41065880c3fd1f95ee8877031bf1738aaae859
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 util/crossgcc/buildgcc | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 590c15a..8f67949 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -44,6 +44,7 @@ PYTHON_VERSION=3.4.3
 EXPAT_VERSION=2.1.0
 # CLANG version number
 CLANG_VERSION=3.7.1
+MAKE_VERSION=4.1
 
 # GCC toolchain archive locations
 GMP_ARCHIVE="http://ftpmirror.gnu.org/gmp/gmp-${GMP_VERSION}.tar.bz2"
@@ -61,6 +62,7 @@ LLVM_ARCHIVE="http://llvm.org/releases/${CLANG_VERSION}/llvm-${CLANG_VERSION}.sr
 CFE_ARCHIVE="http://llvm.org/releases/${CLANG_VERSION}/cfe-${CLANG_VERSION}.src.tar.xz"
 CRT_ARCHIVE="http://llvm.org/releases/${CLANG_VERSION}/compiler-rt-${CLANG_VERSION}.src.tar.xz"
 CTE_ARCHIVE="http://llvm.org/releases/${CLANG_VERSION}/clang-tools-extra-${CLANG_VERSION}.src.tar.xz"
+MAKE_ARCHIVE="http://ftpmirror.gnu.org/make/make-${MAKE_VERSION}.tar.bz2"
 
 # GCC toolchain directories
 GMP_DIR="gmp-${GMP_VERSION}"
@@ -78,6 +80,7 @@ LLVM_DIR="llvm-${CLANG_VERSION}.src"
 CFE_DIR="cfe-${CLANG_VERSION}.src"
 CRT_DIR="compiler-rt-${CLANG_VERSION}.src"
 CTE_DIR="clang-tools-extra-${CLANG_VERSION}.src"
+MAKE_DIR="make-${MAKE_VERSION}"
 
 unset MAKELEVEL MAKEFLAGS
 
@@ -520,6 +523,15 @@ build_LLVM() {
 	done
 }
 
+build_MAKE() {
+	CC="$CC" CFLAGS="$HOSTCFLAGS" ../${MAKE_DIR}/configure --prefix=$TARGETDIR \
+		--disable-nls || touch .failed
+	$MAKE $JOBS || touch .failed
+	$MAKE install DESTDIR=$DESTDIR || touch .failed
+
+	normalize_dirs
+}
+
 print_stable() {
 	case "$PRINTSTABLE" in
 		AUTOCONF|autoconf)  printf "%s\n" "$GCC_AUTOCONF_VERSION";;
@@ -534,6 +546,7 @@ print_stable() {
 		MPC|mpc)  printf "%s\n" "$MPC_VERSION";;
 		MPFR|mpfr)  printf "%s\n" "$MPFR_VERSION";;
 		PYTHON|python)  printf "%s\n" "$PYTHON_VERSION";;
+		MAKE|make)  printf "%s\n" "$MAKE_VERSION";;
 		*) printf "Unknown tool %s\n" "$PRINTSTABLE";;
 	esac
 }
@@ -626,8 +639,12 @@ case "$PACKAGE" in
 		NAME="IASL ACPI compiler"
 		PACKAGES=IASL
 		;;
+	MAKE|make)
+		NAME="GNU Make"
+		PACKAGES=MAKE
+		;;
 	*)
-		printf "${red}ERROR: Unsupported package $PACKAGE. (Supported packages are GCC, GDB, CLANG, IASL)${NC}\n\n";
+		printf "${red}ERROR: Unsupported package $PACKAGE. (Supported packages are GCC, GDB, CLANG, IASL, MAKE)${NC}\n\n";
 		exit 1
 		;;
 esac



More information about the coreboot-gerrit mailing list