1# Copyright (c) 2022 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4board_set_flasher_ifnset(intel_cyclonev)
5board_set_debugger_ifnset(intel_cyclonev)
6
7if(OPENOCD_USE_LOAD_IMAGE)
8  set_ifndef(OPENOCD_FLASH load_image)
9else()
10  set_ifndef(OPENOCD_FLASH "flash write_image erase")
11endif()
12
13set(OPENOCD_CMD_LOAD_DEFAULT "${OPENOCD_FLASH}")
14set(OPENOCD_CMD_VERIFY_DEFAULT "verify_image")
15
16board_finalize_runner_args(intel_cyclonev
17  --cmd-load "${OPENOCD_CMD_LOAD_DEFAULT}"
18  --cmd-verify "${OPENOCD_CMD_VERIFY_DEFAULT}"
19  )
20