diff options
| -rwxr-xr-x | scripts/ci/build.sh | 1 | ||||
| -rwxr-xr-x | scripts/ci/configure.sh | 2 | ||||
| -rwxr-xr-x | scripts/envsetup.sh | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index 6235428..436a00d 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh | |||
| @@ -12,6 +12,7 @@ IMAGE_NAME=${1:-core-image-minimal} | |||
| 12 | ( | 12 | ( |
| 13 | set +euo pipefail | 13 | set +euo pipefail |
| 14 | set +x | 14 | set +x |
| 15 | export METADIR=$(realpath $TEST_REPO_DIR) | ||
| 15 | . "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}" | 16 | . "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}" |
| 16 | 17 | ||
| 17 | bitbake "${IMAGE_NAME}" | 18 | bitbake "${IMAGE_NAME}" |
diff --git a/scripts/ci/configure.sh b/scripts/ci/configure.sh index 2101c64..3271585 100755 --- a/scripts/ci/configure.sh +++ b/scripts/ci/configure.sh | |||
| @@ -25,6 +25,7 @@ mv "$TEST_BUILD_DIR/conf" "$TEST_BUILD_DIR/conf.old" || true | |||
| 25 | set +euo pipefail | 25 | set +euo pipefail |
| 26 | set +x | 26 | set +x |
| 27 | echo ">> Running envsetup.sh" | 27 | echo ">> Running envsetup.sh" |
| 28 | export METADIR=$(realpath $TEST_REPO_DIR) | ||
| 28 | . "$TEST_REPO_DIR/meta-updater/scripts/envsetup.sh" "$TEST_MACHINE" "$TEST_BUILD_DIR" | 29 | . "$TEST_REPO_DIR/meta-updater/scripts/envsetup.sh" "$TEST_MACHINE" "$TEST_BUILD_DIR" |
| 29 | ) | 30 | ) |
| 30 | 31 | ||
| @@ -35,7 +36,6 @@ SITE_CONF="$TEST_BUILD_DIR/conf/site.conf" | |||
| 35 | echo ">> Set common bitbake config options" | 36 | echo ">> Set common bitbake config options" |
| 36 | cat << EOF > "$SITE_CONF" | 37 | cat << EOF > "$SITE_CONF" |
| 37 | SANITY_TESTED_DISTROS = "" | 38 | SANITY_TESTED_DISTROS = "" |
| 38 | SSTATE_MIRRORS ?= "file://.* https://bitbake-cache.atsgarage.com/PATH;downloadfilename=PATH" | ||
| 39 | IMAGE_FEATURES += "ssh-server-openssh" | 39 | IMAGE_FEATURES += "ssh-server-openssh" |
| 40 | 40 | ||
| 41 | EOF | 41 | EOF |
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 6103cf6..5827bc2 100755 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh | |||
| @@ -21,7 +21,7 @@ if [[ $SOURCED -ne 1 ]]; then | |||
| 21 | exit 1 | 21 | exit 1 |
| 22 | fi | 22 | fi |
| 23 | 23 | ||
| 24 | METADIR="${SOURCEDIR}/../.." | 24 | METADIR=${METADIR:-${SOURCEDIR}/../..} |
| 25 | 25 | ||
| 26 | if [[ ! -f "${BUILDDIR}/conf/local.conf" ]]; then | 26 | if [[ ! -f "${BUILDDIR}/conf/local.conf" ]]; then |
| 27 | source "$METADIR/poky/oe-init-build-env" "$BUILDDIR" | 27 | source "$METADIR/poky/oe-init-build-env" "$BUILDDIR" |
