[coreboot] New patch to review for coreboot: 652dcc6 ectool: Allow build under Cygwin

Raymond Danks (ray.danks@se-eng.com) gerrit at coreboot.org
Fri Apr 27 16:59:13 CEST 2012


Raymond Danks (ray.danks at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/941

-gerrit

commit 652dcc6f7dcf8ca32dd1d8cd50e3845c1cf09fa3
Author: Raymond Danks <ray.danks at se-eng.com>
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 <ray.danks at se-eng.com>
---
 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




More information about the coreboot mailing list