vboot2: read secdata and nvdata

Hardware / Coreboot - Daisuke Nojiri [chromium.org] - 23 March 2015 13:51 UTC

This code ports antirollback module and tpm library from platform/vboot_reference. names are modified to conform to coreboot's style.

The rollback_index module is split in a bottom half and top half. The top half contains generic code which hides the underlying storage implementation. The bottom half implements the storage abstraction. With this change, the bottom half is moved to coreboot, while the top half stays in vboot_reference.

TEST=Built with USE=+/-vboot2 for Blaze. Built Samus, Link. BUG=none Branch=none

5799097 vboot2: read secdata and nvdata
src/drivers/i2c/tpm/Makefile.inc | 1 +
src/include/antirollback.h | 138 +-----
src/include/tpm_lite/tlcl.h | 116 +----
src/lib/Makefile.inc | 1 -
src/lib/tlcl.c | 592 ++++++++++--------------
src/lib/tlcl_internal.h | 34 +-
src/soc/nvidia/tegra124/Makefile.inc | 3 +
src/soc/nvidia/tegra124/bootblock.c | 81 +++-
src/vendorcode/google/chromeos/Makefile.inc | 1 +
src/vendorcode/google/chromeos/antirollback.c | 602 +++++--------------------
src/vendorcode/google/chromeos/vboot_main.c | 81 +++-
11 files changed, 554 insertions(+), 1096 deletions(-)

Upstream: review.coreboot.org


  • Share