crossgcc: cosmetic overhaul of output

Straighten up output from the buildgcc script

Change-Id: Iee6775b97560063bbdff0d31ceab2dddc58783b3
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/20302
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Stefan Reinauer 2017-06-21 15:25:36 -07:00
parent c66fd3c267
commit 81693d41b1
1 changed files with 6 additions and 5 deletions

View File

@ -854,7 +854,7 @@ esac
case "$PACKAGE" in case "$PACKAGE" in
GCC|gcc) GCC|gcc)
echo "Target architecture is now $TARGETARCH" echo "Target architecture is $TARGETARCH"
NAME="${TARGETARCH} cross GCC" NAME="${TARGETARCH} cross GCC"
PACKAGES="GMP MPFR MPC LIBELF BINUTILS GCC" PACKAGES="GMP MPFR MPC LIBELF BINUTILS GCC"
;; ;;
@ -867,7 +867,8 @@ case "$PACKAGE" in
fi fi
;; ;;
CLANG|clang) CLANG|clang)
NAME=clang NAME="LLVM clang"
LLVM_VERSION=${CLANG_VERSION}
PACKAGES="CMAKE LLVM CFE CRT CTE" PACKAGES="CMAKE LLVM CFE CRT CTE"
CMAKE=${DESTDIR}${TARGETDIR}/bin/cmake CMAKE=${DESTDIR}${TARGETDIR}/bin/cmake
;; ;;
@ -913,11 +914,11 @@ searchtool xz "XZ Utils" "" "xz-utils" > /dev/null
if searchtool wget "GNU" nofail > /dev/null; then if searchtool wget "GNU" nofail > /dev/null; then
download_showing_percentage() { download_showing_percentage() {
url=$1 url=$1
printf " ..${red} 0%%" printf "... ${red} 0%%"
wget $url 2>&1 | while read line; do wget $url 2>&1 | while read line; do
echo $line | grep -o "[0-9]\+%" | awk '{printf("\b\b\b\b%4s", $1)}' echo $line | grep -o "[0-9]\+%" | awk '{printf("\b\b\b\b%4s", $1)}'
done done
printf "${NC}" printf "${NC}\n"
} }
elif searchtool curl "^curl " > /dev/null; then elif searchtool curl "^curl " > /dev/null; then
download_showing_percentage() { download_showing_percentage() {
@ -1035,4 +1036,4 @@ cp "$PROGNAME" "$DESTDIR$TARGETDIR/share/$PROGNAME-$CROSSGCC_VERSION-$CROSGCC_CO
cleanup cleanup
printf "\n${green}You can now run your $NAME toolchain from $TARGETDIR.${NC}\n" printf "\n${green}You can now run $NAME from $TARGETDIR.${NC}\n"