diff options
author | Robert Savoye <rob.savoye@linaro.org> | 2015-03-18 17:17:42 +0000 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-03-18 17:17:42 +0000 |
commit | 3a34315df0363592de06ed22168b403fa26383a9 (patch) | |
tree | cc945e3aa77efaa7a9281b355c92ce837c28a086 /scripts | |
parent | b620d93adfe8af4e1881b71fbfffa461acb9ad6a (diff) | |
parent | f7564d4a8f6a87200b64a5336dc8c31e8188a044 (diff) |
Merge "Add support for target=native and for target=schroot-* in scripts/Backport.job and test-backport.sh"
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/Backport.job | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/Backport.job b/scripts/Backport.job index 344417f4..9160cd8d 100755 --- a/scripts/Backport.job +++ b/scripts/Backport.job @@ -29,14 +29,9 @@ EOF return 0 } -# Server to store results on. abe_dir="${WORKSPACE}/abe" -user_snapshots="${WORKSPACE}/snapshots" -shared="/home/buildslave/workspace/shared/" -snapshots_ref="${shared}/snapshots" export CONFIG_SHELL="/bin/bash" - cat << EOF > ${WORKSPACE}/BUILD-INFO.txt Format-Version: 0.5 @@ -48,11 +43,13 @@ rm -fr ${WORKSPACE}/_build/builds/* ${WORKSPACE}/_build/sysroots/* mkdir -p ${WORKSPACE}/_build cd ${WORKSPACE}/_build -if test ! -d ${snapshots_ref}/gcc.git; then - git clone http://git.linaro.org/git/toolchain/gcc.git ${snapshots_ref}/gcc.git -fi - -$CONFIG_SHELL ${abe_dir}/configure --enable-schroot-test --with-local-snapshots=${user_snapshots} --with-git-reference-dir=${snapshots_ref} +case ${target} in + schroot-*) + schroot_arch=$(echo ${target} | sed -e "s/^schroot-\([^-]*\)-\(.*\)/\1/") + target=$(echo ${target} | sed -e "s/^schroot-\([^-]*\)-\(.*\)/\2/") + CONFIG_SHELL="schroot -c tcwg-build-${schroot_arch}-trusty --preserve-environment -- ${CONFIG_SHELL}" + ;; +esac # If started by a Gerrit Trigger, use that for the branch. if test x"${GERRIT_TOPIC}" != x; then |