diff options
author | Andriy Gapon <avg@icyb.net.ua> | 2008-05-22 13:22:45 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2008-05-22 13:22:45 +0000 |
commit | f6d37d2397ddd02ab3b976390f320693fcbe5cf7 (patch) | |
tree | 02857d1503952dafdf3ff69e6ebf4daba347d609 /Makefile | |
parent | 7139adb88b133b4d56607fca29ad63877a40567f (diff) | |
download | flashrom-f6d37d2397ddd02ab3b976390f320693fcbe5cf7.zip flashrom-f6d37d2397ddd02ab3b976390f320693fcbe5cf7.tar.gz |
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 <avg@icyb.net.ua>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 \ |