@@ -211,6 +211,7 @@ config BOOT_PREFER_SWAP_MOVE
211211if !SINGLE_APPLICATION_SLOT
212212choice BOOT_IMAGE_UPGRADE_MODE
213213 prompt "Image upgrade modes"
214+ default BOOT_NO_UPGRADE if BOOT_RAM_LOAD
214215 default BOOT_SWAP_USING_MOVE if BOOT_PREFER_SWAP_MOVE
215216 default BOOT_SWAP_USING_SCRATCH
216217
@@ -248,15 +249,6 @@ config BOOT_DIRECT_XIP
248249 images must be linked to be executed from the given image slot. Using this
249250 mode results in a simpler code path and smaller code size.
250251
251- config BOOT_RAM_LOAD
252- bool "RAM load"
253- help
254- If y, mcuboot selects the newest valid image based on the image version
255- numbers, thereafter the selected image is copied to RAM and executed from
256- there. For this reason, the image has to be linked to be executed from RAM.
257- The address that the image is copied to is specified using the load-addr
258- argument to the imgtool.py script which writes it to the image header.
259-
260252config BOOT_FIRMWARE_LOADER
261253 bool "Firmware loader"
262254 help
@@ -269,20 +261,13 @@ config BOOT_FIRMWARE_LOADER
269261 Note: The firmware loader image must be signed with the same signing
270262 key as the primary image.
271263
272- endchoice
273-
274- # Workaround for not being able to have commas in macro arguments
275- DT_CHOSEN_Z_SRAM := zephyr,sram
276-
277- if BOOT_RAM_LOAD
278- config BOOT_IMAGE_EXECUTABLE_RAM_START
279- hex "Boot image executable ram start"
280- default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_SRAM))
264+ config BOOT_NO_UPGRADE
265+ bool "No upgrade"
266+ help
267+ No upgrade is performed - usually, this option will be used in
268+ conjunction with BOOT_RAM_LOAD.
281269
282- config BOOT_IMAGE_EXECUTABLE_RAM_SIZE
283- int "Boot image executable base size"
284- default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_SRAM),0)
285- endif
270+ endchoice
286271
287272config BOOT_DIRECT_XIP_REVERT
288273 bool "Enable the revert mechanism in direct-xip mode"
@@ -320,6 +305,28 @@ config BOOT_SWAP_SAVE_ENCTLV
320305
321306endif # !SINGLE_APPLICATION_SLOT
322307
308+ config BOOT_RAM_LOAD
309+ bool "RAM load"
310+ help
311+ If y, mcuboot selects the newest valid image based on the image version
312+ numbers, thereafter the selected image is copied to RAM and executed from
313+ there. For this reason, the image has to be linked to be executed from RAM.
314+ The address that the image is copied to is specified using the load-addr
315+ argument to the imgtool.py script which writes it to the image header.
316+
317+ # Workaround for not being able to have commas in macro arguments
318+ DT_CHOSEN_Z_SRAM := zephyr,sram
319+
320+ if BOOT_RAM_LOAD
321+ config BOOT_IMAGE_EXECUTABLE_RAM_START
322+ hex "Boot image executable ram start"
323+ default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_SRAM))
324+
325+ config BOOT_IMAGE_EXECUTABLE_RAM_SIZE
326+ int "Boot image executable base size"
327+ default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_SRAM),0)
328+ endif
329+
323330config BOOT_ENCRYPTION_SUPPORT
324331 bool
325332 help
0 commit comments