MCPcopy Create free account
hub / github.com/FastLED/FastLED / _create_dummy_elf

Function _create_dummy_elf

ci/util/bin_2_elf.py:299–324  ·  view source on GitHub ↗

Create a dummy ELF file using the specified linker script and dummy object file. Args: ld_path (Path): Path to the ld executable. linker_script (Path): Path to the linker script. dummy_obj (Path): Path to the dummy object file. output_elf (Path): Path to the

(
    ld_path: Path, linker_script: Path, dummy_obj: Path, output_elf: Path, platform: str
)

Source from the content-addressed store, hash-verified

297
298
299def _create_dummy_elf(
300 ld_path: Path, linker_script: Path, dummy_obj: Path, output_elf: Path, platform: str
301):
302 """
303 Create a dummy ELF file using the specified linker script and dummy object file.
304
305 Args:
306 ld_path (Path): Path to the ld executable.
307 linker_script (Path): Path to the linker script.
308 dummy_obj (Path): Path to the dummy object file.
309 output_elf (Path): Path to the output ELF file.
310 platform (str): Target platform.
311 """
312 print(f"Creating {platform} dummy ELF file...")
313
314 command = [
315 str(ld_path),
316 str(dummy_obj),
317 "-T",
318 str(linker_script),
319 "-o",
320 str(output_elf),
321 ]
322
323 print(f"Creating {platform} dummy ELF file: {output_elf}")
324 _run_command(command, show_output=True)
325
326
327def _update_elf_sections(

Callers 1

bin_to_elfFunction · 0.85

Calls 2

_run_commandFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected