Re: [Balloon] Cross-Compiling Question for Balloon 3.0

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Laurence Withers
Date:  
To: balloon
Subject: Re: [Balloon] Cross-Compiling Question for Balloon 3.0
On Wednesday 23 January 2008, Purcell, Ty wrote:
> I am trying to determine how to cross compile a test program that
> will run as ROM-Able code on the Balloon board.  I am using
> toolchains built with the crosstool-0.43 utility found at
> http://kegel.com/crosstool/.  What arguments should I pass GCC?  I
> have searched the web and have not been able to locate any clear
> guidance.


If you've built a toolchain with crosstool, ensure the generated tools
are in your PATH and then simply run them as you would normally:

arm-softfloat-linux-gnu-gcc -o test test.c

etc.

Your machine name may differ depending on what you built with crosstool
but arm-softfloat-linux-gnu is what I'm using for balloon2.

The above will let you build executables that will run under Linux,
though you'll need to make sure the shared libraries being used by
crosstool match those on the balloon (or I suppose you could
add -static).

The crosstool toolchain is also sufficient for compiling a replacement
kernel (export ARCH="arm" CROSS_COMPILE="arm-softfloat-linux-gnu-").

Bye for now,
-- 
Laurence Withers, <>  --  jabber:
http://www.lwithers.me.uk/                             tel:+447753988197