@@ -327,19 +327,6 @@ config BOOT_FIRMWARE_LOADER
327327
328328endchoice
329329
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-
343330config BOOT_DIRECT_XIP_REVERT
344331 bool "Enable the revert mechanism in direct-xip mode"
345332 depends on BOOT_DIRECT_XIP
@@ -376,6 +363,27 @@ config BOOT_SWAP_SAVE_ENCTLV
376363
377364endif # !SINGLE_APPLICATION_SLOT
378365
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+
379387config BOOT_ENCRYPTION_SUPPORT
380388 bool
381389 help
@@ -684,7 +692,7 @@ config BOOT_INTR_VEC_RELOC
684692config UPDATEABLE_IMAGE_NUMBER
685693 int "Number of updateable images"
686694 default 1
687- range 1 1 if SINGLE_APPLICATION_SLOT
695+ range 1 1 if SINGLE_APPLICATION_SLOT || SINGLE_APPLICATION_SLOT_RAM_LOAD
688696 help
689697 Enables support of multi image update.
690698
0 commit comments