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:
parent
c66fd3c267
commit
81693d41b1
|
@ -854,7 +854,7 @@ esac
|
|||
|
||||
case "$PACKAGE" in
|
||||
GCC|gcc)
|
||||
echo "Target architecture is now $TARGETARCH"
|
||||
echo "Target architecture is $TARGETARCH"
|
||||
NAME="${TARGETARCH} cross GCC"
|
||||
PACKAGES="GMP MPFR MPC LIBELF BINUTILS GCC"
|
||||
;;
|
||||
|
@ -867,7 +867,8 @@ case "$PACKAGE" in
|
|||
fi
|
||||
;;
|
||||
CLANG|clang)
|
||||
NAME=clang
|
||||
NAME="LLVM clang"
|
||||
LLVM_VERSION=${CLANG_VERSION}
|
||||
PACKAGES="CMAKE LLVM CFE CRT CTE"
|
||||
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
|
||||
download_showing_percentage() {
|
||||
url=$1
|
||||
printf " ..${red} 0%%"
|
||||
printf "... ${red} 0%%"
|
||||
wget $url 2>&1 | while read line; do
|
||||
echo $line | grep -o "[0-9]\+%" | awk '{printf("\b\b\b\b%4s", $1)}'
|
||||
done
|
||||
printf "${NC}"
|
||||
printf "${NC}\n"
|
||||
}
|
||||
elif searchtool curl "^curl " > /dev/null; then
|
||||
download_showing_percentage() {
|
||||
|
@ -1035,4 +1036,4 @@ cp "$PROGNAME" "$DESTDIR$TARGETDIR/share/$PROGNAME-$CROSSGCC_VERSION-$CROSGCC_CO
|
|||
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue