Author: hailfinger
Date: Thu Jul 29 15:17:37 2010
New Revision: 1116
URL: http://flashrom.org/trac/coreboot/changeset/1116

Log:
Allow compilation on all architectures even if direct hardware access
primitives are missing, if all you need is userspace access to the
serial port (serprog, buspirate) or no access at all (dummy).

Signed-off-by: Carl-Daniel Hailfinger <[email protected]>
Acked-by: Uwe Hermann <[email protected]>

Modified:
   trunk/hwaccess.h

Modified: trunk/hwaccess.h
==============================================================================
--- trunk/hwaccess.h    Thu Jul 29 15:09:18 2010        (r1115)
+++ trunk/hwaccess.h    Thu Jul 29 15:17:37 2010        (r1116)
@@ -160,6 +160,7 @@
 #define le_to_cpu32 cpu_to_le32
 #define le_to_cpu64 cpu_to_le64
 
+#if NEED_PCI == 1
 #if defined (__i386__) || defined (__x86_64__)
 
 #define __FLASHROM_HAVE_OUTB__ 1
@@ -320,5 +321,6 @@
 #error Unknown architecture, please check if it supports PCI port IO.
 
 #endif
+#endif
 
 #endif /* !__HWACCESS_H__ */

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to