User Tools

Site Tools


building_with_a_free_toolchain

This is an old revision of the document!


Table of Contents

This worked for me, on OS X 10.6.8 with XCode 4 and Homebrew. Your mileage may vary.

TL;DR

curl -s https://github.com/matthiasr/summon-arm-toolchain/raw/master/summon-arm-toolchain | /bin/sh
git clone git://github.com/matthiasr/r0ket.git r0ket
cd r0ket/firmware
cp SECRETS SECRETS.release
PATH=$HOME/arm/bin:$PATH ./release-all

Toolchain

I adapted a Script for building a GNU binutils/GCC/Newlib/GDB toolchain. On OS X it relies on Homebrew for installing the build dependencies (patches for MacPorts and/or Fink support are welcome), on other systems you are on your own, but you probably only need to install the usual GCC dependencies (mpfr, gmp, libmpc and their development headers) and wget.

The script will build binutils, gcc, the newlib C library, gcc again and gdb into ~/arm by default.

r0ket firmware

Currently there is one issue with the mainline r0ket firmware; in some circumstances the linker for loadables fails to find some library functions gcc inserts on variable initialisations or something. I've found that linking with gcc instead fixes this problem. A fixed version is available from my repo for now.

building_with_a_free_toolchain.1313257742.txt.gz · Last modified: 2011/08/13 19:49 by matthiasr

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki