From 20e9758bcfe0970e68ba79af4da73763cdffd947 Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Fri, 5 Jan 2018 15:02:41 +0300 Subject: [PATCH] Make *_USE_GCC variables mandatory --- lib/configuration.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/configuration.sh b/lib/configuration.sh index 5214323b1b..1c171d0969 100644 --- a/lib/configuration.sh +++ b/lib/configuration.sh @@ -76,6 +76,10 @@ fi [[ $RELEASE == stretch && $CAN_BUILD_STRETCH != yes ]] && exit_with_error "Building Debian Stretch images with selected kernel is not supported" +[[ -n $ATFSOURCE && -z $ATF_USE_GCC ]] && exit_with_error "Error in configuration: ATF_USE_GCC is unset" +[[ -z $UBOOT_USE_GCC ]] && exit_with_error "Error in configuration: UBOOT_USE_GCC is unset" +[[ -z $KERNEL_USE_GCC ]] && exit_with_error "Error in configuration: KERNEL_USE_GCC is unset" + case $ARCH in arm64) [[ -z $KERNEL_COMPILER ]] && KERNEL_COMPILER="aarch64-linux-gnu-"