security/vboot: Add option to run verstage before bootblock
commit8a3a3c820b8f8a8d357bf54fb7532ad1ae1ba270
authorMartin Roth <martin@coreboot.org>
Mon, 4 May 2020 16:13:45 +0000 (4 10:13 -0600)
committerMartin Roth <martinroth@google.com>
Mon, 15 Jun 2020 21:04:00 +0000 (15 21:04 +0000)
tree1e3c8c2c30753118a16eba2d0f3afc25bc74d836
parent61ba7fb2d9ecd2cfd64dda0618d544e4429fee8e
security/vboot: Add option to run verstage before bootblock

For AMD's family 17h, verstage can run as a userspace app in the PSP
before the X86 is released. The flags for this have been made generic
to support any other future systems that might run verstage before
the main processor starts.

Although an attempt has been made to make things somewhat generic,
since this is the first and currently only chip to support verstage
before bootblock, there are a number of options which might ultimately
be needed which have currently been left out for simplicity.  Examples
of this are:
- PCI is not currently supported - this is currently just a given
instead of making a separate Kconfig option for it.
- The PSP uses an ARM v7 processor, so that's the only processor that
is getting updated for the verstage-before-bootblock option.

BUG=b:158124527
TEST=Build with following patches

Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: I4849777cb7ba9f90fe8428b82c21884d1e662b96
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41814
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
src/security/vboot/Kconfig
src/security/vboot/Makefile.inc
src/security/vboot/common.c
src/security/vboot/misc.h
src/security/vboot/vboot_loader.c