diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2013-06-25 23:45:00 +0200 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2013-06-25 23:46:07 +0200 |
commit | 28a4006655cd389da8014deba0753c866e226032 (patch) | |
tree | 52f164ee4f39074ba7ce6afcf4f65e1b21b417cb | |
parent | 8088264e0c50e10bea1025ce40b28710d2c460c1 (diff) |
make branch and git tree changable
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-x | linux-preempt-rt.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-preempt-rt.sh b/linux-preempt-rt.sh index 012a21b..9b353f7 100755 --- a/linux-preempt-rt.sh +++ b/linux-preempt-rt.sh @@ -4,6 +4,8 @@ set -ex export parent_workspace="/mnt/ci_build/workspace/linux-preempt-rt" export reference_git="${parent_workspace}/reference-git" +linux_branch="${linux_branch:-linaro-preempt-rt}" +linux_git="${linux_git:-git://git.linaro.org/kernel/linux-linaro-lng.git}" if [ -z "${WORKSPACE}" ]; then # Local build @@ -25,7 +27,7 @@ cleanup_exit() rm -rf builddir* } -test -d ${reference_git} || git clone --depth 1 -b linaro-preempt-rt git://git.linaro.org/kernel/linux-linaro-lng.git ${reference_git} +test -d ${reference_git} || git clone --depth 1 -b $linux_branch $linux_git ${reference_git} cp -a ${reference_git}/* ${reference_git}/.git* . case "${hwpack}" in |