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
This commit is contained in:
committed by
Uwe Hermann
parent
5142dcd530
commit
bb38f3213b
@@ -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
|
||||
|
Reference in New Issue
Block a user