Raspberry Pi cross-compiler toolchain which contains:
Name | Version |
---|---|
GCC | 12.2.0 |
glibc | 2.36 |
Binutils | 2.40 |
GDB | 10.2 |
- Host OS: any x64 Linux machine
- Target OS: Raspberry Pi OS Bookworm 64-bit
- Build Docker image:
docker build -t cross-pi-gcc docker
- Build cross-compiler toolchain:
docker run -it --rm -v ~/out:/out cross-pi-gcc -c ./build.sh
Note: The cross-gcc-12.2.0-pi_64.tar.gz
file will saved to ~/out
directory.