Closed vanfanel closed 8 years ago
By default it produces code that runs on both pi1 and pi2.
However nothing to stop you passing appropriate flags to produce a pi2 specific build flags (e.g. -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4
) which may be more optimal.
Will it also receive these flags if I use distcc on both the Pi and the compilation server to build?
That would be a question for distcc. I'm sure it's possible to pass arguments, but that's not related to this cross compiler.
Yes, you're right on that. Sorry, and thanks :)
Hi,
The CPU core on the Pi2 is a different family from the one in the original Raspberry Pi (2708 vs 2709) and the cross compiler in this repository seems to be tailored towards the Pi 1 CPU:
So you can see it's using Pi1 cpu compilation options/flags by default, uses the Pi1 FPU, etc...
Is there (or makes it sense) a Pi2 pre-built cross-compiler? This one has been SO useful to me thee years on the Pi1 for distcc... And building my own is normally a painful process prone to failures with crosstool-ng.