diff options
author | Jakob Borg <jakob@nym.se> | 2014-03-31 05:59:40 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-03-31 05:59:40 +0200 |
commit | dddf563105d36bf9adc4dc04e61e37825c093a36 (patch) | |
tree | 66767a2586fd8eab138a492a269251b7f8b6ee36 | |
parent | dbe12cca4b3a8072bc6db8caf047100792657ba9 (diff) |
Build ARMv6 as well for RaspberryPi
-rwxr-xr-x | build.sh | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -86,8 +86,7 @@ case "$1" in prepare test || exit 1 - export GOARM=7 - for os in darwin-amd64 linux-amd64 linux-arm freebsd-amd64 windows-amd64 ; do + for os in darwin-amd64 linux-amd64 freebsd-amd64 windows-amd64 ; do export GOOS=${os%-*} export GOARCH=${os#*-} @@ -105,6 +104,18 @@ case "$1" in ;; esac done + + export GOOS=linux + export GOARCH=arm + + export GOARM=7 + build + tarDist "syncthing-linux-armv7-$version" + + export GOARM=6 + build + tarDist "syncthing-linux-armv6-$version" + ;; upload) |