diff --git a/common.sh b/common.sh index 3d373b0dbac0..d864cb8b2ed5 100644 --- a/common.sh +++ b/common.sh @@ -51,7 +51,7 @@ compile_uboot() if [[ -z $toolchain && -n $UBOOT_NEEDS_GCC ]] && ! check_toolchain "$UBOOT_COMPILER" "$UBOOT_NEEDS_GCC"; then # try to find required toolchain if alt was not found toolchain=$(find_toolchain "$UBOOT_COMPILER" "$UBOOT_NEEDS_GCC") - [[ -z $toolchain ]] && exit_with_error "Could not find required toolchain" "${compiler}gcc $expression" + [[ -z $toolchain ]] && exit_with_error "Could not find required toolchain" "${UBOOT_COMPILER}gcc $UBOOT_NEEDS_GCC" fi display_alert "Compiler version" "${UBOOT_COMPILER}gcc $(eval ${toolchain:+env PATH=$toolchain:$PATH} ${UBOOT_COMPILER}gcc -dumpversion)" "info" @@ -203,7 +203,7 @@ compile_kernel() if [[ -z $toolchain && -n $KERNEL_NEEDS_GCC ]] && ! check_toolchain "$KERNEL_COMPILER" "$KERNEL_NEEDS_GCC"; then # try to find required toolchain if alt was not found toolchain=$(find_toolchain "$KERNEL_COMPILER" "$KERNEL_NEEDS_GCC") - [[ -z $toolchain ]] && exit_with_error "Could not find required toolchain" "${KERNEL_COMPILER}gcc $expression" + [[ -z $toolchain ]] && exit_with_error "Could not find required toolchain" "${KERNEL_COMPILER}gcc $KERNEL_NEEDS_GCC" fi display_alert "Compiler version" "${KERNEL_COMPILER}gcc $(eval ${toolchain:+env PATH=$toolchain:$PATH} ${KERNEL_COMPILER}gcc -dumpversion)" "info"