summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-07-08 22:26:36 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-07-08 22:26:36 +0000
commiteaa895a0b25a934be19ff7ed1cf7e37d19a989cc (patch)
tree18ce655ca0526eb59e633839faefbdabdc711602 /README
parentadae530eb742348a2f41f1bb40aa3d7f7555927b (diff)
downloadopenocd+libswd-eaa895a0b25a934be19ff7ed1cf7e37d19a989cc.tar.gz
openocd+libswd-eaa895a0b25a934be19ff7ed1cf7e37d19a989cc.tar.bz2
openocd+libswd-eaa895a0b25a934be19ff7ed1cf7e37d19a989cc.tar.xz
openocd+libswd-eaa895a0b25a934be19ff7ed1cf7e37d19a989cc.zip
Add section to provide some documentation for cross-compiling.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2502 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'README')
-rw-r--r--README23
1 files changed, 23 insertions, 0 deletions
diff --git a/README b/README
index ba42d01e..537bb0cb 100644
--- a/README
+++ b/README
@@ -166,6 +166,29 @@ will build OpenOCD and place the final executable in ./src/. The
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
---------------------