mirror of
git://git.yoctoproject.org/meta-raspberrypi
synced 2026-04-02 02:49:12 +00:00
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>
37 lines
936 B
Bash
Executable File
37 lines
936 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -ex
|
|
|
|
# shellcheck disable=SC1091
|
|
. /utils.sh
|
|
|
|
GIT_REPO_PATH="/work"
|
|
|
|
[ -n "$BASE_REF" ] ||
|
|
error "Target branch is needed. Make sure that is set in BASE_REF."
|
|
[ -d "$GIT_REPO_PATH/.git" ] ||
|
|
error "Can't find a git checkout under $GIT_REPO_PATH ."
|
|
|
|
TEMP_DIR="$(mktemp -d)"
|
|
cd "$TEMP_DIR"
|
|
|
|
REPOS=" \
|
|
git://git.openembedded.org/openembedded-core \
|
|
git://git.openembedded.org/bitbake \
|
|
"
|
|
for repo in $REPOS; do
|
|
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
|
|
. ./openembedded-core/oe-init-build-env build
|
|
yocto-check-layer --with-software-layer-signature-check --debug \
|
|
"$GIT_REPO_PATH"
|