Skip to content

Commit

Permalink
[nrf fromtree] bootutil: Add shared data support for XIP with revert …
Browse files Browse the repository at this point in the history
…mode

Adds support for sharing the direct-XIP MCUboot mode with revert
to applications using shared data

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit 50f8b5f)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
(cherry picked from commit e768dd2)
  • Loading branch information
nordicjm authored and cvinayak committed Oct 20, 2023
1 parent c15589e commit eb1ff87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boot/bootutil/src/boot_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are
#elif defined(MCUBOOT_SWAP_USING_MOVE)
uint8_t mode = MCUBOOT_MODE_SWAP_USING_MOVE;
#elif defined(MCUBOOT_DIRECT_XIP)
#if defined(MCUBOOT_DIRECT_XIP_REVERT)
uint8_t mode = MCUBOOT_MODE_DIRECT_XIP_WITH_REVERT;
#else
uint8_t mode = MCUBOOT_MODE_DIRECT_XIP;
#endif
#elif defined(MCUBOOT_RAM_LOAD)
uint8_t mode = MCUBOOT_MODE_RAM_LOAD;
#else
Expand Down

0 comments on commit eb1ff87

Please sign in to comment.