From 8028936cc726442d4a24b3ff6564f86b7b053ebd Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Sun, 29 Apr 2018 15:35:29 +0300 Subject: [PATCH] Add Bionic host/target requirement check --- lib/configuration.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/configuration.sh b/lib/configuration.sh index 87ddb77529..ff00453bc9 100644 --- a/lib/configuration.sh +++ b/lib/configuration.sh @@ -76,6 +76,7 @@ fi [[ $RELEASE == stretch && $CAN_BUILD_STRETCH != yes ]] && exit_with_error "Building Debian Stretch images with selected kernel is not supported" [[ $RELEASE == bionic && $CAN_BUILD_STRETCH != yes ]] && exit_with_error "Building Ubuntu Bionic images with selected kernel is not supported" +[[ $RELEASE == bionic && $(lsb_release -sc) == xenial ]] && exit_with_error "Building Ubuntu Bionic images requires a Bionic build host. Please upgrade your host or select a different target OS" [[ -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"