Skip to content

Commit

Permalink
barys: make honister+ syntax default
Browse files Browse the repository at this point in the history
Rather than require new Yocto versions to be added to
NEW_SYNTAX_RELEASES, make the new syntax the default.

Change-type: patch
Signed-off-by: Joseph Kogut <[email protected]>
  • Loading branch information
jakogut authored and floion committed Dec 9, 2024
1 parent cece7bf commit 8d9f26f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions build/barys
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ LOGFILE=`pwd`/`basename "$0"`.log
MACHINES=
BITBAKEARGS=
EXIT_CODE=0
USE_OLD_SYNTAX=yes
NEW_SYNTAX_RELEASES=("honister" "kirkstone")
USE_OLD_SYNTAX=no
OLD_SYNTAX_RELEASES=(pyro rocko sumo thud warrior dunfell)


function help {
echo
Expand Down Expand Up @@ -474,16 +475,14 @@ for pair in $ADDITIONAL_VARIABLES; do
done

DEVICE_LAYER_CONF=$(ls ${SCRIPTPATH}/../../layers/meta-balena-*/conf/layer.conf)
if [[ -d "${SCRIPTPATH}/../../layers/meta-balena/meta-balena-${NEW_SYNTAX_RELEASES[0]}" ]]; then
for poky_release in ${NEW_SYNTAX_RELEASES[@]}; do
if ls "${SCRIPTPATH}/../../layers/meta-balena/meta-*-${OLD_SYNTAX_RELEASES[0]}" >/dev/null 2>&1; then
for poky_release in "${OLD_SYNTAX_RELEASES[@]}"; do
if grep -q -i "LAYERSERIES_COMPAT.*$poky_release" ${DEVICE_LAYER_CONF}; then
log "Release $poky_release already supported by device integration layer, will not revert meta-balena-common syntax."
USE_OLD_SYNTAX=no
log "Release $poky_release not supported by device integration layer, will revert meta-balena-common syntax."
USE_OLD_SYNTAX=yes
break;
fi
done
else
USE_OLD_SYNTAX=no
fi

if [ "$USE_OLD_SYNTAX" == "yes" ]; then
Expand Down

0 comments on commit 8d9f26f

Please sign in to comment.