summaryrefslogtreecommitdiff
path: root/tools/binman/test/90_hash.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-09-14 04:57:31 -0600
committerSimon Glass <sjg@chromium.org>2018-09-29 11:49:35 -0600
commite0e5df9310d3a0e1fc0eda86ff43fd3e782e61f1 (patch)
tree7550a5bb58f99bcf8e0f3ac2fdd2db8a5bce4bbf /tools/binman/test/90_hash.dts
parent9c888cca5e87e28e9addcffae9810fee481428a8 (diff)
binman: Support hashing entries
Sometimesi it us useful to be able to verify the content of entries with a hash. Add an easy way to do this in binman. The hash information can be retrieved from the device tree at run time. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/90_hash.dts')
-rw-r--r--tools/binman/test/90_hash.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/binman/test/90_hash.dts b/tools/binman/test/90_hash.dts
new file mode 100644
index 0000000000..200304599d
--- /dev/null
+++ b/tools/binman/test/90_hash.dts
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+/ {
+ binman {
+ u-boot {
+ hash {
+ algo = "sha256";
+ };
+ };
+ };
+};