[Backend] Few improvements to the build-all

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
This commit is contained in:
Igor Pecovnik 2020-06-20 20:49:03 +02:00
parent e0e77fc8b1
commit 355a306301
No known key found for this signature in database
GPG Key ID: 93D6889F9F0E78D5
2 changed files with 12 additions and 4 deletions

View File

@ -428,6 +428,7 @@ odroidc1 legacy focal cli stable yes
odroidc1 legacy buster cli stable yes
odroidc1 legacy bionic cli stable yes
odroidc1 legacy bullseye cli stable yes
odroidc1 current focal cli stable no
# Odroid C2

View File

@ -307,7 +307,10 @@ function build_all()
if [[ "${BUILD_STABILITY}" == "${STABILITY}" ]]; then
# check if currnt hash is the same as upstream
if [[ $(check_hash) != idential || "$IGNORE_HASH" == yes ]]; then
if [[ "$IGNORE_HASH" != yes ]]; then
local store_hash=$(check_hash)
fi
if [[ "$store_hash" != idential ]]; then
((n+=1))
@ -322,7 +325,11 @@ function build_all()
done
display_alert "Building ${n}."
build_main
if [[ "$KERNEL_ONLY" == "no" ]]; then
build_main &
else
build_main
fi
# create BSP for all boards
elif [[ "${BSP_BUILD}" == yes ]]; then
@ -341,7 +348,7 @@ function build_all()
for RELEASE in "${RELTARGETS[@]}"
do
display_alert "BSP for ${BOARD} ${BRANCH} ${RELEASE}."
if [[ $IGNORE_HASH == yes ]]; then
if [[ "$IGNORE_HASH" == yes && "$KERNEL_ONLY" != "yes" ]]; then
build_main &
sleep 0.5
else
@ -405,7 +412,7 @@ do
done
# bump version in case there was a change
if [[ $n -gt 0 && -n $SEND_TO_SERVER ]]; then
if [[ $n -gt 0 && -n ${SEND_TO_SERVER} && -z ${REBUILD_IMAGES} ]]; then
cd ${SRC}
CURRENT_VERSION=$(cat VERSION)