diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-12-11 09:14:49 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-12-12 09:42:42 +0000 |
commit | 57c1064e500cbffedadbb442cc51dbeab134f418 (patch) | |
tree | 1eddd8391df74836a0e11e0090ba26caac1fc818 /tcwg_kernel-build.sh | |
parent | db28669aad424728a62cffd2fefe638605c118e9 (diff) |
tcwg_kernel*: Rename config[*] to rr[*].
This is beginning of a massive variable renaming patch series.
The goal is to encapsulate all configuration variables that
round-robin routines are using into "rr" associative array.
This encapsulation will allow to move round-robin routines
such as clone_repo, prepare_abe, build_abe, etc. into helper
file and make it depend on a well-documented array of
configuration variables "rr".
Change-Id: Ie8aad82c1527ced79465fa8d21a1eaa0b11f5e7b
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-x | tcwg_kernel-build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh index 6691bf95..750e66fa 100755 --- a/tcwg_kernel-build.sh +++ b/tcwg_kernel-build.sh @@ -11,7 +11,7 @@ convert_args_to_variables "$@" mode="${mode-baseline}" # Toolchain to use: gnu or llvm -obligatory_variables config git_repo git_branch toolchain +obligatory_variables rr git_repo git_branch toolchain case "$mode" in "jenkins-full") @@ -40,14 +40,14 @@ if $verbose2; then set -x; fi trap "eval \"echo ERROR at \${FUNCNAME[0]}:\${BASH_LINENO[0]}\" > $top_artifacts/failures" EXIT if [ x"$target" = x"native" ]; then - config[target]=$(uname -m) + rr[target]=$(uname -m) else - config[target]=$target + rr[target]=$target fi # Baseline branch name for current configuration. These branches are # present in all above git repos. -baseline="linaro-local/ci/tcwg_kernel/$toolchain-${config[$toolchain]}-${config[target]}-${config[linux]}-$linux_config" +baseline="linaro-local/ci/tcwg_kernel/$toolchain-${rr[${toolchain}_version]}-${rr[target]}-${rr[linux_version]}-$linux_config" # We are not going to push any results for a one-off build. if [ x"$current_project" = x"none" ]; then |