[PATCH 0/3] tpm: Support boot measurements
Ilias Apalodimas
ilias.apalodimas at linaro.org
Wed Jan 4 08:47:34 CET 2023
Hi Eddie,
Thanks for the patch
Looking at the patch there's a lot of code duplication with
lib/efi_loader/efi_tcg2.c.
Any reason why we aren't reusing that ?
Regards
/Ilias
On Tue, 3 Jan 2023 at 22:42, Eddie James <eajames at linux.ibm.com> wrote:
>
> This series adds support for measuring the boot images more generically
> than the existing EFI support. The series includes optional measurement
> from the bootm command.
> Eventually the EFI code could be refactored to use the generic functions.
>
> Eddie James (3):
> tpm: Fix spelling for tpmu_ha union
> tpm: Support boot measurements
> bootm: Support boot measurement
>
> boot/bootm.c | 53 ++++
> cmd/bootm.c | 2 +
> common/Kconfig | 6 +
> include/efi_tcg2.h | 44 ---
> include/image.h | 1 +
> include/tpm-v2.h | 139 ++++++++-
> lib/tpm-v2.c | 700 +++++++++++++++++++++++++++++++++++++++++++++
> 7 files changed, 899 insertions(+), 46 deletions(-)
>
> --
> 2.31.1
>
More information about the U-Boot
mailing list