mirror of
https://github.com/esphome/esphome.git
synced 2026-10-17 03:32:50 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user