rusty-pi
rusty-pi copied to clipboard
Compiling the compiler on OS X?
It seems like the RPi tools repo only works on Linux machines. Any ideas how I could build the cross-compiler on OS X?
The problem I'm hitting is that the recipe for the rPi compiler in crosstool-ng wants gdb-7.8 and the sources it has listed no longer host it.
The steps are pretty simple:
- Install crosstool-ng (and other dependencies)
- Create two disk images, one to hold the source and the other to hold the output (crosstool requires a case-sensitive filesystem)
- Mount those images in the places where crosstool-ng expects them
- Configure ct-ng in the output filesytem -
ct-ng armv6-rpi-linux-gnueabi ct-ng buildto create the crosscompiler
https://gist.github.com/abl/974e6880e1873d86652c is my attempt to make a simple script to handle this.