OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 4:46 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: A script to automate building a cross-compiler
PostPosted: Fri May 29, 2015 7:32 am 
Offline
Member
Member

Joined: Sun Sep 06, 2009 3:54 am
Posts: 169
Location: Brighton, United Kingdom
I've written and tested one.

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

Example:
Code:
./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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 125 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group