summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-08-26 19:00:38 +0200
committerKarel Kočí <cynerd@email.cz>2018-08-26 19:00:38 +0200
commit57425487c35c30ecea00b28a002d3a8914e565db (patch)
treee864acae0ae72711b82665b119843a44227ed697
parent348d6646601d20c9b87c099e1f78ad7ee6c765e3 (diff)
downloadlaminar-cnf-57425487c35c30ecea00b28a002d3a8914e565db.tar.gz
laminar-cnf-57425487c35c30ecea00b28a002d3a8914e565db.tar.bz2
laminar-cnf-57425487c35c30ecea00b28a002d3a8914e565db.zip
turris3x: build in parallel and sign
-rw-r--r--jobs/turris3x-omnia.env2
-rwxr-xr-xtemplates/turris3x.run14
2 files changed, 13 insertions, 3 deletions
diff --git a/jobs/turris3x-omnia.env b/jobs/turris3x-omnia.env
index 7696b37..85fca4b 100644
--- a/jobs/turris3x-omnia.env
+++ b/jobs/turris3x-omnia.env
@@ -1 +1,3 @@
+BOARD=omnia
+ARCH=mvebu-musl
SDK_URI=https://repo.turris.cz/omnia-nightly/OpenWrt-SDK-mvebu_gcc-4.8-linaro_musl-1.1.15_eabi.Linux-x86_64.tar.bz2
diff --git a/templates/turris3x.run b/templates/turris3x.run
index cab1217..982b1e6 100755
--- a/templates/turris3x.run
+++ b/templates/turris3x.run
@@ -19,7 +19,15 @@ echo_stage "Copy packages"
cp -r ../pkgs/* package/
echo_stage "Build"
-make -j1 V=99
+make -j4
-# TODO sign
-# TODO copy to repository
+echo_stage "Sign"
+./staging_dir/host/bin/usign -S -s ~/openwrt-repo.key -m "bin/$ARCH/packages/base/Packages"
+
+exit 0 # Disable deploy for now (ssh is not configured yet)
+echo_stage "Deploy"
+scp -r "bin/$ARCH/packages/base" cynerd.cz:/tmp/deploy-turris3x-$BOARD
+ssh cynerd.cz /bin/sh -ex <<EOF
+ rm -rf /var/www/repo/turris3x
+ mv /tmp/deploy-turris3x-$BOARD /var/www/repo/turris3x/$BOARD
+EOF