Commit 83704c5a authored by Stefan Reinauer's avatar Stefan Reinauer
Browse files

Update port of flashrom package to Mac OS X using DirectHW

http://www.coreboot.org/DirectHW



Corresponding to flashrom svn r1282.
Signed-off-by: default avatarStefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: default avatarPaul Menzel <paulepanter@users.sourceforge.net>
parent eacbd163
...@@ -44,8 +44,8 @@ STRIP_ARGS = -s ...@@ -44,8 +44,8 @@ STRIP_ARGS = -s
endif endif
ifeq ($(OS_ARCH), Darwin) ifeq ($(OS_ARCH), Darwin)
CPPFLAGS += -I/opt/local/include -I/usr/local/include CPPFLAGS += -I/opt/local/include -I/usr/local/include
# DirectIO framework can be found in the DirectHW library. # DirectHW framework can be found in the DirectHW library.
LDFLAGS += -framework IOKit -framework DirectIO -L/opt/local/lib -L/usr/local/lib LDFLAGS += -framework IOKit -framework DirectHW -L/opt/local/lib -L/usr/local/lib
endif endif
ifeq ($(OS_ARCH), FreeBSD) ifeq ($(OS_ARCH), FreeBSD)
CPPFLAGS += -I/usr/local/include CPPFLAGS += -I/usr/local/include
......
...@@ -194,7 +194,7 @@ cpu_to_be(64) ...@@ -194,7 +194,7 @@ cpu_to_be(64)
#else #else
#if defined(__DARWIN__) #if defined(__DARWIN__)
/* Header is part of the DirectHW library. */ /* Header is part of the DirectHW library. */
#include <DirectIO/darwinio.h> #include <DirectHW/DirectHW.h>
#define off64_t off_t #define off64_t off_t
#define lseek64 lseek #define lseek64 lseek
#endif #endif
......
...@@ -134,7 +134,7 @@ void cleanup_cpu_msr(void) ...@@ -134,7 +134,7 @@ void cleanup_cpu_msr(void)
} }
#elif defined(__DARWIN__) #elif defined(__DARWIN__)
#define MEM_DEV "DirectIO" #define MEM_DEV "DirectHW"
static void *sys_physmap(unsigned long phys_addr, size_t len) static void *sys_physmap(unsigned long phys_addr, size_t len)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment