cmake: emu: allow emulation to be OOT
Some emulation definition might be defined out of tree. Do not try to include them here, instead they will be included in the module tree defining them. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
6bbc1c8e62
commit
a1d1810e54
1 changed files with 6 additions and 2 deletions
|
@ -1712,10 +1712,14 @@ endif()
|
|||
|
||||
if(SUPPORTED_EMU_PLATFORMS)
|
||||
list(GET SUPPORTED_EMU_PLATFORMS 0 default_emu)
|
||||
add_custom_target(run DEPENDS run_${default_emu})
|
||||
if(EXISTS ${ZEPHYR_BASE}/cmake/emu/${default_emu}.cmake)
|
||||
add_custom_target(run DEPENDS run_${default_emu})
|
||||
endif()
|
||||
|
||||
foreach(EMU_PLATFORM ${SUPPORTED_EMU_PLATFORMS})
|
||||
include(${ZEPHYR_BASE}/cmake/emu/${EMU_PLATFORM}.cmake)
|
||||
if(EXISTS ${ZEPHYR_BASE}/cmake/emu/${EMU_PLATFORM}.cmake)
|
||||
include(${ZEPHYR_BASE}/cmake/emu/${EMU_PLATFORM}.cmake)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(TARGET debugserver_${default_emu})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue