@@ -211,6 +211,7 @@ config BOOT_PREFER_SWAP_MOVE
211
211
if !SINGLE_APPLICATION_SLOT
212
212
choice BOOT_IMAGE_UPGRADE_MODE
213
213
prompt "Image upgrade modes"
214
+ default BOOT_NO_UPGRADE if BOOT_RAM_LOAD
214
215
default BOOT_SWAP_USING_MOVE if BOOT_PREFER_SWAP_MOVE
215
216
default BOOT_SWAP_USING_SCRATCH
216
217
@@ -248,15 +249,6 @@ config BOOT_DIRECT_XIP
248
249
images must be linked to be executed from the given image slot. Using this
249
250
mode results in a simpler code path and smaller code size.
250
251
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
-
260
252
config BOOT_FIRMWARE_LOADER
261
253
bool "Firmware loader"
262
254
help
@@ -269,20 +261,13 @@ config BOOT_FIRMWARE_LOADER
269
261
Note: The firmware loader image must be signed with the same signing
270
262
key as the primary image.
271
263
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.
281
269
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
286
271
287
272
config BOOT_DIRECT_XIP_REVERT
288
273
bool "Enable the revert mechanism in direct-xip mode"
@@ -320,6 +305,28 @@ config BOOT_SWAP_SAVE_ENCTLV
320
305
321
306
endif # !SINGLE_APPLICATION_SLOT
322
307
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
+
323
330
config BOOT_ENCRYPTION_SUPPORT
324
331
bool
325
332
help
0 commit comments