Cross-compilation toolchain containers for NextBSD's build pipeline (kernel, kexts, base and userland).
Renamed from
nextbsd-kernel-toolchain(2026-10-24). The repo serves every NextBSD build, not only the kernel, and will build the pinned LLVM 19.1.7 toolchain itself (nextbsd/nextbsd#561, E23). The container image isghcr.io/nextbsd/nextbsd-toolchain. The oldghcr.io/nextbsd/nextbsd-kernel-toolchainpackage keeps its last images but gets no new ones (#15). Never create a new repo namednextbsd-kernel-toolchain: that would break the redirect from the old name.
Each image bakes a shallow, full-tree checkout of
nextbsd/freebsd-src
(releng/15.1) into /usr/src, pinned to an exact commit via the
FREEBSD_SHA build-arg, then runs kernel-toolchain. Downstream kernel and
module builds run inside this image, so they inherit the exact baked source —
no re-cloning, and the image itself (stored in GHCR) is the source artifact.
| Tag | Meaning |
|---|---|
amd64-latest / arm64-latest |
Most recent build for the arch |
amd64-fbsd-<sha> |
Source pinned to FreeBSD commit <sha> |
amd64-fbsd-tip |
Built from branch tip (manual / scheduled, no SHA) |
Besides the cross clang/lld, the image carries the host tools the NextBSD X
stack, Mesa and GNUstep/Gershwin support repos build with (build-time only,
never shipped): meson 1.12.1 (pinned upstream tarball, SHA-256 checked), ninja,
CMake, pkgconf (never freedesktop's GPL pkg-config; the build fails if it
appears), autoconf/automake/libtool, X.Org util-macros 1.20.2 (pinned tarball,
SHA-256 checked), Python's mako, yaml and packaging for Mesa, and, built from
pinned upstream tarballs (SHA-256 checked) into /usr/local, NASM 3.02 (x86-64
SIMD/assembly in the GNUstep support libraries) and gperf 3.3 (fontconfig; GPL-3.0,
build host only).
/opt/mesa-clc holds what Mesa's Intel drivers (iris, crocus) need on the build host to compile their internal
shaders with mesa_clc: LLVM/clang 19.1.7 as shared libraries (same llvmorg-19.1.7 pin), SPIRV-LLVM-Translator
v19.1.23 and SPIRV-Tools v2026.4, with llvm-config and .pc files. Build-time only, never shipped. See
mesa-clc/README.md for the pins and how nextbsd-mesa uses them.
llvm-static/ builds the tiny static LLVM (native target, MCJIT/ORC) that nextbsd-mesa links into llvmpipe, for
amd64 and arm64, from the same llvmorg-19.1.7 pin. It is published as release llvm-static-19.1.7, not baked into
the image. See llvm-static/README.md.
repository_dispatch: upstream-updated— from thefreebsd-srcfork's daily sync, carrying the exact changed SHA inclient_payload[sha].workflow_dispatch— manual.schedule— weekly (Mondays 06:00 UTC), to keep the LLVM build cache warm. It refreshes the images but does not start the chain.
When both arches have pushed, the notify job dispatches toolchain-updated
to nextbsd-kernel and nextbsd-freebsd-compat, passing the pinned SHA
forward. It runs for upstream-updated and manual runs on main, never for
PRs or the weekly schedule (nextbsd-kernel#324).
After the first successful build, set the GHCR package visibility to public
so downstream container: jobs can pull it without credentials
(Org → Packages → nextbsd-toolchain → Package settings → Change
visibility → Public).