aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2025-11-15 07:02:27 -0800
committerColin Percival <cperciva@FreeBSD.org>2025-11-15 19:11:10 -0800
commit567ba10572cf6c75dec6175c4deae3df68470921 (patch)
treed6063ab22254a508bb813fde107ed51fc9a1ac01
parentc0a98d7f9dafbb52a533ba7ef3df51895141b2b5 (diff)
GCE: Don't .error on unsupported targets
We ingest Makefile.gce even when we're not trying to create GCE images so we don't want to .error here. Instead, set GCE_ARCH to a dummy value which should make the problem clear to anyone who attempts to create GCE images on an unsupported architecture. Approved by: re (cperciva) Reported by: Jenkins Fixes: 0a8ecca4e315 ("GCE: Specify the architecture of images") (cherry picked from commit 787d09753f70bb382a7cbfba742a612fa54069e6) (cherry picked from commit 375f8df26be16b58ff9185823e5d90761d2144e3)
-rw-r--r--release/Makefile.gce2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/Makefile.gce b/release/Makefile.gce
index 21df4ddbc3f5..31770bfd5098 100644
--- a/release/Makefile.gce
+++ b/release/Makefile.gce
@@ -20,7 +20,7 @@ GCE_ARCH= X86_64
.elif ${TARGET_ARCH} == "aarch64"
GCE_ARCH= ARM64
.else
-.error "Unsupported TARGET_ARCH for GCE: ${TARGET_ARCH}. Must be amd64 or aarch64."
+GCE_ARCH= UNSUPPORTED_IN_GCE
.endif
.if !defined(GCE_FAMILY) || empty(GCE_FAMILY)