Commit 8d0afa73 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

boot: bootutil add cap for slot 0 validation

Add a capability to query if MCUboot has been built to verify slot 0.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 9930a3ec
Loading
Loading
Loading
Loading
+1
Changes for boot/bootutil/include/bootutil/caps.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ uint32_t bootutil_get_caps(void);
#define BOOTUTIL_CAP_OVERWRITE_UPGRADE  (1<<4)
#define BOOTUTIL_CAP_ENC_RSA            (1<<5)
#define BOOTUTIL_CAP_ENC_KW             (1<<6)
#define BOOTUTIL_CAP_VALIDATE_SLOT0     (1<<7)

#ifdef __cplusplus
}
+3
Changes for boot/bootutil/src/caps.c: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ uint32_t bootutil_get_caps(void)
#if defined(MCUBOOT_ENCRYPT_KW)
	res |= BOOTUTIL_CAP_ENC_KW;
#endif
#if defined(MCUBOOT_VALIDATE_SLOT0)
	res |= BOOTUTIL_CAP_VALIDATE_SLOT0;
#endif

        return res;
}