David Hendricks has uploaded a new change for review. ( https://review.coreboot.org/19339 )
Change subject: Guard x86-specific IFD stuff ......................................................................
Guard x86-specific IFD stuff
This will get squashed into a preceeding patch.
Change-Id: If5abe84e47112fef0e3576045510b34ce94e6a4d Signed-off-by: David Hendricks dhendricks@fb.com --- M libflashrom.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/39/19339/1
diff --git a/libflashrom.c b/libflashrom.c index 9adb484..3b197f1 100644 --- a/libflashrom.c +++ b/libflashrom.c @@ -31,7 +31,9 @@ #include "flash.h" #include "programmer.h" #include "layout.h" +#if defined(__i386__) || defined(__x86_64__) #include "ich_descriptors.h" +#endif #include "libflashrom.h"
/** @@ -336,16 +338,20 @@ } msg_cinfo("done.\n");
+#if defined(__i386__) || defined(__x86_64__) if (layout_from_ich_descriptors(chip_layout, desc, 0x1000)) { ret = 3; goto _unmap_ret; } +#endif
if (dump) { +#if defined(__i386__) || defined(__x86_64__) if (layout_from_ich_descriptors(&dump_layout, dump, len)) { ret = 4; goto _unmap_ret; } +#endif
if (chip_layout->base.num_entries != dump_layout.base.num_entries || memcmp(chip_layout->entries, dump_layout.entries, sizeof(dump_layout.entries))) {