Ensure partitions.csv exists (create default if missing).
(self, output_dir: Path, copied: list[str])
| 263 | copied.append(FILE_NAMES.SPIFFS) |
| 264 | |
| 265 | def _ensure_partitions_csv(self, output_dir: Path, copied: list[str]) -> None: |
| 266 | """Ensure partitions.csv exists (create default if missing).""" |
| 267 | if self.artifacts.partitions_csv: |
| 268 | shutil.copy2( |
| 269 | self.artifacts.partitions_csv, output_dir / FILE_NAMES.PARTITIONS_CSV |
| 270 | ) |
| 271 | copied.append(FILE_NAMES.PARTITIONS_CSV) |
| 272 | else: |
| 273 | (output_dir / FILE_NAMES.PARTITIONS_CSV).write_text(DEFAULT_PARTITIONS_CSV) |
| 274 | copied.append(f"{FILE_NAMES.PARTITIONS_CSV} (default)") |
| 275 | |
| 276 | def _create_default_boot_app0(self, output_dir: Path) -> None: |
| 277 | """Create a default boot_app0.bin file.""" |