aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/google/chromeos
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2015-10-06 21:34:02 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-10-06 20:12:51 +0000
commit3f4a997529dfedaa4eefd00dc7d5ab32aa8e7b77 (patch)
tree013b5ee08d77f2d9db74ff159bf455c090424457 /src/vendorcode/google/chromeos
parent47818b4d6017b89e398cfbc86e3c437e0f81cfdf (diff)
vboot2: Look up actual CBFS in MULTIPLE_CBFS configuration
Up to now, the multi-CBFS code path merely looked up files in the "boot ro" image (ie. the default), disregarding the specified fmap region to use for CBFS. The code still relies on the master header being around, which on the upside allows it to skip an offset at the beginning of the region (eg. for ARM bootblocks). This will change later (both the reliance on the master header and the presence of the bootblock like this). Change-Id: Ib2fc03eac8add59fc90b4e601f6dfa488257b326 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/11805 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/vendorcode/google/chromeos')
-rw-r--r--src/vendorcode/google/chromeos/vboot2/vboot_loader.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/vendorcode/google/chromeos/vboot2/vboot_loader.c b/src/vendorcode/google/chromeos/vboot2/vboot_loader.c
index 90ada1e651..40f3fa3468 100644
--- a/src/vendorcode/google/chromeos/vboot2/vboot_loader.c
+++ b/src/vendorcode/google/chromeos/vboot2/vboot_loader.c
@@ -163,17 +163,7 @@ static int vboot_locate_by_multi_cbfs(const struct region_device *fw_main,
struct asset *asset)
{
struct cbfsd cbfs;
- struct region_device rdev;
- struct cbfs_props props;
-
- if (cbfs_boot_region_properties(&props))
- return -1;
-
- if (rdev_chain(&rdev, fw_main, props.offset, props.size))
- return -1;
-
- cbfs.rdev = &rdev;
-
+ cbfs.rdev = fw_main;
return cbfs_locate(asset_rdev(asset), &cbfs, asset_name(asset), NULL);
}