Skip to content

Commit

Permalink
bootutil: Add capability to test hw-rollback-prot
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: I3dee0baf27b8cae78b87135ea7447556b06fdefd
  • Loading branch information
Roland Mikhel authored and davidvincze committed Jun 27, 2023
1 parent d670352 commit 82670c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions boot/bootutil/include/bootutil/caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ uint32_t bootutil_get_caps(void);
#define BOOTUTIL_CAP_AES256 (1<<14)
#define BOOTUTIL_CAP_RAM_LOAD (1<<15)
#define BOOTUTIL_CAP_DIRECT_XIP (1<<16)
#define BOOTUTIL_CAP_HW_ROLLBACK_PROT (1<<17)

/*
* Query the number of images this bootloader is configured for. This
Expand Down
3 changes: 3 additions & 0 deletions boot/bootutil/src/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ uint32_t bootutil_get_caps(void)
#if defined(MCUBOOT_DIRECT_XIP)
res |= BOOTUTIL_CAP_DIRECT_XIP;
#endif
#if defined(MCUBOOT_HW_ROLLBACK_PROT)
res |= BOOTUTIL_CAP_HW_ROLLBACK_PROT;
#endif

return res;
}
Expand Down

0 comments on commit 82670c7

Please sign in to comment.