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