Skip to content

Commit be8b3ab

Browse files
erwangonordicjm
authored andcommitted
boot: Zephyr: Add a Kconfig for MULTIPLE_EXECUTABLE_RAM_REGIONS define
Add a Kconfig symbol to allow selecting MCUBoot symbol MULTIPLE_EXECUTABLE_RAM_REGIONS. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent c5011f2 commit be8b3ab

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

boot/zephyr/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,14 @@ config BOOT_IMAGE_EXECUTABLE_RAM_SIZE
547547
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_SRAM),0)
548548
endif
549549

550+
config MULTIPLE_EXECUTABLE_RAM_REGIONS
551+
bool "Platform RAM is split over multiple areas"
552+
depends on BOOT_RAM_LOAD
553+
help
554+
To be selected if MCUBoot should be aware of several executable RAM areas.
555+
When selected, boot_get_image_exec_ram_info() should be updated to provide
556+
the information about the areas.
557+
550558
config FLASH_RUNTIME_SOURCES
551559
bool "Images are read from flash partitions defined at runtime"
552560
depends on SINGLE_APPLICATION_SLOT

boot/zephyr/include/mcuboot_config/mcuboot_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
#define IMAGE_EXECUTABLE_RAM_SIZE CONFIG_BOOT_IMAGE_EXECUTABLE_RAM_SIZE
135135
#endif
136136

137-
#ifdef CONFIG_SOC_SERIES_STM32N6X
137+
#ifdef CONFIG_MULTIPLE_EXECUTABLE_RAM_REGIONS
138138
#define MULTIPLE_EXECUTABLE_RAM_REGIONS
139139
#endif
140140

0 commit comments

Comments
 (0)