diff options
Diffstat (limited to 'meta-raspberrypi/.github/workflows/docker-images/yocto-builder/entrypoint-yocto-check-layer.sh')
-rwxr-xr-x | meta-raspberrypi/.github/workflows/docker-images/yocto-builder/entrypoint-yocto-check-layer.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-raspberrypi/.github/workflows/docker-images/yocto-builder/entrypoint-yocto-check-layer.sh b/meta-raspberrypi/.github/workflows/docker-images/yocto-builder/entrypoint-yocto-check-layer.sh new file mode 100755 index 0000000000..474a24ed2f --- /dev/null +++ b/meta-raspberrypi/.github/workflows/docker-images/yocto-builder/entrypoint-yocto-check-layer.sh @@ -0,0 +1,33 @@ +#!/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.yoctoproject.org/poky.git \ +" +for repo in $REPOS; do + log "Cloning $repo on branch $BASE_REF..." + git clone --depth 1 --branch "$BASE_REF" "$repo" +done + +# shellcheck disable=SC1091,SC2240 +. ./poky/oe-init-build-env build +yocto-check-layer --with-software-layer-signature-check --debug \ + "$GIT_REPO_PATH" |