Copy all artifacts needed for QEMU testing.
(self, output_dir: Path, board_name: str)
| 210 | self.flash_config = flash_config |
| 211 | |
| 212 | def copy_for_qemu(self, output_dir: Path, board_name: str) -> bool: |
| 213 | """Copy all artifacts needed for QEMU testing.""" |
| 214 | output_dir.mkdir(parents=True, exist_ok=True) |
| 215 | |
| 216 | copied: list[str] = [] |
| 217 | |
| 218 | # Copy required files |
| 219 | if not self._copy_required_files(output_dir, copied): |
| 220 | return False |
| 221 | |
| 222 | # Copy optional files |
| 223 | self._copy_optional_files(output_dir, copied) |
| 224 | |
| 225 | # Ensure partitions.csv exists (required by tobozo QEMU) |
| 226 | self._ensure_partitions_csv(output_dir, copied) |
| 227 | |
| 228 | # Create merged flash image if artifacts are present |
| 229 | if self.artifacts.firmware: |
| 230 | self._create_flash_image(output_dir, board_name, copied) |
| 231 | |
| 232 | self._print_summary(output_dir, copied) |
| 233 | return True |
| 234 | |
| 235 | def _copy_required_files(self, output_dir: Path, copied: list[str]) -> bool: |
| 236 | """Copy required files for QEMU.""" |
no test coverage detected