security/vboot: Limit vboot verification code access to only verstage
commit89ac87a976e2ace9a3637c99209adec492566d30
authorSridhar Siricilla <sridhar.siricilla@intel.com>
Mon, 20 Apr 2020 13:15:22 +0000 (20 18:45 +0530)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 4 May 2020 09:46:58 +0000 (4 09:46 +0000)
treed408a6635a828e5c4cc2c787265c54cfa2651ba7
parent7f9c064263811700329812e16828b5b97cf916e5
security/vboot: Limit vboot verification code access to only verstage

Make vboot verification code accessible in only verstage.
Vboot verification code in vboot_logic.c is being used
in verstage. Due to support function vboot_save_data(),
so core functionality in vboot_logic.c is made available in romstage.
The patch decouples the support function frm vboot_logic.c to
limit itself to verstage.

BUG=b:155544643
TEST=Verified on hatch

Signed-off-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Change-Id: Id1ede45c4dffe90afcef210eabaa657cf92a9335
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40562
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
src/security/vboot/Makefile.inc
src/security/vboot/vboot_common.c
src/security/vboot/vboot_logic.c