From 730278d1b5af4a29e26f5f1c83da211e0aa48aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 21 Sep 2019 17:16:07 +0200 Subject: Drop Turris OS 3.x builds and add Turris 1.x --- templates/turris.run | 9 ++++++++- templates/turris3x.run | 38 -------------------------------------- 2 files changed, 8 insertions(+), 39 deletions(-) delete mode 100755 templates/turris3x.run (limited to 'templates') diff --git a/templates/turris.run b/templates/turris.run index 01a56d5..e5306e9 100755 --- a/templates/turris.run +++ b/templates/turris.run @@ -1,7 +1,14 @@ #!/bin/sh # vim: ft=sh . "$(dirname "$(readlink -f "$0")")/../job.common" -. turris-common.sh +################################################### +parallel=-j4 +make="make -j4 IS_TTY=1 BUILD_LOG=1" +if [ "$V" -ge 1 ]; then + parallel=-j1 + make="make -j1 IS_TTY=1 BUILD_LOG=1 V=99" +fi +################################################### curl "https://repo.turris.cz/$ANIMAL/$BOARD/packages/git-hash" > git-hash cat git-hash diff --git a/templates/turris3x.run b/templates/turris3x.run deleted file mode 100755 index b9344d8..0000000 --- a/templates/turris3x.run +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# vim: ft=sh -. "$(dirname "$(readlink -f "$0")")/../job.common" -. turris-common.sh - -echo_stage "Get packages" -git_clone "git@cynerd.cz:openwrt-personal-pkgs" pkgs turris3x - -SDK="$WORKSPACE/sdk.tar.bz2" -if [ -n "$CLEAN" ] || [ ! -e "$SDK" ] || [ $(expr $(date -u +%s) - $(stat -c %Z "$SDK")) -gt 86400 ]; then - echo_stage "Download SDK" - curl "$SDK_URI" > sdk.tar.bz2 - mv sdk.tar.bz2 "$SDK" -else - echo_stage "Skipping download" -fi - -echo_stage "Export SDK" -tar -xjf "$WORKSPACE/sdk.tar.bz2" -cd OpenWrt-SDK-* - -echo_stage "Copy packages" -cp -r ../pkgs/* package/ - -echo_stage "Build" -$make - -echo_stage "Sign" -./staging_dir/host/bin/usign -S -s ~/openwrt-repo.sec -m "bin/$ARCH/packages/base/Packages" - -echo_stage "Deploy" -ssh upload rm -rf "deploy-turris3x-$BOARD" -scp -r "bin/$ARCH/packages/base" upload:deploy-turris3x-$BOARD -ssh upload /bin/sh -e <