Skip to content

Commit

Permalink
native SOC: Add option to define how many MCUs a SOC has
Browse files Browse the repository at this point in the history
Add a new Kconfig option to define how many MCUs a SOC has

Signed-off-by: Alberto Escolar Piedras <[email protected]>
  • Loading branch information
aescolar committed Sep 29, 2023
1 parent c7f85e6 commit dd29dff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/posix/common/natsim_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ set(nsi_config_content
"NSI_LINK_OPTIONS:=$<JOIN:$<TARGET_PROPERTY:native_simulator,INTERFACE_LINK_OPTIONS>,\ >"
"NSI_EXTRA_LIBS:=$<JOIN:$<TARGET_PROPERTY:native_simulator,RUNNER_LINK_LIBRARIES>,\ >"
"NSI_PATH:=${NSI_DIR}/"
"NSI_N_CPUS:=${CONFIG_NATIVE_SIMULATOR_NUMBER_MCUS}"
)

string(REPLACE ";" "\n" nsi_config_content "${nsi_config_content}")
Expand Down
8 changes: 8 additions & 0 deletions soc/posix/inf_clock/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ config NATIVE_SIMULATOR_CPU_N
This option is only applicable for targets which use the
native simulator as their runner.

config NATIVE_SIMULATOR_NUMBER_MCUS
int "Total number of MCUs this target has"
range 1 16
default 1
depends on NATIVE_LIBRARY
help
How many AMP MCUs does this target have in total.

config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
int "Which CPU is the primary/preferred"
default 0
Expand Down

0 comments on commit dd29dff

Please sign in to comment.