mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Specifying the final boot2 source file as a link library here causes the final `.elf` to be linked directly with that `.S`, which causes it to be compiled into an object file with a name like `/tmp/<random chars>.o`. This temporary object name is embedded in the final `.elf`, so the `.elf`'s contents change after each link even if none of the input files change, breaking reproducibility. Fix the issue by specifying the source file as the source for an object-only library, then specifying the library's object files as the target link libraries, so the source is compiled in a separate step and only the object is passed to the linker. |
||
|---|---|---|
| .. | ||
| boot_stage2 | ||
| hardware_regs | ||
| hardware_structs | ||
| pico_platform | ||
| README.md | ||
| rp2040_interface_pins.json | ||
This directory contains files specific to the RP2040 hardware. It is only used when building for the RP2040 platforms i.e. PICO_PLATFORM=rp2040
hardware_regs contains low level hardware register #defines autogenerated from the RP2040 chip definition itself.
hardware_structs contains C structures for accessing memory mapped registers