]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_selftest: add selftest for EFI_TCG2_PROTOCOL and Measured Boot
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Thu, 4 Nov 2021 10:45:46 +0000 (19:45 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Nov 2021 17:36:55 +0000 (18:36 +0100)
commitaa1b5049278d067ff5aa3fc38b14c66e10264ac3
treeabc6c8dbac06f44436c096de9b59c9fc60f283dc
parent1834c081d3db78df045f7e243e8bb169c4a12e2e
efi_selftest: add selftest for EFI_TCG2_PROTOCOL and Measured Boot

This commit adds the missing EFI_TCG2_PROTOCOL selftest
and Measured Boot selftest in lib/efi_selftest.

This selftest includes PE/COFF image measurement test, some PCR values are
different in each architecture. With that, this commit also adds pre-built
versions of lib/efi_selftest/efi_miniapp_file_image_exit.c for PE/COFF
image measurement test for 32-bit arm, arm64, ia32, x86_64, riscv32 and
riscv64. Prebuilding avoids the problem of reproducible builds.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Make the test 'onrequest'.
Add code comments to the includes with the binaries.
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_miniapp_tcg2_arm.h [new file with mode: 0644]
lib/efi_selftest/efi_miniapp_tcg2_arm64.h [new file with mode: 0644]
lib/efi_selftest/efi_miniapp_tcg2_ia32.h [new file with mode: 0644]
lib/efi_selftest/efi_miniapp_tcg2_riscv32.h [new file with mode: 0644]
lib/efi_selftest/efi_miniapp_tcg2_riscv64.h [new file with mode: 0644]
lib/efi_selftest/efi_miniapp_tcg2_x86_64.h [new file with mode: 0644]
lib/efi_selftest/efi_selftest_tcg2.c