mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
bootm: Support boot measurement
Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Ilias: Added some info on Kconfig explaining this is when booting !EFI Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
97707f12fd
commit
dec166d6b2
7 changed files with 122 additions and 0 deletions
|
@ -56,6 +56,17 @@ ulong bootm_disable_interrupts(void);
|
|||
int bootm_find_images(int flag, int argc, char *const argv[], ulong start,
|
||||
ulong size);
|
||||
|
||||
/*
|
||||
* Measure the boot images. Measurement is the process of hashing some binary
|
||||
* data and storing it into secure memory, i.e. TPM PCRs. In addition, each
|
||||
* measurement is logged into the platform event log such that the operating
|
||||
* system can access it and perform attestation of the boot.
|
||||
*
|
||||
* @images: The structure containing the various images to boot (linux,
|
||||
* initrd, dts, etc.)
|
||||
*/
|
||||
int bootm_measure(struct bootm_headers *images);
|
||||
|
||||
int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[], int states, struct bootm_headers *images,
|
||||
int boot_progress);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue