[coreboot-gerrit] New patch to review for coreboot: f99b596 crossgcc: point users to the log file in case of error

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Tue Mar 24 23:35:22 CET 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8982

-gerrit

commit f99b5962914f916560b6c3aa1ac4fe9f96af910f
Author: Patrick Georgi <pgeorgi at google.com>
Date:   Tue Mar 24 23:31:44 2015 +0100

    crossgcc: point users to the log file in case of error
    
    The first problem for crossgcc users that encounter build errors is
    figuring out what is wrong with the build. Point out where the logs
    reside.
    
    Change-Id: I0300ecf6356c1a4ce18ae1e37fe0a56f46210d13
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
 util/crossgcc/buildgcc | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index bdbbe26..bca309c 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -379,7 +379,7 @@ printf "Building GMP ${GMP_VERSION} ... "
 
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-gmp/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-gmp/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-gmp/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-gmp/crossgcc-build.log.\n" || \
 	printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-gmp/.failed && exit 1
 fi
@@ -413,7 +413,7 @@ printf "Building MPFR ${MPFR_VERSION} ... "
 
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-mpfr/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-mpfr/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-mpfr/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-mpfr/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-mpfr/.failed && exit 1
 fi
@@ -436,7 +436,7 @@ printf "Building MPC ${MPC_VERSION} ... "
 
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-mpc/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-mpc/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-mpc/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-mpc/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-mpc/.failed && exit 1
 fi
@@ -459,7 +459,7 @@ printf "Building libelf ${LIBELF_VERSION} ... "
 
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-libelf/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-libelf/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-libelf/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-libelf/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-libelf/.failed && exit 1
 fi
@@ -484,7 +484,7 @@ printf "Building binutils ${BINUTILS_VERSION} ... "
 	$MAKE install DESTDIR=$DESTDIR || touch .failed
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-binutils/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-binutils/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-binutils/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-binutils/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-binutils/.failed && exit 1
 fi
@@ -535,7 +535,7 @@ printf "Building GCC ${GCC_VERSION} ... "
 
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-gcc/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-gcc/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-gcc/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-gcc/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-gcc/.failed && exit 1
 fi
@@ -558,7 +558,7 @@ printf "Building Expat ${EXPAT_VERSION} ... "
 
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-expat/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-expat/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-expat/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-expat/crossgcc-build.log\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-expat/.failed && exit 1
 fi
@@ -582,7 +582,7 @@ printf "Building Python ${PYTHON_VERSION} ... "
 
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-python/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-python/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-python/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-python/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-python/.failed && exit 1
 fi
@@ -607,7 +607,7 @@ printf "Building GDB ${GDB_VERSION} ... "
 	$MAKE install DESTDIR=$DESTDIR || touch .failed
 	if [ ! -f .failed ]; then touch .success; fi
 ) > ${BUILDDIRPREFIX}-gdb/crossgcc-build.log 2>&1
-test -r ${BUILDDIRPREFIX}-gdb/.failed && printf "${RED}failed${NC}\n" || \
+test -r ${BUILDDIRPREFIX}-gdb/.failed && printf "${RED}failed${NC}. Check ${BUILDDIRPREFIX}-gdb/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r ${BUILDDIRPREFIX}-gdb/.failed && exit 1
 fi
@@ -629,7 +629,7 @@ printf "Building IASL ${IASL_VERSION} ... "
 	cp bin/iasl $DESTDIR$TARGETDIR/bin || touch .failed
 	if [ ! -f .failed ]; then touch .success; fi
 ) > $IASL_DIR/source/compiler/crossgcc-build.log 2>&1
-test -r $IASL_DIR/generate/unix/.failed && printf "${RED}failed${NC}\n" || \
+test -r $IASL_DIR/generate/unix/.failed && printf "${RED}failed${NC}. Check ${IASL_DIR}/source/compiler/crossgcc-build.log.\n" || \
 	     printf "${green}ok${NC}\n"
 test -r $IASL_DIR/generate/unix/.failed && exit 1
 fi



More information about the coreboot-gerrit mailing list