Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

Part XIV. The kernel

This part is for anyone who builds KDOS or rebuilds its kernel. It explains how the kernel is configured, compiled and put where a machine boots it.

The kernel phase, 60_kernel, builds the Linux kernel and its modules for the target root from KDOS’s own configuration. It installs two ports: dwarves, for the pahole tool that turns the kernel’s debug information into BTF (BPF Type Format, the kernel’s description of its own data types), and then linux itself. It is the last phase that builds ports; 70_image follows and packs the tree into the installation medium.

The kernel’s recipe has more to it than a package page can hold, so three chapters explain it before the package pages:

The package pages follow in chapters by shelf, in the shelves’ own order, and within a shelf in the order kpkgdepends builds them. Each port has a page or, when it has nothing unusual about it, a compact card.

See also