diff --git a/changelog/unreleased/issue-4540 b/changelog/unreleased/issue-4540 new file mode 100644 index 000000000..9a706141e --- /dev/null +++ b/changelog/unreleased/issue-4540 @@ -0,0 +1,6 @@ +Change: Require at least ARMv6 for ARM binaries + +The official release binaries of restic now require at least ARMv6 support for ARM platforms. + +https://github.com/restic/restic/issues/4540 +https://github.com/restic/restic/pull/4542 diff --git a/helpers/build-release-binaries/main.go b/helpers/build-release-binaries/main.go index f14f60db6..81d126b00 100644 --- a/helpers/build-release-binaries/main.go +++ b/helpers/build-release-binaries/main.go @@ -125,6 +125,10 @@ func build(sourceDir, outputDir, goos, goarch string) (filename string) { "GOOS="+goos, "GOARCH="+goarch, ) + if goarch == "arm" { + // the raspberry pi 1 only supports the ARMv6 instruction set + c.Env = append(c.Env, "GOARM=6") + } verbose("run %v %v in %v", "go", c.Args, c.Dir) err := c.Run()