From 425ed971992c32c5689c562087032b90174ae3a8 Mon Sep 17 00:00:00 2001 From: Mike Lapinsky Date: Wed, 12 Feb 2014 14:18:01 -0800 Subject: [PATCH] openocd: CMSIS DAP support (for HEAD) Closes Homebrew/homebrew#26672. Signed-off-by: Adam Vandenberg --- Formula/open-ocd.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/open-ocd.rb b/Formula/open-ocd.rb index 4f0a7c3d52..6aceea4efb 100644 --- a/Formula/open-ocd.rb +++ b/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?