Raymond Danks ([email protected]) just uploaded a new patch set to gerrit, 
which you can find at http://review.coreboot.org/941

-gerrit

commit 652dcc6f7dcf8ca32dd1d8cd50e3845c1cf09fa3
Author: Raymond Danks <[email protected]>
Date:   Fri Apr 27 08:51:02 2012 -0600

    ectool: Allow build under Cygwin
    
    To build under Cygwin, ectool depends upon the package ioperm:
    http://openwince.sourceforge.net/ioperm/
    
    for sys/io.h and sys/perm.h.  This change causes the ectool make to 
correctly include and link against these headers and libraries.
    
    Change-Id: I7d54ab5110c2bb1fd21dfa48d56031f3f29cd54e
    Signed-off-by: Raymond Danks <[email protected]>
---
 util/ectool/Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/util/ectool/Makefile b/util/ectool/Makefile
index c817395..16a1ce9 100644
--- a/util/ectool/Makefile
+++ b/util/ectool/Makefile
@@ -24,10 +24,15 @@ PROGRAM = ectool
 INSTALL = /usr/bin/install
 PREFIX  = /usr/local
 
+OS_ARCH = $(shell uname -o)
+ifeq ($(OS_ARCH), Cygwin)
+LDFLAGS = -lioperm
+endif
+
 all: $(PROGRAM)
 
 $(PROGRAM): ec.o ectool.o
-       $(CC) $(CFLAGS) -o $@ $^
+       $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
 
 install: $(PROGRAM)
        $(INSTALL) $(PROGRAM) $(PREFIX)/sbin

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to