Skip to content

Commit 4930977

Browse files
committed
sysbuild: Do not configure MCUboot mode
This is now handled by Zephyr already Signed-off-by: Jamie McCrae <[email protected]>
1 parent 9882c27 commit 4930977

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

sysbuild/CMakeLists.txt

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -171,43 +171,6 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
171171
endforeach()
172172
endif()
173173

174-
# Set MCUboot operating mode in application and MCUboot
175-
# TODO: NCSDK-24488 add RAM LOAD mode
176-
set(mcuboot_modes "CONFIG_SINGLE_APPLICATION_SLOT;CONFIG_BOOT_SWAP_USING_MOVE;CONFIG_BOOT_SWAP_USING_SCRATCH;CONFIG_BOOT_UPGRADE_ONLY;CONFIG_BOOT_DIRECT_XIP;CONFIG_BOOT_DIRECT_XIP_REVERT;CONFIG_BOOT_FIRMWARE_LOADER")
177-
set(application_mcuboot_modes "CONFIG_MCUBOOT_BOOTLOADER_MODE_SINGLE_APP;CONFIG_MCUBOOT_BOOTLOADER_MODE_SWAP_WITHOUT_SCRATCH;CONFIG_MCUBOOT_BOOTLOADER_MODE_SWAP_SCRATCH;CONFIG_MCUBOOT_BOOTLOADER_MODE_OVERWRITE_ONLY;CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP;CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT;CONFIG_MCUBOOT_BOOTLOADER_MODE_FIRMWARE_UPDATER")
178-
179-
if(SB_CONFIG_MCUBOOT_MODE_SINGLE_APP)
180-
set(mcuboot_mode CONFIG_SINGLE_APPLICATION_SLOT)
181-
set(application_mcuboot_mode CONFIG_MCUBOOT_BOOTLOADER_MODE_SINGLE_APP)
182-
elseif(SB_CONFIG_MCUBOOT_MODE_SWAP_WITHOUT_SCRATCH)
183-
set(mcuboot_mode CONFIG_BOOT_SWAP_USING_MOVE)
184-
set(application_mcuboot_mode CONFIG_MCUBOOT_BOOTLOADER_MODE_SWAP_WITHOUT_SCRATCH)
185-
elseif(SB_CONFIG_MCUBOOT_MODE_SWAP_SCRATCH)
186-
set(mcuboot_mode CONFIG_BOOT_SWAP_USING_SCRATCH)
187-
set(application_mcuboot_mode CONFIG_MCUBOOT_BOOTLOADER_MODE_SWAP_SCRATCH)
188-
elseif(SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY)
189-
set(mcuboot_mode CONFIG_BOOT_UPGRADE_ONLY)
190-
set(application_mcuboot_mode CONFIG_MCUBOOT_BOOTLOADER_MODE_OVERWRITE_ONLY)
191-
elseif(SB_CONFIG_MCUBOOT_MODE_DIRECT_XIP)
192-
set(mcuboot_mode CONFIG_BOOT_DIRECT_XIP)
193-
set(application_mcuboot_mode CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP)
194-
elseif(SB_CONFIG_MCUBOOT_MODE_DIRECT_XIP_WITH_REVERT)
195-
set(mcuboot_mode CONFIG_BOOT_DIRECT_XIP;CONFIG_BOOT_DIRECT_XIP_REVERT)
196-
set(application_mcuboot_mode CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT)
197-
elseif(SB_CONFIG_MCUBOOT_MODE_FIRMWARE_UPDATER)
198-
set(mcuboot_mode CONFIG_BOOT_FIRMWARE_LOADER)
199-
set(application_mcuboot_mode CONFIG_MCUBOOT_BOOTLOADER_MODE_FIRMWARE_UPDATER)
200-
endif()
201-
202-
# Apply configuration to MCUboot
203-
foreach(mode ${mcuboot_modes})
204-
if("${mode}" IN_LIST mcuboot_mode)
205-
set_config_bool(mcuboot ${mode} y)
206-
else()
207-
set_config_bool(mcuboot ${mode} n)
208-
endif()
209-
endforeach()
210-
211174
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_PURE)
212175
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_TYPE_PURE y)
213176
endif()

0 commit comments

Comments
 (0)