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>lime2-spi
parent
9c888cca5e
commit
e0e5df9310
@ -0,0 +1,12 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+ |
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
binman { |
||||
u-boot { |
||||
hash { |
||||
algo = "sha256"; |
||||
}; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,11 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+ |
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
binman { |
||||
u-boot { |
||||
hash { |
||||
}; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,12 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+ |
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
binman { |
||||
u-boot { |
||||
hash { |
||||
algo = "invalid"; |
||||
}; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,18 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+ |
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
binman { |
||||
section { |
||||
u-boot { |
||||
}; |
||||
fill { |
||||
size = <0x10>; |
||||
fill-byte = [61]; |
||||
}; |
||||
hash { |
||||
algo = "sha256"; |
||||
}; |
||||
}; |
||||
}; |
||||
}; |
Loading…
Reference in new issue