22 lines
417 B
CMake
22 lines
417 B
CMake
|
find_program(
|
||
|
NSIM
|
||
|
nsimdrv
|
||
|
)
|
||
|
|
||
|
if(${CONFIG_SOC_NSIM_EM})
|
||
|
set(NSIM_PROPS nsim.props)
|
||
|
elseif(${CONFIG_SOC_NSIM_SEM})
|
||
|
set(NSIM_PROPS nsim_sem.props)
|
||
|
endif()
|
||
|
|
||
|
add_custom_target(run
|
||
|
COMMAND
|
||
|
${NSIM}
|
||
|
-propsfile
|
||
|
${BOARD_DIR}/support/${NSIM_PROPS}
|
||
|
${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}
|
||
|
DEPENDS ${logical_target_for_zephyr_elf}
|
||
|
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
|
||
|
USES_TERMINAL
|
||
|
)
|