Cosmetics - showing compiler in color, addev u-boot version display

This commit is contained in:
Igor Pecovnik 2016-05-23 20:43:23 +02:00
parent 487ddc06c5
commit a67a0ae93e

View File

@ -29,9 +29,13 @@ compile_uboot (){
exit_with_error "Error building u-boot: source directory does not exist" "$BOOTSOURCEDIR"
fi
display_alert "Compiling uboot. Please wait." "$VER" "info"
eval ${UBOOT_TOOLCHAIN:+env PATH=$UBOOT_TOOLCHAIN:$PATH} ${UBOOT_COMPILER}gcc --version | head -1 | tee -a $DEST/debug/install.log
echo
# read uboot version to variable $VER
grab_version "$SOURCES/$BOOTSOURCEDIR" "VER"
display_alert "Compiling uboot. Please wait." "$VER" "info"
echo -en "[\e[0;32m o.k. \x1B[0m] Compiler: \e[0;33m"
eval ${UBOOT_TOOLCHAIN:+env PATH=$UBOOT_TOOLCHAIN:$PATH} ${UBOOT_COMPILER}gcc --version | head -1 | tee -a $DEST/debug/install.log
echo -en "\x1B[0m"
cd $SOURCES/$BOOTSOURCEDIR
local cthreads=$CTHREADS
@ -137,8 +141,9 @@ compile_kernel (){
grab_version "$SOURCES/$LINUXSOURCEDIR" "VER"
display_alert "Compiling $BRANCH kernel" "@host" "info"
echo -en "[\e[0;32m o.k. \x1B[0m] Compiler: \e[0;33m"
eval ${KERNEL_TOOLCHAIN:+env PATH=$KERNEL_TOOLCHAIN:$PATH} ${KERNEL_COMPILER}gcc --version | head -1 | tee -a $DEST/debug/install.log
echo
echo -en "\x1B[0m"
cd $SOURCES/$LINUXSOURCEDIR/
# adding custom firmware to kernel source