فهرست منبع

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
3فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      daemon/graphdriver/quota/projectquota.go
  2. 1 1
      daemon/graphdriver/quota/projectquota_unsupported.go
  3. 2 2
      hack/make/.binary

+ 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

+ 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"
 

+ 2 - 2
hack/make/.binary

@@ -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")