Engineering notes

Yocto layer hygiene for long-running products

Products that live five or ten years on a single SoC line accumulate layers, forks, and “temporary” bbappend files. Without hygiene, every kernel bump feels like archaeology.

Signs you need a cleanup pass

  • Multiple layers override the same recipe with conflicting SRC_URI pins.
  • Your local.conf contains machine-specific hacks that should live in a distro or machine conf.
  • Nobody remembers which bbappend fixed the Wi-Fi regression in 2023.

What works in the field

Split board support (machine, kernel, device tree) from product policy (features, users, services). Pin upstream layers with explicit SHAs in a manifest or lock file your CI reads. Schedule a quarterly layer audit: remove dead recipes, merge duplicate appends, and document why each override exists.

Small discipline early saves weeks when you need CVE backports on an LTS kernel.

← All posts