Skip to content

Commit 2ffeea7

Browse files
committed
sysbuild: nrf53bsim: Set defaults similar to 5340 soc
This commit sets defaults for the sysbuild configurations SUPPORT_NETCORE and NETCORE_REMOTE_BOARD_TARGET_CPUCLUSTER so that it behaves more similar to the actual 5340 soc. This allows us to remove explicit adding of network core images. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 5999ecf commit 2ffeea7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

sysbuild/Kconfig.netcore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ config EXTERNAL_CONFIGURED_NETCORE
1313

1414
config SUPPORT_NETCORE
1515
bool
16-
default y if (SOC_NRF5340_CPUAPP || SOC_NRF54H20_CPUAPP)
16+
default y if (SOC_NRF5340_CPUAPP || SOC_NRF54H20_CPUAPP || BOARD_NRF5340BSIM_NRF5340_CPUAPP)
1717

1818
config NETCORE_REMOTE_BOARD_TARGET_CPUCLUSTER
1919
string
20-
default "cpunet" if SOC_NRF5340_CPUAPP
20+
default "cpunet" if (SOC_NRF5340_CPUAPP || BOARD_NRF5340BSIM_NRF5340_CPUAPP)
2121
default "cpurad" if SOC_NRF54H20_CPUAPP
2222

2323
config NETCORE_REMOTE_DOMAIN

sysbuild/netcore.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,10 @@ if(SB_CONFIG_SUPPORT_NETCORE AND NOT SB_CONFIG_NETCORE_NONE AND DEFINED SB_CONFI
7474
endif()
7575

7676
set_property(GLOBAL PROPERTY PM_DOMAINS ${PM_DOMAINS})
77+
78+
if (SB_CONFIG_BOARD_NRF5340BSIM_NRF5340_CPUAPP)
79+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${SB_CONFIG_NETCORE_IMAGE_NAME})
80+
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${SB_CONFIG_NETCORE_IMAGE_NAME})
81+
native_simulator_set_final_executable(${DEFAULT_IMAGE})
82+
endif()
7783
endif()

0 commit comments

Comments
 (0)