11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for the PCI bus specific drivers. 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 51da177e4SLinus Torvaldsobj-y += access.o bus.o probe.o remove.o pci.o quirks.o \ 61da177e4SLinus Torvalds names.o pci-driver.o search.o pci-sysfs.o \ 71da177e4SLinus Torvalds rom.o 81da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS) += proc.o 91da177e4SLinus Torvalds 101da177e4SLinus Torvaldsifndef CONFIG_SPARC64 111da177e4SLinus Torvaldsobj-y += setup-res.o 121da177e4SLinus Torvaldsendif 131da177e4SLinus Torvalds 141da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += hotplug.o 151da177e4SLinus Torvalds 161da177e4SLinus Torvalds# Build the PCI Hotplug drivers if we were asked to 171da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI) += hotplug/ 181da177e4SLinus Torvalds 191da177e4SLinus Torvalds# 201da177e4SLinus Torvalds# Some architectures use the generic PCI setup functions 211da177e4SLinus Torvalds# 2243a6b760SAndy Whitcroftobj-$(CONFIG_X86) += setup-bus.o 231da177e4SLinus Torvaldsobj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o 241da177e4SLinus Torvaldsobj-$(CONFIG_ARM) += setup-bus.o setup-irq.o 251da177e4SLinus Torvaldsobj-$(CONFIG_PARISC) += setup-bus.o 261da177e4SLinus Torvaldsobj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o 271da177e4SLinus Torvaldsobj-$(CONFIG_PPC32) += setup-irq.o 281da177e4SLinus Torvaldsobj-$(CONFIG_PPC64) += setup-bus.o 291da177e4SLinus Torvaldsobj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o 301da177e4SLinus Torvaldsobj-$(CONFIG_X86_VISWS) += setup-irq.o 311da177e4SLinus Torvaldsobj-$(CONFIG_PCI_MSI) += msi.o 321da177e4SLinus Torvalds 331da177e4SLinus Torvalds# 341da177e4SLinus Torvalds# ACPI Related PCI FW Functions 351da177e4SLinus Torvalds# 361da177e4SLinus Torvaldsobj-$(CONFIG_ACPI) += pci-acpi.o 371da177e4SLinus Torvalds 381da177e4SLinus Torvalds# Cardbus & CompactPCI use setup-bus 391da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += setup-bus.o 401da177e4SLinus Torvalds 411da177e4SLinus Torvaldsifndef CONFIG_X86 421da177e4SLinus Torvaldsobj-y += syscall.o 431da177e4SLinus Torvaldsendif 441da177e4SLinus Torvalds 451da177e4SLinus Torvaldsifeq ($(CONFIG_PCI_DEBUG),y) 461da177e4SLinus TorvaldsEXTRA_CFLAGS += -DDEBUG 471da177e4SLinus Torvaldsendif 481da177e4SLinus Torvalds 491da177e4SLinus Torvaldshostprogs-y := gen-devlist 501da177e4SLinus Torvalds 511da177e4SLinus Torvalds# Dependencies on generated files need to be listed explicitly 521da177e4SLinus Torvalds$(obj)/names.o: $(obj)/devlist.h $(obj)/classlist.h 531da177e4SLinus Torvalds$(obj)/classlist.h: $(obj)/devlist.h 541da177e4SLinus Torvalds 551da177e4SLinus Torvalds# And that's how to generate them 561da177e4SLinus Torvaldsquiet_cmd_devlist = DEVLIST $@ 571da177e4SLinus Torvalds cmd_devlist = ( cd $(obj); ./gen-devlist ) < $< 581da177e4SLinus Torvalds$(obj)/devlist.h: $(src)/pci.ids $(obj)/gen-devlist 591da177e4SLinus Torvalds $(call cmd,devlist) 601da177e4SLinus Torvalds 611da177e4SLinus Torvalds# Files generated that shall be removed upon make clean 621da177e4SLinus Torvaldsclean-files := devlist.h classlist.h 631da177e4SLinus Torvalds 641da177e4SLinus Torvalds# Build PCI Express stuff if needed 651da177e4SLinus Torvaldsobj-$(CONFIG_PCIEPORTBUS) += pcie/ 661da177e4SLinus Torvalds 67