summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-03-31 05:59:40 +0200
committerJakob Borg <jakob@nym.se>2014-03-31 05:59:40 +0200
commitdddf563105d36bf9adc4dc04e61e37825c093a36 (patch)
tree66767a2586fd8eab138a492a269251b7f8b6ee36
parentdbe12cca4b3a8072bc6db8caf047100792657ba9 (diff)
Build ARMv6 as well for RaspberryPi
-rwxr-xr-xbuild.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 9ef62c9785..49a54daf34 100755
--- a/build.sh
+++ b/build.sh
@@ -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)