summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/utils4
-rwxr-xr-xtemplates/turris4x.run6
2 files changed, 9 insertions, 1 deletions
diff --git a/scripts/utils b/scripts/utils
index 86edaa9..a955699 100644
--- a/scripts/utils
+++ b/scripts/utils
@@ -1,5 +1,9 @@
# vim: ft=sh
+if [ "$V" -ge 2 ]; then
+ set -x
+fi
+
## Simple echo wrappers #########################################################
echo_stage() {
echo -e "\033[1;34m========== $@ ==========\033[0m ($(date))" >&2
diff --git a/templates/turris4x.run b/templates/turris4x.run
index 5a6b586..4c2623e 100755
--- a/templates/turris4x.run
+++ b/templates/turris4x.run
@@ -3,7 +3,11 @@
set -e
. utils
-MAKE="make -j4 IS_TTY=1 BUILD_LOG=1"
+if [ "$V" -ge 1 ]; then
+ MAKE="make -j1 IS_TTY=1 BUILD_LOG=1 V=99"
+else
+ MAKE="make -j4 IS_TTY=1 BUILD_LOG=1"
+fi
curl "https://repo.turris.cz/$BOARD-$BRANCH/git-hash" > git-hash
cat git-hash