Browse code

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>

Carlos de Paula authored on 2020/03/11 06:42:13
Showing 3 changed files
... ...
@@ -1,4 +1,4 @@
1
-// +build linux,!exclude_disk_quota
1
+// +build linux,!exclude_disk_quota,cgo
2 2
 
3 3
 //
4 4
 // projectquota.go - implements XFS project quota controls
... ...
@@ -1,4 +1,4 @@
1
-// +build linux,exclude_disk_quota
1
+// +build linux,exclude_disk_quota linux,!cgo
2 2
 
3 3
 package quota // import "github.com/docker/docker/daemon/graphdriver/quota"
4 4
 
... ...
@@ -70,9 +70,9 @@ hash_files() {
70 70
 		esac
71 71
 	fi
72 72
 
73
-	# -buildmode=pie is not supported on Windows and Linux on mips.
73
+	# -buildmode=pie is not supported on Windows and Linux on mips and riscv64.
74 74
 	case "$(go env GOOS)/$(go env GOARCH)" in
75
-		windows/* | linux/mips*) ;;
75
+		windows/* | linux/mips* | linux/riscv*) ;;
76 76
 
77 77
 		*)
78 78
 			BUILDFLAGS+=("-buildmode=pie")