summaryrefslogtreecommitdiff
path: root/util/flashrom/Makefile
diff options
context:
space:
mode:
authorAndriy Gapon <avg@icyb.net.ua>2008-05-22 13:22:45 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-05-22 13:22:45 +0000
commit4b1cde877c39cbab29fffa28a5654958c07b723c (patch)
tree6d4f95cc5d08955cc7b8c53b702a32516bf4573b /util/flashrom/Makefile
parent42319797a68f873b142dc26cd1f4031c9ba52fcf (diff)
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. Signed-off-by: Andriy Gapon <avg@icyb.net.ua> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3344 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/Makefile')
-rw-r--r--util/flashrom/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/flashrom/Makefile b/util/flashrom/Makefile
index a645d4c560..1991dc7806 100644
--- a/util/flashrom/Makefile
+++ b/util/flashrom/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 \