Change hardcoded with dynamic values (#3258)

This commit is contained in:
Igor Pečovnik 2021-11-15 18:27:27 +01:00 committed by GitHub
parent 320bf63430
commit f0ebf400b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,7 +371,7 @@ function build_all()
IFS=',' read -r -a RELBRANCH <<< "${KERNEL_TARGET}"
for BRANCH in "${RELBRANCH[@]}"
do
RELTARGETS=(xenial stretch buster bullseye bionic focal hirsute sid)
RELTARGETS=($(ls -1d config/distributions/*/ | cut -d"/" -f3))
# we don't need to cycle all distributions when making u-boot package
[[ $BOOTONLY == "yes" ]] && RELTARGETS=(focal)
for RELEASE in "${RELTARGETS[@]}"