zephyr/boards/common/nios2.board.cmake
Marti Bolivar 1717332c7a cmake: add helpers for setting board runners
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>
2019-06-07 13:43:51 +02:00

10 lines
252 B
CMake

# SPDX-License-Identifier: Apache-2.0
board_set_flasher_ifnset(nios2)
board_set_debugger_ifnset(nios2)
board_finalize_runner_args(nios2
# TODO: merge this script into nios2.py
"--quartus-flash=${ZEPHYR_BASE}/scripts/support/quartus-flash.py"
)