]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit25aa0238bcebc113ddab99a2a1b1d4b84d66cd66
tree141c46df097eb17696ffdaad64c7e8cba612e0f2
parentfe4dff95b9b2de27bda0c300a458ffea3cc52f14
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