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:
Anas Nashif 2017-12-21 16:45:45 -05:00 committed by Anas Nashif
commit fd276aeb42
2 changed files with 174 additions and 178 deletions

View file

@ -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)

View file

@ -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()