Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zephyr: added address/size of bootloader/firmware shared memory area #2174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions boot/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,22 @@ config BOOT_SHARE_BACKEND_EXTERNAL
help
Use a custom user-specified storage.

if BOOT_SHARE_BACKEND_EXTERNAL
config BOOT_SHARE_BACKEND_EXTERNAL_DATA_BASE
hex "Shared memory area base address"
depends on BOOT_SHARE_BACKEND_EXTERNAL
help
Base address of user-defined memory area shared between
bootloader and runtime firmware.

config BOOT_SHARE_BACKEND_EXTERNAL_DATA_SIZE
int "Shared memory area size in bytes"
depends on BOOT_SHARE_BACKEND_EXTERNAL
help
Size of user-defined memory area shared between
bootloader and runtime firmware.
endif

endchoice

menuconfig BOOT_SHARE_DATA
Expand Down
5 changes: 5 additions & 0 deletions boot/zephyr/include/mcuboot_config/mcuboot_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@
#define MCUBOOT_CUSTOM_DATA_SHARING_FUNCTION
#endif

#ifdef CONFIG_BOOT_SHARE_BACKEND_EXTERNAL
#define MCUBOOT_SHARED_DATA_BASE CONFIG_BOOT_SHARE_BACKEND_EXTERNAL_DATA_BASE
#define MCUBOOT_SHARED_DATA_SIZE CONFIG_BOOT_SHARE_BACKEND_EXTERNAL_DATA_SIZE
#endif

#ifdef CONFIG_BOOT_SHARE_DATA_BOOTINFO
#define MCUBOOT_DATA_SHARING_BOOTINFO
#endif
Expand Down