diff options
author | Eddie James <eajames@linux.ibm.com> | 2023-10-24 10:43:51 -0500 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2023-10-27 13:17:21 +0300 |
commit | 5999ea20fa42e78f872720ec3d0ee1d8df1a1f40 (patch) | |
tree | 463ea5ceebc52e22ed663e47314fa0123d984e8a /test/cmd_ut.c | |
parent | dec166d6b2c28d971394ebe1bc0ac70b88b575c0 (diff) |
test: Add sandbox TPM boot measurement
Use the sandbox TPM driver to measure some boot images in a unit
test case.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'test/cmd_ut.c')
-rw-r--r-- | test/cmd_ut.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 0f56409e80..e87adcb71e 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -99,6 +99,10 @@ static struct cmd_tbl cmd_ut_sub[] = { #if CONFIG_IS_ENABLED(UT_UNICODE) && !defined(API_BUILD) U_BOOT_CMD_MKENT(unicode, CONFIG_SYS_MAXARGS, 1, do_ut_unicode, "", ""), #endif +#ifdef CONFIG_MEASURED_BOOT + U_BOOT_CMD_MKENT(measurement, CONFIG_SYS_MAXARGS, 1, do_ut_measurement, + "", ""), +#endif #ifdef CONFIG_SANDBOX U_BOOT_CMD_MKENT(compression, CONFIG_SYS_MAXARGS, 1, do_ut_compression, "", ""), |