From: <zw...@ma...> - 2009-07-09 00:26:40
|
Author: zwelch Date: 2009-07-09 00:26:36 +0200 (Thu, 09 Jul 2009) New Revision: 2502 Modified: trunk/README Log: Add section to provide some documentation for cross-compiling. Modified: trunk/README =================================================================== --- trunk/README 2009-07-08 22:26:29 UTC (rev 2501) +++ trunk/README 2009-07-08 22:26:36 UTC (rev 2502) @@ -166,6 +166,29 @@ final (optional) step, ``make install'', places all of the files in the required location. +Cross-Compiling Options +----------------------- + +To cross-compile, you must specify both --build and --host options to +the 'configure' script. For example, you can configure OpenOCD to +cross-compile on a x86 Linux host to run on Windows (MinGW32), you could +use the following configuration options: + + ./configure --build=i686-pc-linux-gnu --host=i586-mingw32msvc ... + +Likewise, the following options allow OpenOCD to be cross-compiled for +an ARM target on the same x86 host: + + ./configure --build=i686-pc-linux-gnu --host=arm-elf ... + +Both must be specified to work around bugs in autoconf. + +Scripts for producing ARM cross-compilers can be found on the web with a +little searching. A script to produce an x86 Linux-hosted MinGW32 +cross-compiler can be downloaded from the following URL: + + http://www.mingw.org/wiki/LinuxCrossMinGW + Configuration Options --------------------- |