From a4d77dc74d6500e651a6d4e477f9d499915cac7f Mon Sep 17 00:00:00 2001 From: Idwer Vollering Date: Sun, 24 Oct 2010 13:42:32 +0000 Subject: [PATCH] Update superiotool support for FreeBSD, Makefile fixes. Signed-off-by: Idwer Vollering Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5980 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/superiotool/Makefile b/util/superiotool/Makefile index 862a7a6416..566388ba31 100644 --- a/util/superiotool/Makefile +++ b/util/superiotool/Makefile @@ -39,6 +39,13 @@ OS_ARCH = $(shell uname) ifeq ($(OS_ARCH), Darwin) LIBS = -framework IOKit -framework DirectIO -lpci -lz endif +ifeq ($(OS_ARCH), FreeBSD) +CFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \ + -Werror-implicit-function-declaration -ansi $(SVNDEF) \ + -I/usr/local/include +LDFLAGS += -L/usr/local/lib +LIBS = -lz +endif # Support for PCI-attached "Super I/Os" (e.g. in VIA VT82686A/B). CONFIG_PCI = yes