X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm-remote%2Fbuild.sh;h=b96c73e6e5f5c1bfde9bb30e8e1c6f07f5cb55f3;hb=d109a6151f48fc9e322bacbd3cc5e4f00eade713;hp=404f48faa9ce621dba88341ecd548472fe8f9908;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5;p=safcm%2Fsafcm.git diff --git a/cmd/safcm-remote/build.sh b/cmd/safcm-remote/build.sh index 404f48f..b96c73e 100755 --- a/cmd/safcm-remote/build.sh +++ b/cmd/safcm-remote/build.sh @@ -3,7 +3,7 @@ # Build remote helpers for all operating systems and architectures which are # supported as target hosts -# Copyright (C) 2021 Simon Ruderich +# Copyright (C) 2021-2023 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,10 +25,17 @@ build() { GOOS="$1" GOARCH="$2" go build -o "$dest/$1-$2" } +build_arm() { + GOOS="$1" GOARCH="$2" GOARM="$3" go build -o "$dest/$1-${2}v${3}l" +} + -dest=../../remote/helpers +dest=../safcm/remote mkdir -p "$dest" +build freebsd amd64 build linux amd64 +build openbsd amd64 +build_arm linux arm 7 # TODO: support more operating systems and architectures