zephyr/cmake/emu/tsim.cmake
Filip Kokosinski 94428044e2 cmake: support multiple entries in board.cmake
Currently there is no way to support running a board on multiple
emulation platforms nor to choose a desired emulation platform for the
simulation to be run on. This commit introduces a new
SUPPORTED_EMU_PLATFORMS list, which defines available emulation
platforms for a given board.

Fixes #12375.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2021-11-12 21:33:42 -05:00

14 lines
268 B
CMake

# SPDX-License-Identifier: Apache-2.0
set(TSIM_FLAGS -e run -e exit)
add_custom_target(run_tsim
COMMAND
${TSIM}
${TSIM_SYS}
${TSIM_FLAGS}
${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
USES_TERMINAL
)