vendorcode/google: Deal with MULTIPLE_CBFS_INSTANCES

We need to special-case filling out the vboot structures when
we use CBFS instead of vboot's custom indexed format, otherwise
(due to the way the CBFS header looks), it will try to write several
million entries.

Change-Id: Ie1289d4a19060bac48089ff70e5cfc04a2de373f
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: http://review.coreboot.org/11914
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Patrick Georgi 2015-10-16 11:48:39 +02:00
parent d98471ccb4
commit 087477fd0e
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ void vboot_fill_handoff(void)
if (vboot_is_readonly_path())
return;
if (IS_ENABLED(CONFIG_MULTIPLE_CBFS_INSTANCES))
return;
if (vb2_get_selected_region(&fw_main))
die("No component metadata.\n");