Changes between Version 6 and Version 7 of Debugging/OpenOCD


Ignore:
Timestamp:
Apr 15, 2018, 11:59:37 PM (15 months ago)
Author:
Chris Johns
Comment:

Add a generic build from GIT example.

Legend:

Unmodified
Added
Removed
Modified
  • Debugging/OpenOCD

    v6 v7  
    771. [wiki:OpenOCD/TMS570 Texas Instruments TMS570/TMS570LS3137]
    881. [wiki:OpenOCD/Raspberry_Pi Raspberry Pi]
     9
     10= Building OpenOCD from GIT =
     11
     12The 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.