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:
parent
6b55598ad4
commit
c15d3c9126
3 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
|
|
1
boards/posix/native_posix/board.cmake
Normal file
1
boards/posix/native_posix/board.cmake
Normal file
|
@ -0,0 +1 @@
|
||||||
|
set(EMU_PLATFORM native)
|
Loading…
Add table
Add a link
Reference in a new issue