Skip to content

Commit a3be399

Browse files
committed
sysbuild: Prevent some configuration options with single image mode
Prevents making some options configurable and sets correct limits when MCUboot is configured in single application mode Signed-off-by: Jamie McCrae <[email protected]>
1 parent 4fc7861 commit a3be399

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sysbuild/Kconfig.mcuboot

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ config MCUBOOT_COMPRESSED_IMAGE_SUPPORT
5555

5656
config MCUBOOT_MAX_UPDATEABLE_IMAGES
5757
int
58+
default 1 if MCUBOOT_MODE_SINGLE_APP
5859
default 4
5960

6061
config MCUBOOT_APPLICATION_IMAGE_NUMBER
@@ -63,7 +64,7 @@ config MCUBOOT_APPLICATION_IMAGE_NUMBER
6364

6465
config MCUBOOT_NETWORK_CORE_IMAGE_NUMBER
6566
int
66-
default 1 if NETCORE_APP_UPDATE
67+
default 1 if NETCORE_APP_UPDATE && !MCUBOOT_MODE_SINGLE_APP
6768
default -1
6869

6970
config MCUBOOT_WIFI_PATCHES_IMAGE_NUMBER
@@ -177,6 +178,7 @@ config MCUBOOT_USE_ALL_AVAILABLE_RAM
177178
config MCUBOOT_NRF53_MULTI_IMAGE_UPDATE
178179
bool "Network core multi-image update (in single operation)"
179180
depends on NETCORE_APP_UPDATE
181+
depends on !MCUBOOT_MODE_SINGLE_APP
180182
help
181183
If selected, network core image updates can be applied in a single operation. This is
182184
required if the secondary partition resides in off-chip memory.

0 commit comments

Comments
 (0)