diff options
| author | Eddie James <[email protected]> | 2023-10-24 10:43:50 -0500 |
|---|---|---|
| committer | Ilias Apalodimas <[email protected]> | 2023-10-27 13:15:57 +0300 |
| commit | dec166d6b2c28d971394ebe1bc0ac70b88b575c0 (patch) | |
| tree | ef358001d2c0b68a23a24bb42fbf2c96b187f22c /cmd/bootm.c | |
| parent | 97707f12fdabf5fab5942504dab711a665854942 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Ilias: Added some info on Kconfig explaining this is when booting !EFI
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'cmd/bootm.c')
| -rw-r--r-- | cmd/bootm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bootm.c b/cmd/bootm.c index 7968415b6d1..2bf2e9f6763 100644 --- a/cmd/bootm.c +++ b/cmd/bootm.c @@ -147,6 +147,8 @@ int do_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) BOOTM_STATE_OS_GO; if (IS_ENABLED(CONFIG_SYS_BOOT_RAMDISK_HIGH)) states |= BOOTM_STATE_RAMDISK; + if (IS_ENABLED(CONFIG_MEASURED_BOOT)) + states |= BOOTM_STATE_MEASURE; if (IS_ENABLED(CONFIG_PPC) || IS_ENABLED(CONFIG_MIPS)) states |= BOOTM_STATE_OS_CMDLINE; ret = do_bootm_states(cmdtp, flag, argc, argv, states, &images, 1); |
