From 781dd08e7d29b2c3bfec332df955e41e0503fba0 Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Thu, 3 Aug 2023 15:58:58 +0100 Subject: [PATCH] doc: design: Add updated information on data sharing Adds additional information on the new BOOTINFO data sharing functionality Signed-off-by: Jamie McCrae --- docs/design.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/design.md b/docs/design.md index 162927a77e..0ecbf57a65 100755 --- a/docs/design.md +++ b/docs/design.md @@ -1360,7 +1360,12 @@ specific data using the same shared data area as for the measured boot. For this, the target must provide a definition for the `boot_save_shared_data()` function which is declared in `boot/bootutil/include/bootutil/boot_record.h`. The `boot_add_data_to_shared_area()` function can be used for adding new TLV -entries to the shared data area. +entries to the shared data area. Alternatively, setting the +`MCUBOOT_DATA_SHARING` option will provide a default function for this which +saves information such as the maximum application size, bootloader version +(if available), running slot number, if recovery is part of MCUboot and the +signature type. Details of the TLVs for this information can be found in +`boot/bootutil/include/bootutil/boot_status.h` with `BLINFO_` prefixes. ## [Testing in CI](#testing-in-ci)