diff options
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/turris.run | 9 | ||||
-rwxr-xr-x | templates/turris3x.run | 38 |
2 files changed, 8 insertions, 39 deletions
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 <<EOF - mkdir -p /var/www/repo/turris3x - rm -rf /var/www/repo/turris3x/$BOARD - mv deploy-turris3x-$BOARD /var/www/repo/turris3x/$BOARD -EOF |