yocto-builer: fetch corresponding branch for bitbake

Use 2.16 branch for whinlatter.

This is just temporary work around to unblock first whinlatter PR:
https://github.com/agherzan/meta-raspberrypi/pull/1586

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
This commit is contained in:
Martin Jansa 2026-03-31 18:56:52 +02:00 committed by Khem Raj
parent 34083218d0
commit 469e232c77
2 changed files with 8 additions and 4 deletions

View File

@ -29,8 +29,10 @@ REPOS=" \
git://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"
[ "$repo" = "git://git.openembedded.org/bitbake" -a "$BASE_REF" = "whinlatter" ] && BRANCH=2.16
log "Cloning $repo on branch $BRANCH..."
git clone --depth 1 --branch "$BRANCH" "$repo"
done
# shellcheck disable=SC1091,SC2240

View File

@ -24,8 +24,10 @@ REPOS=" \
git://git.openembedded.org/bitbake \
"
for repo in $REPOS; do
log "Cloning $repo on branch $BASE_REF..."
git clone --depth 1 --branch "$BASE_REF" "$repo"
BRANCH="$BASE_REF"
[ "$repo" = "git://git.openembedded.org/bitbake" -a "$BASE_REF" = "whinlatter" ] && BRANCH=2.16
log "Cloning $repo on branch $BRANCH..."
git clone --depth 1 --branch "$BRANCH" "$repo"
done
# shellcheck disable=SC1091,SC2240