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

Function parse_autoload

general/scripts/size_report.py:166–177  ·  view source on GitHub ↗

Modules listed in /etc/modules (auto-loaded by S35modules at boot).

(overlay_dir: Path)

Source from the content-addressed store, hash-verified

164
165
166def parse_autoload(overlay_dir: Path) -> set[str]:
167 """Modules listed in /etc/modules (auto-loaded by S35modules at boot)."""
168 f = overlay_dir / "etc" / "modules"
169 if not f.exists():
170 return set()
171 names: set[str] = set()
172 for line in f.read_text().splitlines():
173 line = line.strip()
174 if not line or line.startswith("#"):
175 continue
176 names.add(line.split()[0])
177 return names
178
179
180def parse_builtin(target_dir: Path) -> tuple[str, list[str]]:

Callers 1

build_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected