[ci] Add LibreTiny (BK72XX) to memory impact analysis (#12983)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2026-01-05 07:40:49 -10:00
committed by GitHub
parent e87a3b3916
commit 6aaaae5d0e
3 changed files with 103 additions and 8 deletions

View File

@@ -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