Add support to riscv64 to the build scripts

Added riscv64 architecture support to the scripts used to build Docker
and it's dependencies.

Signed-off-by: Carlos de Paula <me@carlosedp.com>
This commit is contained in:
Carlos de Paula 2020-03-10 18:42:13 -03:00
parent 238887ef06
commit 7ac638f86a
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
// +build linux,!exclude_disk_quota
// +build linux,!exclude_disk_quota,cgo
//
// projectquota.go - implements XFS project quota controls

View file

@ -1,4 +1,4 @@
// +build linux,exclude_disk_quota
// +build linux,exclude_disk_quota linux,!cgo
package quota // import "github.com/docker/docker/daemon/graphdriver/quota"

View file

@ -70,9 +70,9 @@ hash_files() {
esac
fi
# -buildmode=pie is not supported on Windows and Linux on mips.
# -buildmode=pie is not supported on Windows and Linux on mips and riscv64.
case "$(go env GOOS)/$(go env GOARCH)" in
windows/* | linux/mips*) ;;
windows/* | linux/mips* | linux/riscv*) ;;
*)
BUILDFLAGS+=("-buildmode=pie")