2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-01-07 23:36:58 +08:00
|
|
|
find_program(
|
|
|
|
RENODE
|
|
|
|
renode
|
|
|
|
)
|
|
|
|
|
|
|
|
set(RENODE_FLAGS
|
|
|
|
--disable-xwt
|
2019-11-14 16:17:11 +08:00
|
|
|
--port -2
|
2019-01-07 23:36:58 +08:00
|
|
|
--pid-file renode.pid
|
|
|
|
)
|
|
|
|
|
2021-08-30 19:09:48 +08:00
|
|
|
add_custom_target(run_renode
|
2019-01-07 23:36:58 +08:00
|
|
|
COMMAND
|
|
|
|
${RENODE}
|
|
|
|
${RENODE_FLAGS}
|
|
|
|
-e '$$bin=@${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}\; include @${RENODE_SCRIPT}\; s'
|
|
|
|
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
|
2021-02-09 06:43:43 +08:00
|
|
|
DEPENDS ${logical_target_for_zephyr_elf}
|
2019-01-07 23:36:58 +08:00
|
|
|
USES_TERMINAL
|
|
|
|
)
|