native soc: Add option to pass extra images to native simulator build
Add a new kconfig option to be able to pass extra images to the native simulator build. So one can, for ex., use one application build to produce one core image, and at the same time have it produce the final link with the native simulator runner and the other MCU images. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
9fea8f5f6b
commit
536aee1e1a
2 changed files with 10 additions and 1 deletions
|
@ -13,7 +13,7 @@ set(nsi_config_content
|
|||
"NSI_BUILD_PATH:=${zephyr_build_path}/NSI"
|
||||
"NSI_CC:=${CCACHE} ${CMAKE_C_COMPILER}"
|
||||
"NSI_OBJCOPY:=${CMAKE_OBJCOPY}"
|
||||
"NSI_EMBEDDED_CPU_SW:=${zephyr_build_path}/${KERNEL_ELF_NAME}"
|
||||
"NSI_EMBEDDED_CPU_SW:=${zephyr_build_path}/${KERNEL_ELF_NAME} ${CONFIG_NATIVE_SIMULATOR_EXTRA_IMAGE_PATHS}"
|
||||
"NSI_EXE:=${zephyr_build_path}/${KERNEL_EXE_NAME}"
|
||||
"NSI_EXTRA_SRCS:=$<JOIN:$<TARGET_PROPERTY:native_simulator,INTERFACE_SOURCES>,\ >"
|
||||
"NSI_LINK_OPTIONS:=$<JOIN:$<TARGET_PROPERTY:native_simulator,INTERFACE_LINK_OPTIONS>,\ >"
|
||||
|
|
|
@ -28,3 +28,12 @@ config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
|||
This MCU will for example have its tests command line parameters presented
|
||||
without any prefix. Note that an MCU being primary does not imply it will be
|
||||
the first one to boot.
|
||||
|
||||
config NATIVE_SIMULATOR_EXTRA_IMAGE_PATHS
|
||||
string "Other cores images to include"
|
||||
depends on NATIVE_LIBRARY
|
||||
help
|
||||
This option can be used to provide the native simulator with other MCUs/Cores images which have
|
||||
been produced by either other Zephyr builds or different OS builds.
|
||||
So you can, for ex., use this application build produce one core image, and at the same time
|
||||
have it produce the final link with the native simulator runner and the other MCU images.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue