summaryrefslogtreecommitdiff
path: root/templates/turris4x.run
diff options
context:
space:
mode:
Diffstat (limited to 'templates/turris4x.run')
-rwxr-xr-xtemplates/turris4x.run9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/turris4x.run b/templates/turris4x.run
index 2c9e1ec..a916dc5 100755
--- a/templates/turris4x.run
+++ b/templates/turris4x.run
@@ -1,7 +1,6 @@
#!/bin/sh
# vim: ft=sh
set -e
-GWORKSPACE=~/workspace/turris4x
. utils
MAKE="make -j4 IS_TTY=1 BUILD_LOG=1"
@@ -18,14 +17,14 @@ else
echo_stage "Get turris-build"
HASH="$(awk '/ \* turris-build\: /{print $3}' git-hash)"
- git_clone "https://gitlab.labs.nic.cz/turris/turris-build.git" turris-build "$HASH"
+ git_fetch_t "https://gitlab.labs.nic.cz/turris/turris-build.git" turris-build "$HASH"
echo_stage "Prepare SDK"
mkdir openwrt
cd openwrt
- echo ../turris-build/compile_fw -t $BOARD -p $BRANCH repo_prepare
- GIT_MIRROR="$GWORKSPACE/mirror" \
- CCACHE_HOST_DIR="$GWORKSPACE/ccache-host" \
+ echo "Template workspace: $TWORKSPACE/openwrt-git-mirror"
+ GIT_MIRROR="$TWORKSPACE/openwrt-git-mirror" \
+ CCACHE_HOST_DIR="$TWORKSPACE/ccache-host" \
CCACHE_TARGET_DIR="$WORKSPACE/ccache-target" \
../turris-build/compile_fw -t $BOARD -p $BRANCH repo_prepare