summaryrefslogtreecommitdiff
path: root/templates/turris3x.run
blob: d358ecb723347786fda75e6d46cb7168c859fa9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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