Update superiotool support for FreeBSD, Makefile fixes.
authorIdwer Vollering <vidwer@gmail.com>
Sun, 24 Oct 2010 13:42:32 +0000 (13:42 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Sun, 24 Oct 2010 13:42:32 +0000 (13:42 +0000)
Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5980 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

util/superiotool/Makefile

index 862a7a64160fe4d8af198c9ccdeb63ea2f14bca7..566388ba317eb0e810fa7a8e2879bb3b27d05e88 100644 (file)
@@ -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