Record bootloader hooks from the configured build, make config name sets immutable, never delete an entry on a transient read error

This commit is contained in:
J. Nick Koston
2026-09-30 03:59:04 +02:00
parent 53d67aec68
commit 85fc70186f
6 changed files with 207 additions and 145 deletions
+1 -1
View File
@@ -184,10 +184,10 @@ def _bootloader_parity(build_path: Path) -> list[str]:
# pylint: disable=protected-access
from esphome.espidf import bootloader, toolchain
bin_path = build_path / "build" / "bootloader" / "bootloader.bin"
if not bootloader.tree_uses_cached_bootloader(build_path / "build"):
print("note: tree not in cached mode; bootloader parity not exercised")
return []
bin_path = build_path / "build" / "bootloader" / "bootloader.bin"
cached = bin_path.read_bytes()
bin_path.unlink() # the rebuild must produce it, never compare to itself
os.environ[bootloader.BOOTLOADER_CACHE_ENV] = "0"