From ef090d2b8fdb901fd4a44e45492532916716b5bd Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 2 Aug 2011 23:31:44 -0700 Subject: 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 Change-Id: I07f6f8f7c8a62c5998ec4919d4609a7ac84783da Reviewed-on: http://gerrit.chromium.org/gerrit/5233 Reviewed-by: Stefan Reinauer Tested-by: Gabe Black --- common/cmd_vbexport_test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common/cmd_vbexport_test.c') diff --git a/common/cmd_vbexport_test.c b/common/cmd_vbexport_test.c index b04ab2cd81b..bfd3e14862b 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; } -- cgit v1.2.3