1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 22:52:34 +02:00

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
platforms.

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

Corresponding to flashrom svn r1562.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
Carl-Daniel Hailfinger 2012-08-07 11:59:59 +00:00
parent 87fbb77866
commit 06b9efa5e8

View File

@ -37,6 +37,7 @@
#include "flash.h" #include "flash.h"
#include "flashchips.h" #include "flashchips.h"
#include "programmer.h" #include "programmer.h"
#include "hwaccess.h"
const char flashrom_version[] = FLASHROM_VERSION; const char flashrom_version[] = FLASHROM_VERSION;
char *chip_to_probe = NULL; char *chip_to_probe = NULL;
@ -1529,8 +1530,10 @@ void print_buildinfo(void)
#endif #endif
#if defined (__FLASHROM_LITTLE_ENDIAN__) #if defined (__FLASHROM_LITTLE_ENDIAN__)
msg_gdbg(" little endian"); msg_gdbg(" little endian");
#else #elif defined (__FLASHROM_BIG_ENDIAN__)
msg_gdbg(" big endian"); msg_gdbg(" big endian");
#else
#error Endianness could not be determined
#endif #endif
msg_gdbg("\n"); msg_gdbg("\n");
} }