renode.cmake 419 B

12345678910111213141516171819202122
  1. # SPDX-License-Identifier: Apache-2.0
  2. find_program(
  3. RENODE
  4. renode
  5. )
  6. set(RENODE_FLAGS
  7. --disable-xwt
  8. --port -2
  9. --pid-file renode.pid
  10. )
  11. add_custom_target(run
  12. COMMAND
  13. ${RENODE}
  14. ${RENODE_FLAGS}
  15. -e '$$bin=@${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}\; include @${RENODE_SCRIPT}\; s'
  16. WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
  17. DEPENDS ${logical_target_for_zephyr_elf}
  18. USES_TERMINAL
  19. )