mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 04:02:31 +00:00
The current method of setting the openocd runner arguments works for direct invocation from the command line, but the values that are written to the CMake cache are not properly separated and are difficult to parse, due to the fact that in several cases, option values contain spaces. Adjust these runner arguments so that the options and their values are separate list items. This makes it possible to parse them accurately from the CMake cache. No functional changes. Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
12 lines
350 B
CMake
12 lines
350 B
CMake
if(DEFINED ENV{ZEPHYR_FLASH_OVER_DFU})
|
|
set(BOARD_FLASH_RUNNER dfu-util)
|
|
endif()
|
|
|
|
set(BOARD_DEBUG_RUNNER openocd)
|
|
|
|
board_runner_args(dfu-util "--pid=8087:0aba" "--alt=x86_app")
|
|
board_runner_args(openocd --cmd-pre-load "targets 1")
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake)
|