@@ -136,13 +136,6 @@ endif # BOOT_USE_PSA_CRYPTO
136136
137137menu "MCUBoot settings"
138138
139- config SINGLE_APPLICATION_SLOT
140- bool "Single slot bootloader"
141- help
142- Single image area is used for application which means that
143- uploading a new application overwrites the one that previously
144- occupied the area.
145-
146139config BOOT_SOMETHING_USES_SHA256
147140 bool
148141 help
@@ -494,13 +487,27 @@ config BOOT_PREFER_SWAP_MOVE
494487 by swap using offset, but is kept to allow existing projects
495488 to make use of it.
496489
497- if !SINGLE_APPLICATION_SLOT
498490choice BOOT_IMAGE_UPGRADE_MODE
499491 prompt "Image upgrade modes"
500492 default BOOT_SWAP_USING_OFFSET if BOOT_PREFER_SWAP_OFFSET
501493 default BOOT_SWAP_USING_MOVE if BOOT_PREFER_SWAP_MOVE
502494 default BOOT_SWAP_USING_SCRATCH
503495
496+ config SINGLE_APPLICATION_SLOT
497+ bool "Single slot bootloader"
498+ help
499+ Single image area is used for application which means that
500+ uploading a new application overwrites the one that previously
501+ occupied the area.
502+
503+ config SINGLE_APPLICATION_SLOT_RAM_LOAD
504+ bool "RAM load for single application slot"
505+ help
506+ If y, the image is loaded to RAM and executed from there. For this reason,
507+ the image has to be linked to be executed from RAM. The address that the
508+ image is copied to is specified using the load-addr argument to the
509+ imgtool.py script which writes it to the image header.
510+
504511config BOOT_SWAP_USING_SCRATCH
505512 bool "Swap mode that run with the scratch partition"
506513 help
@@ -569,6 +576,8 @@ config BOOT_FIRMWARE_LOADER
569576
570577endchoice
571578
579+ if !SINGLE_APPLICATION_SLOT
580+
572581config BOOT_DIRECT_XIP_REVERT
573582 bool "Revert mechanism in direct-xip mode"
574583 depends on BOOT_DIRECT_XIP
@@ -613,14 +622,6 @@ config BOOT_SWAP_SAVE_ENCTLV
613622
614623endif # !SINGLE_APPLICATION_SLOT
615624
616- config SINGLE_APPLICATION_SLOT_RAM_LOAD
617- bool "RAM load for single application slot"
618- help
619- If y, the image is loaded to RAM and executed from there. For this reason,
620- the image has to be linked to be executed from RAM. The address that the
621- image is copied to is specified using the load-addr argument to the
622- imgtool.py script which writes it to the image header.
623-
624625# Workaround for not being able to have commas in macro arguments
625626DT_CHOSEN_Z_SRAM := zephyr,sram
626627
0 commit comments