[coreboot-gerrit] Patch set updated for coreboot: buildgcc: Add 'nocolor' option to remove color codes from output

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Mar 2 07:37:27 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/13866

-gerrit

commit 9d73f05823b93802f5641e7b512be13bcfc33332
Author: Martin Roth <martinroth at google.com>
Date:   Tue Mar 1 15:21:07 2016 -0700

    buildgcc: Add 'nocolor' option to remove color codes from output
    
    When writing to a logfile, the color codes just make things confusing.
    The --nocolor option will allow these to not be printed.
    
    Change-Id: I67645aac20b420ac83b828e77e0e50aab88d3d47
    Signed-off-by: Martin Roth <martinroth at google.com>
---
 util/crossgcc/buildgcc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index e4a6d47..e0ef981 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -315,6 +315,7 @@ myhelp()
 	printf "    [-c|--clean]                  remove temporary files before build\n"
 	printf "    [-t|--savetemps]              don't remove temporary files after build\n"
 	printf "    [-y|--ccache]                 Use ccache when building cross compiler\n"
+	printf "       [--nocolor]                don't print color codes in output\n"
 	printf "    [-j|--jobs <num>]             run <num> jobs in parallel in make\n"
 	printf "    [-s]--supported <tool>        print supported version of a tool"
 	printf "    [-d|--directory <target dir>] target directory to install cross compiler to\n"
@@ -589,6 +590,8 @@ while true ; do
 		-S|--scripting) shift; SKIPPYTHON=0;;
 		-y|--ccache)	shift; USECCACHE=1;;
 		-s|--supported) shift; PRINTSTABLE="$1"; shift;;
+		   --nocolor)	shift; \
+			unset red RED green GREEN blue BLUE cyan CYAN NC;;
 		--)		shift; break;;
 		-*)		printf "Invalid option\n\n"; myhelp; exit 1;;
 		*)		break;;



More information about the coreboot-gerrit mailing list