danos/docs/device-driver-development
Daniel Samson 4476208361
build: exact per-binary imports — the pre-wired default set is gone
Every binary's build.zig now names precisely the modules its source
imports (derived by scanning each artifact's sources, transitively
through same-directory files), and its zon carries only the domains
those come from — kernel stays implicit (the root shim + link script
live there). build-support's userBinary resolves each name through one
module-to-domain table (module_homes); Domains/domains()/defaultImports
and the raw recipe entry point are deleted. An undeclared @import is a
compile error (verified: injecting @import("xkeyboard-config") into
logger fails with 'no module named ... available within module
program'), and e.g. xkeyboard-config now appears in exactly two
manifests — the two keyboard drivers. Availability never bloated the
emitted binaries (Zig compiles only what a program imports); this makes
the declared interfaces honest. Production and -Dtest-case manifests
byte-identical; all build variants and standalone package builds
green.
2026-07-30 06:42:31 +01:00
..
amd-gpus.md re-org docs 2026-07-23 00:25:34 +01:00
device-interrupts.md re-org docs 2026-07-23 00:25:34 +01:00
device-manager.md device-manager: data-driven driver matching via /etc/devices.csv 2026-07-26 16:43:13 +01:00
devices-csv.md docs: commit the new-driver checklist, step 2 rewritten for packages 2026-07-30 04:41:41 +01:00
display-plan.md docs: catch the build docs up with the package split 2026-07-26 23:12:14 +01:00
display-v2-plan.md docs: catch the build docs up with the package split 2026-07-26 23:12:14 +01:00
display-v2.md re-org docs 2026-07-23 00:25:34 +01:00
display.md docs: catch the docs up with the finished package split 2026-07-30 04:24:34 +01:00
driver-model.md build: exact per-binary imports — the pre-wired default set is gone 2026-07-30 06:42:31 +01:00
drivers.md re-org docs 2026-07-23 00:25:34 +01:00
input.md re-org docs 2026-07-23 00:25:34 +01:00
intel-igpu.md re-org docs 2026-07-23 00:25:34 +01:00
ipc.md re-org docs 2026-07-23 00:25:34 +01:00
new-driver-checklist.md build: exact per-binary imports — the pre-wired default set is gone 2026-07-30 06:42:31 +01:00
nvidia-gpus.md re-org docs 2026-07-23 00:25:34 +01:00
usb-hub.md re-org docs 2026-07-23 00:25:34 +01:00