MCPcopy Create free account
hub / github.com/OpenIPC/firmware / is_buildroot_strip

Function is_buildroot_strip

general/scripts/size_report.py:62–66  ·  view source on GitHub ↗

True if `rel` looks like something Buildroot's default finalize removes.

(rel: str)

Source from the content-addressed store, hash-verified

60
61
62def is_buildroot_strip(rel: str) -> bool:
63 """True if `rel` looks like something Buildroot's default finalize removes."""
64 if rel.endswith(BR_STRIP_SUFFIXES):
65 return True
66 return rel.startswith(BR_STRIP_PREFIXES)
67
68
69def env(name: str, *, required: bool = True, default: str | None = None) -> str:

Callers 1

build_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected