From 60d9bd267e38c6241e05f0253845e1d11d04f3b3 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Thu, 9 Aug 2012 23:34:41 +0000 Subject: Portability fixes and cleanups Move Mac OS X IOKit/DirectHW availability checks in the Makefile from compiler check to pciutils check. Print the compiler error messages for feature detection. Add DOS libpci in the Makefile includes only if a PCI-based programmer was requested. Restrict mmap usage in ich_descriptors_tool to Unix style systems. Build ich_descriptors_tool with the correct .exe extension on DOS/Windows. Build ich_descriptors_tool by default on x86. (Patch by Stefan Tauner) Print the Windows version instead of "unknown machine" on Windows. Don't #define our own __DARWIN__, use the standard OS X detection method. Update the README. Add more generated files to svn:ignore Corresponding to flashrom svn r1567. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Carl-Daniel Hailfinger --- cbtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cbtable.c') diff --git a/cbtable.c b/cbtable.c index 4495d9d76..b4fb80918 100644 --- a/cbtable.c +++ b/cbtable.c @@ -211,7 +211,7 @@ int coreboot_init(void) struct lb_header *lb_table; struct lb_record *rec, *last; -#ifdef __DARWIN__ +#if defined(__MACH__) && defined(__APPLE__) /* This is a hack. DirectHW fails to map physical address 0x00000000. * Why? */ -- cgit v1.2.3