Cross Compiling

From WebOS Internals
Jump to navigation Jump to search


An easy way to setup a cross-compilation environment on Linux is to set up Optware. See for details. If you want to contribute to Optware, just ask for commit access with your first contribution.

Linux: CodeSourcery chain found here.


MacPorts package: arm-none-linux-gnueabi-gcc

Make sure your MacPorts is up to date.

sudo port selfupdate
sudo port upgrade outdated

Make a change to the arm-none-linux-gnueabi-gcc Portfile in:


And make line 62 read:    "cc -no-cpp-precomp -I${prefix}/include"

Finally, install the tools:

sudo port install arm-none-linux-gnueabi-gcc

Should work.

Another way to get some cross toolchains:


Windows: CodeSourcery chain found here.

Specifically the 2007q3-51 release, but newer releases may work.