From bb38f3213b6889db9fcdab79086bb860f3a32547 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sun, 24 Jan 2010 01:40:46 +0000 Subject: 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 Signed-off-by: Uwe Hermann Acked-by: Stefan Reinauer Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5047 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'util/superiotool/Makefile') diff --git a/util/superiotool/Makefile b/util/superiotool/Makefile index 6cb3042739..6a6b69762f 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 +## Copyright (C) 2007-2010 Uwe Hermann ## ## 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 -- cgit v1.2.3