Skip to content

Commit 04fb1f6

Browse files
committed
modules: Add Kconfigs for bootloader requests
Add Kconfig options for bootloader requests module. Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
1 parent 2a88cb5 commit 04fb1f6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

modules/Kconfig.mcuboot

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,32 @@ config BOOT_IMAGE_ACCESS_HOOKS
331331
It is up to the application project to add source file which
332332
implements hooks to the build.
333333

334+
config BOOT_REQUEST
335+
bool "Enable bootloader requests"
336+
help
337+
Handle bootloader requests.
338+
339+
if BOOT_REQUEST
340+
341+
choice BOOT_REQUEST_IMPL
342+
prompt "Shared memory backend"
343+
default BOOT_REQUEST_IMPL_RETENTION if RETENTION
344+
345+
config BOOT_REQUEST_IMPL_RETENTION
346+
bool "Retention"
347+
depends on RETENTION
348+
help
349+
Use zephyr,bootloader-request chosen node compatible with the
350+
zephyr,retention driver as the memory area to store and read from the
351+
bootloader requests.
352+
The built-in prefix property should be used to indicate the request
353+
structure version to ensure compatibility betwee the bootloader and
354+
the application.
355+
356+
endchoice
357+
358+
endif # BOOT_REQUEST
359+
334360
if MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT
335361

336362
config MCUBOOT_BOOTUTIL_LIB_FOR_DIRECT_XIP

0 commit comments

Comments
 (0)