Search code examples
gccbinutilsnetbsd

How to build binutils for a specific target


I'm trying to configure binutils for an ARM processor, specifically the ARMv5TE. The processor is the Marvell 88F5281. Presently the device is running NetBSD, so I want to make sure I configure binutils for the right target arch / OS.

Is there a way to list a combination of targets / OSes when configuring binutils?

So far I found, arm-*-netbsdelf from the following page, http://gcc.gnu.org/install/specific.html#arm-x-eabi

But I am still wondering if there is a list of targets / OSes when I run the configure script from the command line.


Solution

  • A good place to start might be the NetBSD build.sh, which is designed to build a complete cross compiler toolset for a NetBSD target on a POSIX host.

    • Download and extract the source tree for the NetBSD version your target is running
    • Run './build.sh -m evbarm tools'
    • When completed it should tell you where to find built binutils and cross compiler

    Note - if the target is bigendian you will need to use evbarm-eb in the build.sh command.