A script to automate building a cross-compiler

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
Synon
Member
Member
Posts: 169
Joined: Sun Sep 06, 2009 3:54 am
Location: Brighton, United Kingdom

A script to automate building a cross-compiler

Post by Synon »

I've written and tested one.

If anyone's interested, you can get it here: http://pastebin.com/KGEjxCV2

Example:

Code: Select all

./build-xgcc arm-none-eabi
Will download, extract, build and install binutils and gcc targeting arm-none-eabi. There are options to download without building, build from existing archives, build one or the other instead of both, change the installation path (defaults to $HOME/opt/cross) and the versions (which default to 2.24 for binutils and 4.9.2 for gcc), and set configure options and makefile targets.

[edit] It doesn't fetch dependencies so you will need to install GMP etc. separately.
Adding that code shouldn't be difficult though.
Post Reply