FirmwareImageCache

Content-hash cache of compiled firmware images.

Declared in src/libs/libfirmware/firmware/FirmwareImageCache.hpp
Group firmware

Detailed description

Persistent on-disk cache keyed on SHA-256 of: 1. source bytes 2. canonical boardName 3. LLVM revision token (from libllvm) 4. toolchain revision token (from libtoolchain) 5. optimization level

A second `compile()` call with the same key returns the cached `FirmwareImage` without re-running clang/lld. LRU eviction respects a configurable byte budget (default 64 MB).

Multi-process safe via per-cache QLockFile on `index.json`.

See also FirmwareBuildManager, FirmwareImage.

In this section