From 80f3644ee3430cd0bf3109f49428ade1e478129e Mon Sep 17 00:00:00 2001 From: qiangxuhui Date: Thu, 9 May 2024 20:22:03 +0800 Subject: [PATCH] Add build support for loong64 (#6222) ### Describe Your Changes Added makefile rule for `GOARCH=loong64` to support building all VictoriaMetrics components on the `loongarch64` platform. ### Checklist The following checks are **mandatory**: * [X] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/). Signed-off-by: qiangxuhui --- app/victoria-metrics/Makefile | 3 +++ app/vmagent/Makefile | 3 +++ app/vmalert/Makefile | 3 +++ app/vmauth/Makefile | 3 +++ app/vmbackup/Makefile | 3 +++ app/vmctl/Makefile | 3 +++ app/vmrestore/Makefile | 3 +++ 7 files changed, 21 insertions(+) diff --git a/app/victoria-metrics/Makefile b/app/victoria-metrics/Makefile index f8fa3d089e..e7f0f7f27a 100644 --- a/app/victoria-metrics/Makefile +++ b/app/victoria-metrics/Makefile @@ -88,6 +88,9 @@ victoria-metrics-linux-ppc64le: victoria-metrics-linux-s390x: APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=linux GOARCH=s390x $(MAKE) app-local-goos-goarch +victoria-metrics-linux-loong64: + APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=linux GOARCH=loong64 $(MAKE) app-local-goos-goarch + victoria-metrics-linux-386: APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch diff --git a/app/vmagent/Makefile b/app/vmagent/Makefile index 74c47f2dfc..e96a9c221c 100644 --- a/app/vmagent/Makefile +++ b/app/vmagent/Makefile @@ -88,6 +88,9 @@ vmagent-linux-ppc64le: vmagent-linux-s390x: APP_NAME=vmagent CGO_ENABLED=0 GOOS=linux GOARCH=s390x $(MAKE) app-local-goos-goarch +vmagent-linux-loong64: + APP_NAME=vmagent CGO_ENABLED=0 GOOS=linux GOARCH=loong64 $(MAKE) app-local-goos-goarch + vmagent-linux-386: APP_NAME=vmagent CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch diff --git a/app/vmalert/Makefile b/app/vmalert/Makefile index 0c57ffb299..610a8e1379 100644 --- a/app/vmalert/Makefile +++ b/app/vmalert/Makefile @@ -119,6 +119,9 @@ vmalert-linux-ppc64le: vmalert-linux-s390x: APP_NAME=vmalert CGO_ENABLED=0 GOOS=linux GOARCH=s390x $(MAKE) app-local-goos-goarch +vmalert-linux-loong64: + APP_NAME=vmalert CGO_ENABLED=0 GOOS=linux GOARCH=loong64 $(MAKE) app-local-goos-goarch + vmalert-linux-386: APP_NAME=vmalert CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch diff --git a/app/vmauth/Makefile b/app/vmauth/Makefile index 88fdbcd668..b3420a11cd 100644 --- a/app/vmauth/Makefile +++ b/app/vmauth/Makefile @@ -87,6 +87,9 @@ vmauth-linux-ppc64le: vmauth-linux-s390x: APP_NAME=vmauth CGO_ENABLED=0 GOOS=linux GOARCH=s390x $(MAKE) app-local-goos-goarch +vmauth-linux-loong64: + APP_NAME=vmauth CGO_ENABLED=0 GOOS=linux GOARCH=loong64 $(MAKE) app-local-goos-goarch + vmauth-linux-386: APP_NAME=vmauth CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch diff --git a/app/vmbackup/Makefile b/app/vmbackup/Makefile index 1e88ca68fc..a36791e779 100644 --- a/app/vmbackup/Makefile +++ b/app/vmbackup/Makefile @@ -81,6 +81,9 @@ vmbackup-linux-ppc64le: vmbackup-linux-s390x: APP_NAME=vmbackup CGO_ENABLED=0 GOOS=linux GOARCH=s390x $(MAKE) app-local-goos-goarch +vmbackup-linux-loong64: + APP_NAME=vmbackup CGO_ENABLED=0 GOOS=linux GOARCH=loong64 $(MAKE) app-local-goos-goarch + vmbackup-linux-386: APP_NAME=vmbackup CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch diff --git a/app/vmctl/Makefile b/app/vmctl/Makefile index 68155f9b75..589e405239 100644 --- a/app/vmctl/Makefile +++ b/app/vmctl/Makefile @@ -81,6 +81,9 @@ vmctl-linux-ppc64le: vmctl-linux-s390x: APP_NAME=vmctl CGO_ENABLED=0 GOOS=linux GOARCH=s390x $(MAKE) app-local-goos-goarch +vmctl-linux-loong64: + APP_NAME=vmctl CGO_ENABLED=0 GOOS=linux GOARCH=loong64 $(MAKE) app-local-goos-goarch + vmctl-linux-386: APP_NAME=vmctl CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch diff --git a/app/vmrestore/Makefile b/app/vmrestore/Makefile index 824d50695c..76d7e3bde2 100644 --- a/app/vmrestore/Makefile +++ b/app/vmrestore/Makefile @@ -81,6 +81,9 @@ vmrestore-linux-ppc64le: vmrestore-linux-s390x: APP_NAME=vmrestore CGO_ENABLED=0 GOOS=linux GOARCH=s390x $(MAKE) app-local-goos-goarch +vmrestore-linux-loong64: + APP_NAME=vmrestore CGO_ENABLED=0 GOOS=linux GOARCH=loong64 $(MAKE) app-local-goos-goarch + vmrestore-linux-386: APP_NAME=vmrestore CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch