mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: crossgcc/buildgcc: Show additional information while building
- Show number of threads being used to build. - Show the version number of each package when skipping it. - Show whether the tool is a host or target build. BUG=None BRANCH=None TEST=None Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/17418 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de> Change-Id: I1134c08b417a731859e6b25fe38aecf01a85927b Reviewed-on: https://chromium-review.googlesource.com/415098 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
6d51a130e3
commit
ba5a128340
1 changed files with 6 additions and 3 deletions
|
@ -32,6 +32,7 @@ DESTDIR=
|
|||
SAVETEMPS=0
|
||||
SKIPPYTHON=1
|
||||
BOOTSTRAP=0
|
||||
THREADS=1
|
||||
|
||||
# GCC toolchain version numbers
|
||||
GMP_VERSION=6.1.0
|
||||
|
@ -366,9 +367,9 @@ generic_build()
|
|||
mkdir -p "$builddir"
|
||||
|
||||
if [ -f "$success" ]; then
|
||||
printf "Skipping $package as it is already built\n"
|
||||
printf "Skipping $package v$version for $host_target as it is already built\n"
|
||||
else
|
||||
printf "Building $package $version ... "
|
||||
printf "Building $package v$version for $host_target ... "
|
||||
DIR="$PWD"
|
||||
cd "$builddir"
|
||||
rm -f .failed
|
||||
|
@ -774,7 +775,7 @@ while true ; do
|
|||
-p|--platform) shift; TARGETARCH="$1"; shift;;
|
||||
-l|--languages) shift; LANGUAGES="$1"; shift;;
|
||||
-D|--destdir) shift; DESTDIR="$1"; shift;;
|
||||
-j|--jobs) shift; JOBS="-j $1"; shift;;
|
||||
-j|--jobs) shift; THREADS="$1"; JOBS="-j $1"; shift;;
|
||||
-P|--package) shift; PACKAGE="$1"; shift;;
|
||||
-S|--scripting) shift; SKIPPYTHON=0;;
|
||||
-y|--ccache) shift; USECCACHE=1;;
|
||||
|
@ -801,6 +802,8 @@ fi
|
|||
#print toolchain builder version string as the header
|
||||
printversion
|
||||
|
||||
printf "Building toolchain using %d thread(s).\n\n" "$THREADS"
|
||||
|
||||
case "$TARGETARCH" in
|
||||
x86_64-elf) ;;
|
||||
x86_64*) TARGETARCH=x86_64-elf;;
|
||||
|
|
Loading…
Add table
Reference in a new issue