summaryrefslogtreecommitdiffstats
path: root/scripts/ci/configure.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/configure.sh')
-rwxr-xr-xscripts/ci/configure.sh25
1 files changed, 23 insertions, 2 deletions
diff --git a/scripts/ci/configure.sh b/scripts/ci/configure.sh
index cf42825..1e87a7b 100755
--- a/scripts/ci/configure.sh
+++ b/scripts/ci/configure.sh
@@ -9,7 +9,8 @@ TEST_REPO_DIR=${TEST_REPO_DIR:-updater-repo}
9 9
10TEST_AKTUALIZR_DIR=${TEST_AKTUALIZR_DIR:-.} 10TEST_AKTUALIZR_DIR=${TEST_AKTUALIZR_DIR:-.}
11TEST_AKTUALIZR_BRANCH=${TEST_AKTUALIZR_BRANCH:-master} 11TEST_AKTUALIZR_BRANCH=${TEST_AKTUALIZR_BRANCH:-master}
12TEST_AKTUALIZR_REV=${TEST_AKTUALIZR_REV:-$(GIT_DIR="${TEST_AKTUALIZR_DIR}/.git" git rev-parse "${TEST_AKTUALIZR_BRANCH}")} 12TEST_AKTUALIZR_REV=${TEST_AKTUALIZR_REV:-$(GIT_DIR="$TEST_AKTUALIZR_DIR/.git" git rev-parse "$TEST_AKTUALIZR_REMOTE/$TEST_AKTUALIZR_BRANCH")}
13TEST_BITBAKE_COMMON_DIR=${TEST_BITBAKE_COMMON_DIR:-}
13 14
14# move existing conf directory to backup, before generating a new one 15# move existing conf directory to backup, before generating a new one
15rm -rf "${TEST_BUILD_DIR}/conf.old" || true 16rm -rf "${TEST_BUILD_DIR}/conf.old" || true
@@ -22,12 +23,32 @@ echo ">> Running envsetup.sh"
22. "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}" 23. "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}"
23) 24)
24 25
25echo ">> Set aktualizr branch in bitbake's config" 26set +x
26 27
28echo ">> Set common bitbake config options"
27cat << EOF > "${TEST_BUILD_DIR}/conf/site.conf" 29cat << EOF > "${TEST_BUILD_DIR}/conf/site.conf"
28SANITY_TESTED_DISTROS = "" 30SANITY_TESTED_DISTROS = ""
31SSTATE_MIRRORS ?= "file://.* https://bitbake-cache.atsgarage.com/PATH;downloadfilename=PATH"
32IMAGE_FEATURES += "ssh-server-openssh"
33
34EOF
35
36echo ">> Set aktualizr branch in bitbake's config"
37cat << EOF >> "${TEST_BUILD_DIR}/conf/site.conf"
29SRCREV_pn-aktualizr = "$TEST_AKTUALIZR_REV" 38SRCREV_pn-aktualizr = "$TEST_AKTUALIZR_REV"
30SRCREV_pn-aktualizr-native = "\${SRCREV_pn-aktualizr}" 39SRCREV_pn-aktualizr-native = "\${SRCREV_pn-aktualizr}"
31BRANCH_pn-aktualizr = "$TEST_AKTUALIZR_BRANCH" 40BRANCH_pn-aktualizr = "$TEST_AKTUALIZR_BRANCH"
32BRANCH_pn-aktualizr-native = "\${BRANCH_pn-aktualizr}" 41BRANCH_pn-aktualizr-native = "\${BRANCH_pn-aktualizr}"
42
43EOF
44
45if [[ -n $TEST_BITBAKE_COMMON_DIR ]]; then
46 echo ">> Set caching"
47 SSTATE_DIR="$TEST_BITBAKE_COMMON_DIR/sstate-cache"
48 DL_DIR="$TEST_BITBAKE_COMMON_DIR/downloads"
49 mkdir -p "$SSTATE_DIR" "$DL_DIR"
50 cat << EOF >> "${TEST_BUILD_DIR}/conf/site.conf"
51SSTATE_DIR = "$SSTATE_DIR"
52DL_DIR = "$DL_DIR"
33EOF 53EOF
54fi