[PATCH v2 0/2] tpm: Add TPM2_GetTestResult command support
Julia Daxenberger
julia.daxenberger at infineon.com
Wed Aug 2 10:35:19 CEST 2023
Add TPM2_GetTestResult command support and change the command file and the
help accordingly. Add Python tests and sandbox driver functionality.
Currently, the tpm2_self_test function is implemented and can be called
directly. The get_test_result function enables interested parties to
retrieve the test result provided by the self test.
---
Changes in v2:
- Apply style changes suggested by Ilias Apalodimas
<ilias.apalodimas at linaro.org>
- Move test cases reliant on restart_uboot() to seperate patch in
response to Simon Glass <sjg at chromium.org>
- Change test result data to be read directly from the response
- Fix minor style issues
Julia Daxenberger (2):
tpm: Add TPM2_GetTestResult command support
tpm: Add error scenarios to get_test_result test
cmd/tpm-v2.c | 60 +++++++++++++++++++++
drivers/tpm/tpm2_tis_sandbox.c | 51 +++++++++++++++++-
include/tpm-v2.h | 23 ++++++++
lib/tpm-v2.c | 97 ++++++++++++++++++++++++++++++++++
test/py/tests/test_tpm2.py | 50 ++++++++++++++++
5 files changed, 280 insertions(+), 1 deletion(-)
More information about the U-Boot
mailing list