#!/bin/sh # vim: ft=sh set -e . utils echo_stage "Get packages" git_fetch "$GIT_REPO" pkgs turris3x # TODO download only once a day echo_stage "Download SDK" curl "$SDK_URI" > sdk.tar.bz2 mv sdk.tar.bz2 "$WORKSPACE/sdk.tar.bz2" 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 -j1 V=99 # TODO sign # TODO copy to repository