Skip to content

Commit 0cf409f

Browse files
committed
samples: simplify sysbuild kconfig
Replace board symbols with soc kconfigs Signed-off-by: Krzysztof Taborowski <[email protected]>
1 parent b56d926 commit 0cf409f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

samples/sid_end_device/Kconfig.sysbuild

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
config NRF_DEFAULT_IPC_RADIO
8-
default y if BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP
9-
107
choice BOOTLOADER
118
default BOOTLOADER_MCUBOOT
129
endchoice
1310

1411
if BOOTLOADER_MCUBOOT
1512

16-
# Downgrade prevention
1713
choice MCUBOOT_MODE
1814
default MCUBOOT_MODE_OVERWRITE_ONLY
1915
endchoice
@@ -25,9 +21,12 @@ config DFU_MULTI_IMAGE_PACKAGE_APP
2521
default y
2622

2723
config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
28-
default y if !BOARD_NRF54L15DK_NRF54L15_CPUAPP || !BOARD_NRF54L15DK_NRF54L15_CPUAPP_NS
24+
default y if !SOC_NRF54L15
25+
26+
if SOC_SERIES_NRF53X
2927

30-
if (BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP)
28+
config NRF_DEFAULT_IPC_RADIO
29+
default y
3130

3231
config MCUBOOT_UPDATEABLE_IMAGES
3332
default 2
@@ -48,17 +47,17 @@ config NETCORE_APP_UPDATE
4847
config DFU_MULTI_IMAGE_PACKAGE_NET
4948
default y
5049

51-
endif # (BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP)
50+
endif # SOC_SERIES_NRF53X
5251

53-
if (BOARD_NRF54L15DK_NRF54L15_CPUAPP || BOARD_NRF54L15DK_NRF54L15_CPUAPP_NS || BOARD_NRF54L15DK_NRF54L10_CPUAPP)
52+
if SOC_SERIES_NRF54LX
5453

5554
# TODO: NCSDK-28931: Cannot use fprotect twice, so disable it in MCUboot to
5655
# test protecting factory data. It can be enabled while there is a support
5756
# for protection more than one region.
5857
config MCUBOOT_FPROTECT_ALLOW_COMBINED_REGIONS
5958
default n
6059

61-
endif # (BOARD_NRF54L15DK_NRF54L15_CPUAPP || BOARD_NRF54L15DK_NRF54L15_CPUAPP_NS)
60+
endif # SOC_SERIES_NRF54LX
6261

6362
endif # BOOTLOADER_MCUBOOT
6463

0 commit comments

Comments
 (0)