瀏覽代碼

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 5 年之前
父節點
當前提交
7ac638f86a

+ 1 - 1
daemon/graphdriver/quota/projectquota.go

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

+ 1 - 1
daemon/graphdriver/quota/projectquota_unsupported.go

@@ -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"
 package quota // import "github.com/docker/docker/daemon/graphdriver/quota"
 
 

+ 2 - 2
hack/make/.binary

@@ -70,9 +70,9 @@ hash_files() {
 		esac
 		esac
 	fi
 	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
 	case "$(go env GOOS)/$(go env GOARCH)" in
-		windows/* | linux/mips*) ;;
+		windows/* | linux/mips* | linux/riscv*) ;;
 
 
 		*)
 		*)
 			BUILDFLAGS+=("-buildmode=pie")
 			BUILDFLAGS+=("-buildmode=pie")