Simplify OpenOCD install instructions for macOS
OpenOCD 0.10.0 is now available in Homebrew, so the macOS installation
instructions can be considerably simplified and streamlined.
See: https://github.com/Homebrew/homebrew-core/blob/master/Formula/open-ocd.rb
diff --git a/docs/get_started/native_install/cross_tools.rst b/docs/get_started/native_install/cross_tools.rst
index 54317e7..458eb01 100644
--- a/docs/get_started/native_install/cross_tools.rst
+++ b/docs/get_started/native_install/cross_tools.rst
@@ -109,29 +109,20 @@
Installing OpenOCD on Mac OS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#. Download the `binary tarball for Mac
- OS <https://github.com/runtimeco/openocd-binaries/raw/master/openocd-bin-0.10.0-MacOS.tgz>`__.
+#. Install OpenOCD from Homebrew:
-#. Change to the root directory:
+.. code-block:: console
- .. code-block:: console
+ $ brew update
+ $ brew install open-ocd
- $ cd /
-
-#. Untar the tarball and install into **/usr/local/bin**. You
- will need to replace **~/Downloads** with the directory that the
- tarball is downloaded to.
-
- .. code-block:: console
-
- $ sudo tar -xf ~/Downloads/openocd-bin-0.10.0-MacOS.tgz `
-
-#. Check the OpenOCD version you are using.
+#. Check the OpenOCD version you are using:
.. code-block:: console
$ which openocd
/usr/local/bin/openocd
+
$ openocd -v
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
@@ -140,15 +131,6 @@
You should see version: **0.10.0**.
- If you see one of these errors:
-
- - Library not loaded: /usr/local/lib/libusb-0.1.4.dylib - Run
- ``brew install libusb-compat``.
- - Library not loaded: /usr/local/opt/libftdi/lib/libftdi1.2.dylib - Run
- ``brew install libftdi``.
- - Library not loaded: /usr/local/lib/libhidapi.0.dylib - Run
- ``brew install hidapi``.
-
Installing OpenOCD on Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~