@@ -327,19 +327,6 @@ config BOOT_FIRMWARE_LOADER
327
327
328
328
endchoice
329
329
330
- # Workaround for not being able to have commas in macro arguments
331
- DT_CHOSEN_Z_SRAM := zephyr,sram
332
-
333
- if BOOT_RAM_LOAD
334
- config BOOT_IMAGE_EXECUTABLE_RAM_START
335
- hex "Boot image executable ram start"
336
- default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_SRAM))
337
-
338
- config BOOT_IMAGE_EXECUTABLE_RAM_SIZE
339
- int "Boot image executable base size"
340
- default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_SRAM),0)
341
- endif
342
-
343
330
config BOOT_DIRECT_XIP_REVERT
344
331
bool "Enable the revert mechanism in direct-xip mode"
345
332
depends on BOOT_DIRECT_XIP
@@ -376,6 +363,27 @@ config BOOT_SWAP_SAVE_ENCTLV
376
363
377
364
endif # !SINGLE_APPLICATION_SLOT
378
365
366
+ config SINGLE_APPLICATION_SLOT_RAM_LOAD
367
+ bool "RAM load for single application slot"
368
+ help
369
+ If y, the image is loaded to RAM and executed from there. For this reason,
370
+ the image has to be linked to be executed from RAM. The address that the
371
+ image is copied to is specified using the load-addr argument to the
372
+ imgtool.py script which writes it to the image header.
373
+
374
+ # Workaround for not being able to have commas in macro arguments
375
+ DT_CHOSEN_Z_SRAM := zephyr,sram
376
+
377
+ if BOOT_RAM_LOAD || SINGLE_APPLICATION_SLOT_RAM_LOAD
378
+ config BOOT_IMAGE_EXECUTABLE_RAM_START
379
+ hex "Boot image executable ram start"
380
+ default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_SRAM))
381
+
382
+ config BOOT_IMAGE_EXECUTABLE_RAM_SIZE
383
+ int "Boot image executable base size"
384
+ default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_SRAM),0)
385
+ endif
386
+
379
387
config BOOT_ENCRYPTION_SUPPORT
380
388
bool
381
389
help
@@ -684,7 +692,7 @@ config BOOT_INTR_VEC_RELOC
684
692
config UPDATEABLE_IMAGE_NUMBER
685
693
int "Number of updateable images"
686
694
default 1
687
- range 1 1 if SINGLE_APPLICATION_SLOT
695
+ range 1 1 if SINGLE_APPLICATION_SLOT || SINGLE_APPLICATION_SLOT_RAM_LOAD
688
696
help
689
697
Enables support of multi image update.
690
698
0 commit comments