rusty-pi icon indicating copy to clipboard operation
rusty-pi copied to clipboard

Compiling the compiler on OS X?

Open chrisballinger opened this issue 11 years ago • 1 comments

It seems like the RPi tools repo only works on Linux machines. Any ideas how I could build the cross-compiler on OS X?

chrisballinger avatar Nov 13 '14 00:11 chrisballinger

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:

  1. Install crosstool-ng (and other dependencies)
  2. Create two disk images, one to hold the source and the other to hold the output (crosstool requires a case-sensitive filesystem)
  3. Mount those images in the places where crosstool-ng expects them
  4. Configure ct-ng in the output filesytem - ct-ng armv6-rpi-linux-gnueabi
  5. ct-ng build to create the crosscompiler

https://gist.github.com/abl/974e6880e1873d86652c is my attempt to make a simple script to handle this.

abl avatar Jan 21 '15 20:01 abl