1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

Rename Direct I/O library to DirectHW

The Direct I/O library for Mac OS X is now called DirectHW to make sure
people can find it via an internet search.

DirectIO was a generic name for a concept and thus not a good
distinguisher for a library.

Corresponding to flashrom svn r1198.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Idwer Vollering <vidwer@gmail.com>
This commit is contained in:
Carl-Daniel Hailfinger 2010-10-06 23:16:10 +00:00
parent 3e85442e33
commit f992c19fca
4 changed files with 5 additions and 3 deletions

View File

@ -42,6 +42,7 @@ 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.
LDFLAGS += -framework IOKit -framework DirectIO -L/opt/local/lib -L/usr/local/lib LDFLAGS += -framework IOKit -framework DirectIO -L/opt/local/lib -L/usr/local/lib
endif endif
ifeq ($(OS_ARCH), FreeBSD) ifeq ($(OS_ARCH), FreeBSD)

4
README
View File

@ -87,8 +87,8 @@ To compile on OpenBSD, use:
To compile and run on Darwin/Mac OS X: To compile and run on Darwin/Mac OS X:
Install DirectIO from coresystems GmbH. Install DirectHW from coresystems GmbH.
DirectIO is available at http://www.coresystems.de/en/directio. DirectHW is available at http://www.coresystems.de/en/directhw .
To cross-compile on Linux for DOS: To cross-compile on Linux for DOS:

View File

@ -203,7 +203,7 @@ int coreboot_init(void)
struct lb_record *rec, *last; struct lb_record *rec, *last;
#ifdef __DARWIN__ #ifdef __DARWIN__
/* This is a hack. DirectIO fails to map physical address 0x00000000. /* This is a hack. DirectHW fails to map physical address 0x00000000.
* Why? * Why?
*/ */
start = 0x400; start = 0x400;

View File

@ -193,6 +193,7 @@ cpu_to_be(64)
#define INL(x) __extension__ ({ u_int inl_tmp = (x); inl(inl_tmp); }) #define INL(x) __extension__ ({ u_int inl_tmp = (x); inl(inl_tmp); })
#else #else
#if defined(__DARWIN__) #if defined(__DARWIN__)
/* Header is part of the DirectHW library. */
#include <DirectIO/darwinio.h> #include <DirectIO/darwinio.h>
#define off64_t off_t #define off64_t off_t
#define lseek64 lseek #define lseek64 lseek