summaryrefslogtreecommitdiff
path: root/templates/turris3x.run
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-08-26 14:11:30 +0200
committerKarel Kočí <cynerd@email.cz>2018-08-26 14:11:30 +0200
commit7b1aef260402f538e3c60c83bfb79f9f41fcbf7a (patch)
treea8c06c31d45714d103bd4805bbe6561cd9104535 /templates/turris3x.run
downloadlaminar-cnf-7b1aef260402f538e3c60c83bfb79f9f41fcbf7a.tar.gz
laminar-cnf-7b1aef260402f538e3c60c83bfb79f9f41fcbf7a.tar.bz2
laminar-cnf-7b1aef260402f538e3c60c83bfb79f9f41fcbf7a.zip
Add initial configuration
This is just initial test for turris3x-omnia
Diffstat (limited to 'templates/turris3x.run')
-rwxr-xr-xtemplates/turris3x.run24
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