include($ENV{ZEPHYR_BASE}/boards/common/openocd.board.cmake)

set_ifndef(STLINK_FW stlink)

if(STLINK_FW STREQUAL jlink)
  board_runner_args(jlink "--device=stm32f070rb" "--speed=4000")
  include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
elseif(STLINK_FW STREQUAL stlink)
  include($ENV{ZEPHYR_BASE}/boards/common/openocd.board.cmake)
endif()

Add JLink tools for debug and download support
nucleo_f070rb: Add JLink tools for debug and download support

Segger provide a firmware makes the ST-LINK on-board compatible with
J-Link OB, allowing users to take advantage of most J-Link features
such as RTT(Real Time Transfer).

Signed-off-by: qianfan Zhao <0d01fab1932da5a147025f14dd5829cf5bf10d4d@163.com>
