This project builds a custom version of the Arm GNU toolchain specifically for running Picolibc on the multicore RP2040 microcontroller.
Based on the script.
The standard GNU toolchain built by ARM is configured with --disable-tls. Because of this, Picolibc cannot be compiled using thread local storage (TLS), which prevents it being used in a multicore context on the dual-core RP2040 processor. This project rebuilds the GNU toolchain from sources, without disabling TLS, and then builds Picolibc using it.
cmake -B ./build
cmake --build ./build -j<n>
cmake --install ./build --prefix <path>
- n - number of parallel Make jobs
- path - path to install toolchain