entrypoint-build.sh: Fix bitbake branches

bitbake uses version-numbered branches instead of release names.
Use bitbake branch 2.18 for the Yocto Project release Wrynose.

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
This commit is contained in:
Leon Anavi authored and Khem Raj committed 2026-10-10 14:47:06 -07:00
1 parent 2e70eb716c
commit 919588393f
1 file changed
+7 -2
@@ -29,8 +29,13 @@ REPOS=" \
https://git.yoctoproject.org/meta-yocto \
"
for repo in $REPOS; do
log "Cloning $repo on branch $BASE_REF..."
git clone --depth 1 --branch "$BASE_REF" "$repo"
branch="$BASE_REF"
# bitbake uses version-numbered branches instead of release names
case "$repo:$BASE_REF" in
*/bitbake:wrynose) branch="2.18" ;;
esac
log "Cloning $repo on branch $branch..."
git clone --depth 1 --branch "$branch" "$repo"
done
# shellcheck disable=SC1091,SC2240