From 65c1b86fe7e0067b2c42e34c37265ddc0653d0f2 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Thu, 22 May 2008 13:22:45 +0000 Subject: Changes to make flashrom compile (and work) on FreeBSD This patch addresses different argument order of outX() calls, FreeBSD-specific headers, difference in certain type names and system interface names, and also FreeBSD-specific way of gaining IO port access. Corresponding to flashrom svn r245 and coreboot v2 svn r3344. Signed-off-by: Andriy Gapon Acked-by: Carl-Daniel Hailfinger --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a645d4c..1991dc7 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,10 @@ else LDFLAGS = -lpci -lz STRIP_ARGS = -s endif +ifeq ($(OS_ARCH), FreeBSD) +CFLAGS += -I/usr/local/include +LDFLAGS += -L/usr/local/lib +endif OBJS = chipset_enable.o board_enable.o udelay.o jedec.o stm50flw0x0x.c \ sst28sf040.o am29f040b.o mx29f002.o sst39sf020.o m29f400bt.o \ -- cgit v1.1