mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 03:06:17 +00:00
* current supported boards: * emsk, iotdk, nsim, emsdp, hsdk. * for the unsupported future boards, pls take a reference of supported boards' board.cmake. * mdb runner is required and the default runner for SMP case, e.g., HSDK and nsim_hs_smp. * other ARC boards can also choose to use mdb by setting runner as mdb, e.g. west flash --runner mdb. * with mdb runner, user can make a debug through mdb gui * with arc_nsim or opencod runner (default runner), user can make a debug through gdb cmdline. Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
28 lines
831 B
CMake
28 lines
831 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(${CONFIG_SOC_NSIM_HS_SMP})
|
|
set(EMU_PLATFORM mdb)
|
|
else()
|
|
set(EMU_PLATFORM nsim)
|
|
endif()
|
|
|
|
if(NOT CONFIG_SOC_NSIM_HS_SMP)
|
|
board_set_flasher_ifnset(arc-nsim)
|
|
board_set_debugger_ifnset(arc-nsim)
|
|
endif()
|
|
|
|
if(${CONFIG_SOC_NSIM_EM})
|
|
board_runner_args(arc-nsim "--props=nsim_em.props")
|
|
board_runner_args(mdb "--nsim_args=mdb_em.args")
|
|
elseif(${CONFIG_SOC_NSIM_SEM})
|
|
board_runner_args(arc-nsim "--props=nsim_sem.props")
|
|
board_runner_args(mdb "--nsim_args=mdb_sem.args")
|
|
elseif(${CONFIG_SOC_NSIM_HS})
|
|
board_runner_args(arc-nsim "--props=nsim_hs.props")
|
|
board_runner_args(mdb "--nsim_args=mdb_hs.args")
|
|
elseif(${CONFIG_SOC_NSIM_HS_SMP})
|
|
board_runner_args(mdb "--cores=2" "--nsim_args=mdb_hs_smp.args")
|
|
endif()
|
|
|
|
board_finalize_runner_args(arc-nsim)
|
|
include(${ZEPHYR_BASE}/boards/common/mdb.board.cmake) |