PDA

View Full Version : Building arm-none-eabi-gcc from scratch



FreedomFighter
31st October 2017, 02:13 AM
Hi all,

I know that Fedora ships a pre-built ARM cross compilation toolchain. I want to build that chain myself on Gentoo. To do so, I want to follow the same steps Fedora maintainers follow. But how do I do that? Where do I find the tools they use to make that happen?

Many thanks.

HaydnH
31st October 2017, 01:47 PM
It's not quite as simple as installing a one size fits all cross compiler. You need to know what architecture, abi etc your target requires, you say you want arm-none-eabi-gcc based on the Fedora standard one but, for example, are you sure eabi is correct? You'll probably want to research the target first before spending a lot of time compiling your cross compiler toolchain.

There's some good info here:

https://embeddedworlddevelopers.blogspot.co.uk/2017/05/how-to-cross-compile-for-arm.html

FreedomFighter
31st October 2017, 05:27 PM
HaydnH, thanks a lot for the lead. I need to program a bare metal NXP controller whose CPU is ARM7TDMI-S.