diff --git a/CMakeLists.txt b/CMakeLists.txt index 49abc10cb1e..449a44a77e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -809,7 +809,10 @@ if(CONFIG_OUTPUT_PRINT_MEMORY_USAGE) target_link_libraries_ifdef(${check} zephyr_prebuilt ${option}) 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/usage) diff --git a/boards/posix/native_posix/board.cmake b/boards/posix/native_posix/board.cmake new file mode 100644 index 00000000000..c4a78fce884 --- /dev/null +++ b/boards/posix/native_posix/board.cmake @@ -0,0 +1 @@ +set(EMU_PLATFORM native) diff --git a/cmake/qemu/CMakeLists.txt b/cmake/emu/qemu.cmake similarity index 100% rename from cmake/qemu/CMakeLists.txt rename to cmake/emu/qemu.cmake