[flashrom] [commit] r1562 - trunk

repository service svn at flashrom.org
Tue Aug 7 13:59:59 CEST 2012

Author: hailfinger
Date: Tue Aug  7 13:59:59 2012
New Revision: 1562
URL: http://flashrom.org/trac/flashrom/changeset/1562

Fix missing #include hwaccess.h

In r1549 #include "hwaccess.h" was moved to individual drivers.
Unfortunately, flashrom.c was forgotten. This caused flashrom to falsely
report an unknown PCI library version and big-endianness on all

Add #include "hwaccess.h".
Explicitly check for __FLASHROM_BIG_ENDIAN__

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>


Modified: trunk/flashrom.c
--- trunk/flashrom.c	Fri Aug  3 01:56:49 2012	(r1561)
+++ trunk/flashrom.c	Tue Aug  7 13:59:59 2012	(r1562)
@@ -37,6 +37,7 @@
 #include "flash.h"
 #include "flashchips.h"
 #include "programmer.h"
+#include "hwaccess.h"
 const char flashrom_version[] = FLASHROM_VERSION;
 char *chip_to_probe = NULL;
@@ -1529,8 +1530,10 @@
 #if defined (__FLASHROM_LITTLE_ENDIAN__)
 	msg_gdbg(" little endian");
+#elif defined (__FLASHROM_BIG_ENDIAN__)
 	msg_gdbg(" big endian");
+#error Endianness could not be determined

More information about the flashrom mailing list