summaryrefslogtreecommitdiffstats
path: root/util/superiotool/Makefile
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-01-24 01:40:46 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-01-24 01:40:46 +0000
commitbb38f3213b6889db9fcdab79086bb860f3a32547 (patch)
tree64a5d355f078462b98c3db16ecb48818ef0621c0 /util/superiotool/Makefile
parent5142dcd530e27c5a94612a532b2deaf229670223 (diff)
downloadcoreboot-bb38f3213b6889db9fcdab79086bb860f3a32547.tar.gz
coreboot-bb38f3213b6889db9fcdab79086bb860f3a32547.tar.bz2
coreboot-bb38f3213b6889db9fcdab79086bb860f3a32547.zip
Add VIA VT82C686A/VT82C686B detection support to superiotool.
This adds an additional requirement to superiotool: libpci. The PCI code is conditional on PCI_SUPPORT. You can set the CONFIG_PCI variable in the Makefile to 'no' to disable it. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5047 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/Makefile')
-rw-r--r--util/superiotool/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/superiotool/Makefile b/util/superiotool/Makefile
index 6cb304273930..6a6b69762f01 100644
--- a/util/superiotool/Makefile
+++ b/util/superiotool/Makefile
@@ -1,7 +1,7 @@
##
## This file is part of the superiotool project.
##
-## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
+## Copyright (C) 2007-2010 Uwe Hermann <uwe@hermann-uwe.de>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -39,6 +39,15 @@ ifeq ($(OS_ARCH), Darwin)
LDFLAGS = -framework IOKit -framework DirectIO -lpci -lz
endif
+# Support for PCI-attached "Super I/Os" (e.g. in VIA VT82686A/B).
+CONFIG_PCI = yes
+
+ifeq ($(CONFIG_PCI), yes)
+CFLAGS += -DPCI_SUPPORT
+LDFLAGS += -lpci
+OBJS += pci.o via.o
+endif
+
all: $(PROGRAM)
superiotool.o: *.c superiotool.h