mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 08:41:19 -08:00
The natlab gokrazy image runs a recent upstream kernel (7.2.8 today) that gokrazy rebuilds and tailscale.com bumps regularly, which makes it a better primary test target than a distro kernel: it keeps us honest against new kernel APIs, and gokrazy has no userspace tools, as in the end state where tailscaled drives the kernel entirely. gokrazy kernels are kernel.org releases plus the patches in _build/series, built with an embedded config and without MODVERSIONS or module signing. gokrazy-kdir.sh downloads the release, applies the patches, installs the config pulled out of vmlinuz with the kernel's extract-ikconfig (vendored), and runs modules_prepare, caching the result by release and config hash. It takes about 20 seconds the first time. The only config differences after olddefconfig with the host's gcc 13 (gokrazy uses Debian 12's gcc 12) are toolchain capability bits. Factor the generic part of build-for-ubuntu.sh into build.sh, which now copies only sources (not objects from an in-place build in src/), and sets KBUILD_MODPOST_WARN=1 for trees without a Module.symvers. Add build-for-gokrazy.sh. Updates #426 Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: Id28d9c013bdfaa7cec28aeff846f7f6087e25518