From 2812d6dac3440ef5ed87de7a988001697ad5c939 Mon Sep 17 00:00:00 2001 From: satoshi Date: Tue, 14 Apr 2026 10:03:33 +0300 Subject: [PATCH] Make PLATFORMS overridable for single-arch test builds Default still builds linux/arm64/v8+linux/amd64 for shipping, but 'make PLATFORMS=linux/amd64' skips the arm64 leg on hosts without qemu-user-static registered. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1478189..bd0bae5 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,11 @@ scripts/embassy.js: $(TS_FILES) deno run --allow-read --allow-write --allow-env --allow-net scripts/bundle.ts KAMADO_SRC ?= ../KamadoPool +PLATFORMS ?= linux/arm64/v8,linux/amd64 image.tar: Dockerfile docker_entrypoint.sh docker buildx build --tag start9/$(PKG_ID)/main:$(PKG_VERSION) \ - --platform=linux/arm64/v8,linux/amd64 \ + --platform=$(PLATFORMS) \ --build-arg ARCH=$(shell uname -m) \ --build-context kamado=$(KAMADO_SRC) \ -o type=oci,dest=image.tar .