Skip to content
Commit 092b6ec6 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL



It does not make sense to enable all SHA algorithms unless they are
needed. It bloats the code and in this case, causes chromebook_link to
fail to build. That board does use the TPM, but not with measured boot,
nor EFI.

Since EFI_TCG2_PROTOCOL already selects these options, we just need to
add them to MEASURED_BOOT as well.

Note that the original commit combines refactoring and new features,
which makes it hard to see what is going on.

Fixes: 97707f12 tpm: Support boot measurements
Reviewed-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 8a9040e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment