summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtemplates/turris3x.run8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/turris3x.run b/templates/turris3x.run
index 49640cc..a9fb25d 100755
--- a/templates/turris3x.run
+++ b/templates/turris3x.run
@@ -2,6 +2,12 @@
# vim: ft=sh
. "$(dirname "$(readlink -f "$0")")/../job.common"
+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
+
echo_stage "Get packages"
git_clone "git@cynerd.cz:openwrt-personal-pkgs" pkgs turris3x
@@ -22,7 +28,7 @@ echo_stage "Copy packages"
cp -r ../pkgs/* package/
echo_stage "Build"
-make -j4
+$MAKE
echo_stage "Sign"
./staging_dir/host/bin/usign -S -s ~/openwrt-repo.key -m "bin/$ARCH/packages/base/Packages"