Skip to content

Commit 33442f1

Browse files
sysbuild: use 'iron' board variant for the netcore image board
When building for the "IRONside compatible" nrf54h20 'iron' board variant on the application core, the 'iron' board variant must be used for the radio core image as well. Signed-off-by: Jonathan Nilsen <[email protected]>
1 parent 9a9de7c commit 33442f1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sysbuild/netcore.cmake

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ if(SB_CONFIG_SUPPORT_NETCORE AND NOT SB_CONFIG_NETCORE_NONE AND DEFINED SB_CONFI
1111
string(REPLACE "/" ";" split_board_qualifiers "${BOARD_QUALIFIERS}")
1212
list(GET split_board_qualifiers 1 target_soc)
1313
list(GET split_board_qualifiers 2 target_cpucluster)
14-
set(board_target_netcore "${BOARD}/${target_soc}/${SB_CONFIG_NETCORE_REMOTE_BOARD_TARGET_CPUCLUSTER}")
14+
list(LENGTH split_board_qualifiers split_board_qualifiers_length)
15+
if(split_board_qualifiers_length GREATER 3)
16+
list(GET split_board_qualifiers 3 target_variant_name)
17+
# This board variant must be used for the network core board as well.
18+
if((target_soc STREQUAL "nrf54h20") AND (target_variant_name STREQUAL "iron"))
19+
set(variant_suffix "/${target_variant_name}")
20+
endif()
21+
endif()
22+
set(board_target_netcore "${BOARD}/${target_soc}/${SB_CONFIG_NETCORE_REMOTE_BOARD_TARGET_CPUCLUSTER}${variant_suffix}")
1523
set(target_soc)
1624
set(target_cpucluster)
1725

0 commit comments

Comments
 (0)