- Timestamp:
-
04/15/18 23:59:37 (6 years ago)
- Author:
-
Chris Johns
- Comment:
-
Add a generic build from GIT example.
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v6
|
v7
|
|
7 | 7 | 1. [wiki:OpenOCD/TMS570 Texas Instruments TMS570/TMS570LS3137] |
8 | 8 | 1. [wiki:OpenOCD/Raspberry_Pi Raspberry Pi] |
| 9 | |
| 10 | = Building OpenOCD from GIT = |
| 11 | |
| 12 | The following is a quick example detailing how to build OpenOCD from GIT. Please refer to the OpenOCD documentation for any further detail and specific help. |
| 13 | |
| 14 | {{{ |
| 15 | $ git clone git://repo.or.cz/openocd.git openocd.git |
| 16 | $ cd openocd.git |
| 17 | $ ./bootstrap |
| 18 | $ cd .. |
| 19 | $ mkdir build |
| 20 | $ cd build |
| 21 | $ ../openocd.git/configure --enable-maintainer-mode --enable-ftdi --disable-werror --prefix=/opt/work/openocd |
| 22 | $ gmake -j 8 |
| 23 | $ gmake install |
| 24 | }}} |
| 25 | |
| 26 | '''Notes:''' |
| 27 | 1. The prefix `/opt/work/openocd` if just an example path, select a suitable local path for your host. |
| 28 | 1. On FreeBSD the `--disable-werror` option needs to be used to disable warnings being treated as errors. |
| 29 | 1. You need `--enable-ftdi` option is need to support the Flyswatter2 pod. Other pod may require other options. |