cmake: cleanup qemu runner configuration
All runner logic was implemented in qemu.cmake, remove the generic stuff and make qemu.cmake qemu specific. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
e32a656962
commit
fd276aeb42
2 changed files with 174 additions and 178 deletions
|
@ -811,6 +811,14 @@ endif()
|
||||||
|
|
||||||
if(EMU_PLATFORM)
|
if(EMU_PLATFORM)
|
||||||
include($ENV{ZEPHYR_BASE}/cmake/emu/${EMU_PLATFORM}.cmake)
|
include($ENV{ZEPHYR_BASE}/cmake/emu/${EMU_PLATFORM}.cmake)
|
||||||
|
else()
|
||||||
|
add_custom_target(run
|
||||||
|
COMMAND
|
||||||
|
${CMAKE_COMMAND} -E echo
|
||||||
|
"==================================================="
|
||||||
|
"Emulation/Simulation not supported with this board."
|
||||||
|
"==================================================="
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(cmake/flash)
|
add_subdirectory(cmake/flash)
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
if(EMU_PLATFORM)
|
|
||||||
# TODO: Support more emulators
|
|
||||||
|
|
||||||
if("${ARCH}" STREQUAL "x86")
|
if("${ARCH}" STREQUAL "x86")
|
||||||
set_ifndef(QEMU_binary_suffix i386)
|
set_ifndef(QEMU_binary_suffix i386)
|
||||||
else()
|
else()
|
||||||
|
@ -179,12 +176,3 @@ if(EMU_PLATFORM)
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
|
||||||
add_custom_target(run
|
|
||||||
COMMAND
|
|
||||||
${CMAKE_COMMAND} -E echo
|
|
||||||
"==================================================="
|
|
||||||
"Emulation/Simulation not supported with this board."
|
|
||||||
"==================================================="
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue