mirror of
https://github.com/zephyrproject-rtos/zephyr.git
synced 2024-12-04 11:39:46 +08:00
877997e71f
The OPENSDA_FW and LPCLINK_FW cmake variables are remnants of pre-west days where we used an environment variable to set the desired debug host tool, such as jlink or pyocd, based on which debug probe firmware was loaded on the board. We now have two possible ways to do this, neither of which requires the nxp-specific OPENSDA_FW or LPCLINK_FW variables: 1. Set standardized cmake runner variables when generating the build system: $ west build -- -DBOARD_FLASH_RUNNER=jlink -DBOARD_DEBUG_RUNNER=jlink 2. Use the west "--runner" argument with the debug and flash commands: $ west debug -r jlink Remove the now unnecessary OPENSDA_FW ond LPCLINK_FW variables and update board documentation accordingly. A few boards (frdm_kw41z, hexiwear_k64, mimxrt10{20,50,60,64}_evk) reordered pyocd.board.cmake and jlink.board.cmake includes to preserve the default runner when OPENSDA_FW was not explicitly set. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
10 lines
360 B
CMake
10 lines
360 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
board_runner_args(jlink "--device=MK64FN1M0xxx12")
|
|
board_runner_args(pyocd "--target=k64f")
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/canopen.board.cmake)
|