firmware: Prune down old region API
The region API was a way for firmware and kernel verification to get
at various blocks of caller-provided data. In practice, we only used
it internally as a way to get at parts of the GBB. Prune it down to
access only the bits of GBB we still need, from the buffer we already
know we have.
In the long run we should use the same vb2ex_read_resource() API that
vb2 firmware verification does, but that should be done in a follow-up
CL since it'll need to be coordinated with support in depthcharge.
No change in functionality.
TEST=make -j runtests; build bob firmware and boot it
Signed-off-by: Randall Spangler <email@example.com>
Commit-Ready: ChromeOS CL Exonerator Bot <firstname.lastname@example.org>
Reviewed-by: Stefan Reinauer <email@example.com>
25 files changed