Skip to content

Commit aaf2a5a

Browse files
committed
bootutil: Add manifest-based loader for Direct XIP
Add a loader variant that is capable of booting images, based on a simple manifest. Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
1 parent 985cc85 commit aaf2a5a

File tree

4 files changed

+682
-0
lines changed

4 files changed

+682
-0
lines changed

boot/bootutil/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ target_sources(bootutil
3333
src/image_rsa.c
3434
src/image_validate.c
3535
src/loader.c
36+
src/loader_manifest_xip_ram.c
3637
src/swap_misc.c
3738
src/swap_move.c
3839
src/swap_scratch.c

boot/bootutil/src/loader.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
#include "bootutil/mcuboot_status.h"
5252
#include "bootutil_loader.h"
5353

54+
#ifndef MCUBOOT_MANIFEST_UPDATES
55+
5456
#ifdef MCUBOOT_ENC_IMAGES
5557
#include "bootutil/enc_key.h"
5658
#endif
@@ -2498,3 +2500,5 @@ uint32_t boot_get_state_secondary_offset(struct boot_loader_state *state,
24982500
return 0;
24992501
}
25002502
#endif
2503+
2504+
#endif /* !MCUBOOT_MANIFEST_UPDATES */

0 commit comments

Comments
 (0)