diff options
| author | Mike Lapinsky | 2014-02-12 14:18:01 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-04 21:56:44 -0800 |
| commit | 573c5efe2a3b83e4591abb3f1ab488b070db4b88 (patch) | |
| tree | be4a4d3e6e9102a292c640e35c89b49ca0f3a62a | |
| parent | 544367f0272f29e14b8e662eadbb722e9a4e4a10 (diff) | |
| download | homebrew-573c5efe2a3b83e4591abb3f1ab488b070db4b88.tar.bz2 | |
openocd: CMSIS DAP support (for HEAD)
Closes #26672.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/open-ocd.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/open-ocd.rb b/Library/Formula/open-ocd.rb index 4f0a7c3d5..6aceea4ef 100644 --- a/Library/Formula/open-ocd.rb +++ b/Library/Formula/open-ocd.rb @@ -8,9 +8,14 @@ class OpenOcd < Formula head do url 'git://git.code.sf.net/p/openocd/code' + option 'enable-cmsis-dap', 'Enable building support for devices using CMSIS-DAP' + depends_on :autoconf depends_on :automake depends_on :libtool + depends_on 'pkg-config' => :build + + depends_on 'hidapi' if build.include? 'enable-cmsis-dap' end option 'enable-ft2232_libftdi', 'Enable building support for FT2232 based devices with libftdi driver' @@ -50,6 +55,10 @@ class OpenOcd < Formula args << "--enable-presto_ftd2xx" end + if build.head? && build.include?("enable-cmsis-dap") + args << "--enable-cmsis-dap" + end + ENV['CCACHE'] = 'none' system "./bootstrap", "nosubmodule" if build.head? |
