mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-04 08:21:57 +00:00
This helps by letting us add checks for when the runner has already been set. There is documentation saying you can set -DBOARD_DEBUG_RUNNER at the command line and have it take effect, which turns out not to be true for a large number of boards. A status message helps the user debug. (We'll address the existing in-tree boards in the next patch.) Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>
22 lines
519 B
CMake
22 lines
519 B
CMake
#
|
|
# Copyright (c) 2018, NXP
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set_ifndef(OPENSDA_FW jlink)
|
|
|
|
if(OPENSDA_FW STREQUAL jlink)
|
|
board_set_debugger_ifnset(jlink)
|
|
board_set_flasher_ifnset(jlink)
|
|
elseif(OPENSDA_FW STREQUAL daplink)
|
|
board_set_debugger_ifnset(pyocd)
|
|
board_set_flasher_ifnset(pyocd)
|
|
endif()
|
|
|
|
board_runner_args(pyocd "--target=cortex_m")
|
|
board_runner_args(jlink "--device=MIMXRT1064")
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|