summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crontab4
l---------jobs/turris-dragons-turris1x.conf (renamed from jobs/turris3x-omnia.conf)0
-rw-r--r--jobs/turris-dragons-turris1x.env3
l---------jobs/turris-dragons-turris1x.run1
l---------jobs/turris-kittens-turris1x.conf (renamed from jobs/turris3x-turris.conf)0
-rw-r--r--jobs/turris-kittens-turris1x.env3
l---------jobs/turris-kittens-turris1x.run1
-rw-r--r--jobs/turris3x-omnia.env3
l---------jobs/turris3x-omnia.run1
-rw-r--r--jobs/turris3x-turris.env3
l---------jobs/turris3x-turris.run1
-rw-r--r--scripts/turris-common.sh6
-rwxr-xr-xtemplates/turris.run9
-rwxr-xr-xtemplates/turris3x.run38
14 files changed, 18 insertions, 55 deletions
diff --git a/crontab b/crontab
index 1ee6c11..8616bf9 100644
--- a/crontab
+++ b/crontab
@@ -3,7 +3,7 @@
0 1 * * * LAMINAR_REASON="Periodic" laminarc queue alpine-armhf
0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris-dragons-mox
0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris-dragons-omnia
+0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris-dragons-turris1x
0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris-kittens-mox
0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris-kittens-omnia
-0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris3x-omnia
-0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris3x-turris
+0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris-kittens-turris1x
diff --git a/jobs/turris3x-omnia.conf b/jobs/turris-dragons-turris1x.conf
index fafbc63..fafbc63 120000
--- a/jobs/turris3x-omnia.conf
+++ b/jobs/turris-dragons-turris1x.conf
diff --git a/jobs/turris-dragons-turris1x.env b/jobs/turris-dragons-turris1x.env
new file mode 100644
index 0000000..8470982
--- /dev/null
+++ b/jobs/turris-dragons-turris1x.env
@@ -0,0 +1,3 @@
+BOARD=turris1x
+ANIMAL=hbd
+ARCH=powerpc_8540
diff --git a/jobs/turris-dragons-turris1x.run b/jobs/turris-dragons-turris1x.run
new file mode 120000
index 0000000..683ec07
--- /dev/null
+++ b/jobs/turris-dragons-turris1x.run
@@ -0,0 +1 @@
+../templates/turris.run \ No newline at end of file
diff --git a/jobs/turris3x-turris.conf b/jobs/turris-kittens-turris1x.conf
index fafbc63..fafbc63 120000
--- a/jobs/turris3x-turris.conf
+++ b/jobs/turris-kittens-turris1x.conf
diff --git a/jobs/turris-kittens-turris1x.env b/jobs/turris-kittens-turris1x.env
new file mode 100644
index 0000000..c4e4b5b
--- /dev/null
+++ b/jobs/turris-kittens-turris1x.env
@@ -0,0 +1,3 @@
+BOARD=turris1x
+ANIMAL=hbk
+ARCH=powerpc_8540
diff --git a/jobs/turris-kittens-turris1x.run b/jobs/turris-kittens-turris1x.run
new file mode 120000
index 0000000..683ec07
--- /dev/null
+++ b/jobs/turris-kittens-turris1x.run
@@ -0,0 +1 @@
+../templates/turris.run \ No newline at end of file
diff --git a/jobs/turris3x-omnia.env b/jobs/turris3x-omnia.env
deleted file mode 100644
index 85fca4b..0000000
--- a/jobs/turris3x-omnia.env
+++ /dev/null
@@ -1,3 +0,0 @@
-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/jobs/turris3x-omnia.run b/jobs/turris3x-omnia.run
deleted file mode 120000
index 7171463..0000000
--- a/jobs/turris3x-omnia.run
+++ /dev/null
@@ -1 +0,0 @@
-../templates/turris3x.run \ No newline at end of file
diff --git a/jobs/turris3x-turris.env b/jobs/turris3x-turris.env
deleted file mode 100644
index a6b3555..0000000
--- a/jobs/turris3x-turris.env
+++ /dev/null
@@ -1,3 +0,0 @@
-BOARD=turris
-ARCH=mpc85xx
-SDK_URI=https://repo.turris.cz/turris-nightly/OpenWrt-SDK-mpc85xx-p2020-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
diff --git a/jobs/turris3x-turris.run b/jobs/turris3x-turris.run
deleted file mode 120000
index 7171463..0000000
--- a/jobs/turris3x-turris.run
+++ /dev/null
@@ -1 +0,0 @@
-../templates/turris3x.run \ No newline at end of file
diff --git a/scripts/turris-common.sh b/scripts/turris-common.sh
deleted file mode 100644
index fafcc82..0000000
--- a/scripts/turris-common.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-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
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