summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2013-06-25 23:45:00 +0200
committerAnders Roxell <anders.roxell@linaro.org>2013-06-25 23:46:07 +0200
commit28a4006655cd389da8014deba0753c866e226032 (patch)
tree52f164ee4f39074ba7ce6afcf4f65e1b21b417cb
parent8088264e0c50e10bea1025ce40b28710d2c460c1 (diff)
make branch and git tree changable
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-xlinux-preempt-rt.sh4
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