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

Part I. Preparing

This part is for anyone about to build KDOS from its repository. It prepares everything the build needs before the first compiler runs.

The build is divided into phases, numbered stages such as 00_cross and 41_system, and most phases install ports, one recipe per upstream package. Nothing that goes into KDOS is compiled on your machine directly. Every phase runs inside one container image, os-dev, built from the repository’s own Dockerfile, and that container has no network, so every upstream source is fetched beforehand, checked against its recipe and kept by its hash.

The chapters of this part cover, in order:

  1. the container, and why it is the only supported build host;
  2. the sources, and the archive that keeps a copy of each one;
  3. the fs/ overlay, the files that become the new root’s first contents;
  4. the layout of build/, where everything the build makes is kept;
  5. kdosbuild, the program that runs every phase in order.

By the end of the part you have a clone, every source fetched and verified, and a command that builds the whole system. The parts after it follow that command phase by phase.

See also