aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2026-06-26 23:12:55 +0000
committerWarner Losh <imp@FreeBSD.org>2026-06-26 23:12:55 +0000
commit1fc6923e6a40cf0ba9b6cb5aaeee3d87cacab507 (patch)
treeb69357627e7119c9d72a0fe311148018bad1fce8
parent9cb1459633a1f96ed2fd5bd37530be3c4f6ae9e6 (diff)
loader: Test GCC cross builds as part of universe.sh
Sicne we have gcc15 in Jenkins, and since people are actually using it, add cross building tests to universe.sh to avoid build breakage when hacking on loader.efi (and others). UEFI makes it too easy to mix pointers and integers since it deals in an odd mix of EFI_PHYSICAL_ADDRESS and pointers... Sponsored by: Netflix
-rwxr-xr-xtools/boot/universe.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/boot/universe.sh b/tools/boot/universe.sh
index 4218aa4784c8..75421c28ffba 100755
--- a/tools/boot/universe.sh
+++ b/tools/boot/universe.sh
@@ -81,6 +81,16 @@ for i in \
dobuild $ta _.boot.${ta}.log ""
done
+# Cross build with gcc15, requires ${ta}-gcc15 to be installed
+for i in \
+ amd64/amd64 \
+ arm64/aarch64 \
+ riscv/riscv64 \
+ ; do
+ ta=${i##*/}
+ dobuild $ta _.boot.${ta}.log "CROSS_TOOLCHAIN=${ta}-gcc15"
+done
+
# Build w/o ZFS
for i in \
arm64/aarch64 \