From 84b788000fd547e458aab404ae6d0b3dbed850c7 Mon Sep 17 00:00:00 2001 From: Tomasz Chyrowicz Date: Thu, 24 Jul 2025 14:31:47 +0200 Subject: [PATCH] [nrf noup] modules: Add Kconfigs for bootloader requests Add Kconfig options for bootloader requests module. Ref: NCSDK-34439 Signed-off-by: Tomasz Chyrowicz --- modules/Kconfig.mcuboot | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/Kconfig.mcuboot b/modules/Kconfig.mcuboot index 694f4069b90..f58171441c4 100644 --- a/modules/Kconfig.mcuboot +++ b/modules/Kconfig.mcuboot @@ -335,6 +335,32 @@ config BOOT_IMAGE_ACCESS_HOOKS It is up to the application project to add source file which implements hooks to the build. +config MCUBOOT_BOOT_REQUEST + bool "MCUboot bootloader requests" + help + Handle bootloader requests. + +if MCUBOOT_BOOT_REQUEST + +choice MCUBOOT_BOOT_REQUEST_IMPL + prompt "Shared memory backend" + default MCUBOOT_BOOT_REQUEST_IMPL_RETENTION if RETENTION + +config MCUBOOT_BOOT_REQUEST_IMPL_RETENTION + bool "Retention" + depends on RETENTION + help + Use zephyr,bootloader-request chosen node compatible with the + zephyr,retention driver as the memory area to store and read from the + bootloader requests. + The built-in prefix property should be used to indicate the request + structure version to ensure compatibility between the bootloader and + the application. + +endchoice + +endif # MCUBOOT_BOOT_REQUEST + if MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT config MCUBOOT_BOOTUTIL_LIB_FOR_DIRECT_XIP