summaryrefslogtreecommitdiff
path: root/common/cmd_vbexport_test.c
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-08-02 23:31:44 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:22 -0700
commitef090d2b8fdb901fd4a44e45492532916716b5bd (patch)
tree050e4c5c7ebc26188b9d87b5dfa0011c73078431 /common/cmd_vbexport_test.c
parent792f7f6ae53a75ad559e0c5c7092b3078467ef98 (diff)
Make the FMAP configuration decoding function board specific.
This change makes the FMAP configuration decoding function board specific so that it can, for instance, use CBFS to store the FMAP on x86. The ARM implementation uses fdt_decode_twostop_fmap in its implementation and should behave the same. The new more generic interace is called decode_twostop_fmap. BUG=chrome-os-partner:5248 TEST=Built, installed and booted on Kaen, built and installed on Alex, ran vboot_twostop and saw new "unimplemented" message. Signed-off-by: Gabe Black <gabeblack@google.com> Change-Id: I07f6f8f7c8a62c5998ec4919d4609a7ac84783da Reviewed-on: http://gerrit.chromium.org/gerrit/5233 Reviewed-by: Stefan Reinauer <reinauer@google.com> Tested-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'common/cmd_vbexport_test.c')
-rw-r--r--common/cmd_vbexport_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/cmd_vbexport_test.c b/common/cmd_vbexport_test.c
index b04ab2cd81..bfd3e14862 100644
--- a/common/cmd_vbexport_test.c
+++ b/common/cmd_vbexport_test.c
@@ -400,15 +400,14 @@ static int show_screen_and_delay(uint32_t screen_type)
static uint8_t *read_gbb_from_firmware(void)
{
- void *fdt_ptr = (void *)gd->blob;
vb_global_t *global;
firmware_storage_t file;
struct twostop_fmap fmap;
global = get_vboot_global();
- if (fdt_decode_twostop_fmap(fdt_ptr, &fmap)) {
- VbExDebug("Failed to load fmap config from fdt!\n");
+ if (decode_twostop_fmap(&fmap)) {
+ VbExDebug("Failed to load fmap config!\n");
return NULL;
}