doc: board_porting: add link to west flash/debug info

Makes this page a little more visible to porters.

Suggested-by: Lucian Copeland <hierophect@gmail.com>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-03-02 12:29:23 -08:00 committed by Johan Hedberg
commit f2469ce576

View file

@ -173,3 +173,18 @@ peripherals should be disabled by default.
- Enable all GPIO ports.
- If available, enable pinmux and interrupt controller drivers.
Flash and debug support
***********************
Zephyr supports :ref:`west-build-flash-debug` via west extension commands.
To add ``west flash`` and ``west debug`` support, you need to add a
:file:`board.cmake` file to your board directory which configures a "runner"
for your board. (There's nothing special you need to do to get ``west build``
support for your board.)
If you're using one of the :ref:`debug-host-tools` that Zephyr already
supports, this should only be a few lines of code. See the flashing and
debugging page for more details, and look at :file:`board.cmake` files for
other boards which support your runner for examples.