mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 12:35:25 +00:00
[ci] Add LibreTiny (BK72XX) to memory impact analysis (#12983)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -92,18 +92,23 @@ def run_detailed_analysis(build_dir: str) -> dict | None:
|
||||
print(f"Build directory not found: {build_dir}", file=sys.stderr)
|
||||
return None
|
||||
|
||||
# Find firmware.elf
|
||||
# Find firmware.elf (or raw_firmware.elf for LibreTiny)
|
||||
elf_path = None
|
||||
for elf_candidate in [
|
||||
build_path / "firmware.elf",
|
||||
build_path / ".pioenvs" / build_path.name / "firmware.elf",
|
||||
# LibreTiny uses raw_firmware.elf
|
||||
build_path / "raw_firmware.elf",
|
||||
build_path / ".pioenvs" / build_path.name / "raw_firmware.elf",
|
||||
]:
|
||||
if elf_candidate.exists():
|
||||
elf_path = str(elf_candidate)
|
||||
break
|
||||
|
||||
if not elf_path:
|
||||
print(f"firmware.elf not found in {build_dir}", file=sys.stderr)
|
||||
print(
|
||||
f"firmware.elf/raw_firmware.elf not found in {build_dir}", file=sys.stderr
|
||||
)
|
||||
return None
|
||||
|
||||
# Find idedata.json - check multiple locations
|
||||
|
||||
Reference in New Issue
Block a user