A board lists firmware_tools in its runtime payload: each stages
firmware the board extracted beforehand under the Data addon's
firmware/ prefix and reports what it staged.
A board that needs its own build of a system daemon ships it in the addon's sbin. When /private/var/ngpu/sbin exists the kernel shows it read-only over /usr/sbin as a union, so the system's launchd jobs start the board's builds by their usual paths. The runtime builder merges no launchd cache for a Bluetooth runtime without job overrides. sheng uses both for Bluetooth on macOS. The image builds; not run on hardware yet.
The addon carries unixnu-absentd, which takes a denied daemon's Mach services and closes every connection, and .skipbuddy in the user template so a new account's first login goes to the desktop. UNIXNU_MACOS_TEST stages opt-in test scripts.
launchd's mount-phase-1 and mount-phase-2 boot tasks run apfs_boot_util to
mount the role volumes of the root container and create the VM volume. The
root container here is the unchanged, owner-verified OS image: it holds
the System volume only and cannot be written, so the boot stopped. The
kernel mounts Data itself and the other role volumes do not exist.
With apfs-boot-shim=1 the kernel binds /private/var/ngpu/bootshim over
apfs.fs/Contents/Resources after the Data mount. build-boot-runtime.py
builds the owner apfs_boot_util (every phase has nothing to mount),
signs it ad hoc with 4 KiB pages and packs it into the runtime addon
when the request sets boot_shims.
make-macos-data-seed.py builds the first-install Data volume from the system volume's /System/Library/Templates/Data as root, keeping owners, modes and flags. Files outside private/, Users/, Library/Preferences/ and Library/Keychains/ link to the template so the seed fits the payload. runtime.py prints the sudo command when the seed is missing, and payload.runtime.gpu_addon = false builds the trust bundle without an addon.
The audio overlay hides the system's HAL plug-in directory. Copy each plug-in listed in audio_system_plugins from the OS image into the overlay unchanged, and keep its Apple signature out of the host's strict check.
Stage the signed supplicant, launchd cache and hash-pinned firmware through the existing Data addon and trust bundle. Compile the BSD firmware reader and preserve original jobs, trust modules and Data identity.
Validation: kernel, payload and boot-image builds and packed signatures, firmware hashes and preserved inputs pass verification.