efi_loader: initialize the RNG protocol after the TCC2
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 22 Jul 2022 16:02:03 +0000 (21:32 +0530)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 2 Aug 2022 20:50:02 +0000 (23:50 +0300)
commit5d98329196daaf624c39304aec1397d6363b3e72
tree141c46df097eb17696ffdaad64c7e8cba612e0f2
parent5e5937822a50224631963402ff3c033d2524a55f
efi_loader: initialize the RNG protocol after the TCC2

Due to U-Boot's lazy binding the RNG presented by the TCG is not available
until the EFI_TCG2 protocol has been initialized.  Since the TPM has a
built-in RNG device we can use for the OS randomization, move the RNG
protocol installation after the TCG.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_setup.c