An easy-to-use all-in-one cross compiler for the Raspberry Pi 3.
This project is available as cogilvie/docker-raspberry-pi-cross-compiler on GitHub.
Please raise any issues on the GitHub issue tracker.
- The gcc-linaro-arm-linux-gnueabihf-raspbian-x64 toolchain from raspberrypi/tools
- Raspbian sysroot from raspberrypi.org 🆕
build the image from the root dir this is required to correctly add the patches to the container
eg.
docker build . -t cogilvie/docker-raspberry-pi-cross-compiler:latest
The image works with vscode Remote development
To add new features to the sysroot
FROM cogilvie/raspberry-pi-cross-compiler
RUN chroot $SYSROOT /bin/sh -c '\
&& DEBIAN_FRONTEND=noninteractive apt-get -y install <your libs>'
#fix symlincs for cross compiling
RUN $RPXC_ROOT/sysroot-relativelinks.py $SYSROOT