cmake: support other emulation platforms/runners

Right now we are hardcoded to only qemu, with the native port, we make
this more generic and support this in a plugin mode where a running has
its own cmake definitons implementing the various targets.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Anas Nashif 2017-11-21 18:54:55 -05:00 committed by Anas Nashif
commit c15d3c9126
3 changed files with 5 additions and 1 deletions

View file

@ -809,7 +809,10 @@ if(CONFIG_OUTPUT_PRINT_MEMORY_USAGE)
target_link_libraries_ifdef(${check} zephyr_prebuilt ${option}) target_link_libraries_ifdef(${check} zephyr_prebuilt ${option})
endif() endif()
add_subdirectory(cmake/qemu) if(EMU_PLATFORM)
include($ENV{ZEPHYR_BASE}/cmake/emu/${EMU_PLATFORM}.cmake)
endif()
add_subdirectory(cmake/flash) add_subdirectory(cmake/flash)
add_subdirectory(cmake/usage) add_subdirectory(cmake/usage)

View file

@ -0,0 +1 @@
set(EMU_PLATFORM native)