From a67a0ae93ef733adcf0e5975df5a4a366ba55446 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 23 May 2016 20:43:23 +0200 Subject: [PATCH] Cosmetics - showing compiler in color, addev u-boot version display --- common.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/common.sh b/common.sh index 03dc4b1eee..36e2daa930 100644 --- a/common.sh +++ b/common.sh @@ -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