diff options
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/turris3x.run | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/turris3x.run b/templates/turris3x.run new file mode 100755 index 0000000..bc8b56a --- /dev/null +++ b/templates/turris3x.run @@ -0,0 +1,24 @@ +# vim: ft=sh +set -e +. utils + +echo_stage "Get packages" +git_fetch "$GIT_REPO" pkgs turris3x + +# TODO download only once a day +echo_strage "Download SDK" +wget "$SDK_URI" -O 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 |