From 21d3dddda77ec855404fd03ad01f52bd67d41b21 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Tue, 17 Jun 2025 14:05:12 -0600 Subject: [PATCH] build: allow make build for different arch Allow `make build` to perform cross-architecture builds by using `make GOARCH= build`. Signed-off-by: Blaine Gardner --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 488ade028..d97b061eb 100644 --- a/Makefile +++ b/Makefile @@ -130,8 +130,8 @@ do.build.platform.%: do.build.parallel: $(foreach p,$(PLATFORMS_TO_BUILD_FOR), do.build.platform.$(p)) build: build.common ## Only build for linux platform - @$(MAKE) go.build PLATFORM=linux_$(GOHOSTARCH) - @$(MAKE) -C images PLATFORM=linux_$(GOHOSTARCH) + @$(MAKE) go.build PLATFORM=linux_$(GOARCH) + @$(MAKE) -C images PLATFORM=linux_$(GOARCH) build.all: build.common ## Build source code for all platforms. ifneq ($(GOHOSTARCH),amd64)