Commit 7ce9615a authored by Anas Nashif's avatar Anas Nashif
Browse files

nsim: add run target



Support 'make run' with this target rather than using 'flash' which
might be confusing.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 4a9f3e63
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
set(EMU_PLATFORM nsim)

set(BOARD_FLASH_RUNNER arc-nsim)
set(BOARD_DEBUG_RUNNER arc-nsim)

cmake/emu/nsim.cmake

0 → 100644
+21 −0
Original line number Diff line number Diff line
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
  )