Difference between revisions of "Cross Compiling"

From WebOS Internals
Jump to navigation Jump to search
(New page: An easy way to setup a cross-compilation environment on Linux is to set up Optware. See http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware for details. If you want to contribut...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
== Linux ==
 +
 
An easy way to setup a cross-compilation environment on Linux is to set up Optware.  See http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware for details.  If you want to contribute to Optware, just ask for commit access with your first contribution.
 
An easy way to setup a cross-compilation environment on Linux is to set up Optware.  See http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware for details.  If you want to contribute to Optware, just ask for commit access with your first contribution.
 +
 +
Linux: CodeSourcery chain found [http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3057 here].
 +
 +
== Mac OSX ==
  
 
MacPorts package: '''arm-none-linux-gnueabi-gcc'''
 
MacPorts package: '''arm-none-linux-gnueabi-gcc'''
Line 29: Line 35:
 
Should work.
 
Should work.
  
Windows/Linux: CodeSourcery chain found [http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3057 here].
 
 
Specifically the 2007q3-51 release, but newer releases may work.
 
  
 
Another way to get some cross toolchains:
 
Another way to get some cross toolchains:
 
http://www.ethernut.de/en/documents/cross-toolchain-osx.html
 
http://www.ethernut.de/en/documents/cross-toolchain-osx.html
 +
 +
== Windows ==
 +
 +
Windows: CodeSourcery chain found [http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3057 here].
 +
 +
Specifically the 2007q3-51 release, but newer releases may work.

Latest revision as of 22:41, 11 September 2011

Linux

An easy way to setup a cross-compilation environment on Linux is to set up Optware. See http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware for details. If you want to contribute to Optware, just ask for commit access with your first contribution.

Linux: CodeSourcery chain found here.

Mac OSX

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:

/opt/local/var/macports/sources/rsync.macports.org/release/ports/cross/arm-none-linux-gnueabi-gcc

And make line 62 read:

configure.cc    "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: http://www.ethernut.de/en/documents/cross-toolchain-osx.html

Windows

Windows: CodeSourcery chain found here.

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