22 lines
537 B
CMake
22 lines
537 B
CMake
#
|
|
# Copyright (c) 2018, NXP
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set_ifndef(OPENSDA_FW jlink)
|
|
|
|
if(OPENSDA_FW STREQUAL jlink)
|
|
set_ifndef(BOARD_DEBUG_RUNNER jlink)
|
|
set_ifndef(BOARD_FLASH_RUNNER jlink)
|
|
elseif(OPENSDA_FW STREQUAL daplink)
|
|
set_ifndef(BOARD_DEBUG_RUNNER pyocd)
|
|
set_ifndef(BOARD_FLASH_RUNNER 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)
|