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:
- the container, and why it is the only supported build host;
- the sources, and the archive that keeps a copy of each one;
- the
fs/overlay, the files that become the new root’s first contents; - the layout of
build/, where everything the build makes is kept; 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
- How KDOS is built: the same journey told once, end to end
- Developing: build targets and the narrow iteration loops
- Part II: the first phase