summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Golle <[email protected]>2026-05-16 00:37:43 +0100
committerTom Rini <[email protected]>2026-05-27 13:41:33 -0600
commitd3eee4d3b120f2fe30932b2f29d935cc9ac9ddb3 (patch)
tree2a054fb8624982f4165dffcf5fcd47b0c4d8b5bc
parentdc4dd589269d0c3fbaee6be41241b66d685686b2 (diff)
image: fit: add dm-verity property name constants
Add FIT_VERITY_NODENAME and the complete set of FIT_VERITY_*_PROP constants for the dm-verity child node of filesystem-type images, plus the five optional boolean error-handling property names aligned with the flat-image-tree specification. Signed-off-by: Daniel Golle <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Tom Rini <[email protected]>
-rw-r--r--include/image.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 34efac6056d..482446a8115 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1079,6 +1079,23 @@ int booti_setup(ulong image, ulong *relocated_addr, ulong *size,
#define FIT_CIPHER_NODENAME "cipher"
#define FIT_ALGO_PROP "algo"
+/* dm-verity node */
+#define FIT_VERITY_NODENAME "dm-verity"
+#define FIT_VERITY_ALGO_PROP "algo"
+#define FIT_VERITY_DBS_PROP "data-block-size"
+#define FIT_VERITY_HBS_PROP "hash-block-size"
+#define FIT_VERITY_NBLK_PROP "num-data-blocks"
+#define FIT_VERITY_HBLK_PROP "hash-start-block"
+#define FIT_VERITY_DIGEST_PROP "digest"
+#define FIT_VERITY_SALT_PROP "salt"
+
+/* dm-verity error-handling modes (optional boolean property names) */
+#define FIT_VERITY_OPT_RESTART "restart-on-corruption"
+#define FIT_VERITY_OPT_PANIC "panic-on-corruption"
+#define FIT_VERITY_OPT_RERR "restart-on-error"
+#define FIT_VERITY_OPT_PERR "panic-on-error"
+#define FIT_VERITY_OPT_ONCE "check-at-most-once"
+
/* image node */
#define FIT_DATA_PROP "data"
#define FIT_DATA_POSITION_PROP "data-position"