Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Makefile for the PCI bus specific drivers.
  3. #
  4. obj-y += access.o bus.o probe.o remove.o pci.o quirks.o \
  5. pci-driver.o search.o pci-sysfs.o rom.o setup-res.o
  6. obj-$(CONFIG_PROC_FS) += proc.o
  7. # Build PCI Express stuff if needed
  8. obj-$(CONFIG_PCIEPORTBUS) += pcie/
  9. obj-$(CONFIG_HOTPLUG) += hotplug.o
  10. # Build the PCI Hotplug drivers if we were asked to
  11. obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
  12. #
  13. # Some architectures use the generic PCI setup functions
  14. #
  15. obj-$(CONFIG_X86) += setup-bus.o
  16. obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
  17. obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
  18. obj-$(CONFIG_PARISC) += setup-bus.o
  19. obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
  20. obj-$(CONFIG_PPC32) += setup-irq.o
  21. obj-$(CONFIG_PPC64) += setup-bus.o
  22. obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
  23. obj-$(CONFIG_X86_VISWS) += setup-irq.o
  24. msiobj-y := msi.o
  25. msiobj-$(CONFIG_IA64) += msi-apic.o
  26. msiobj-$(CONFIG_IA64_GENERIC) += msi-altix.o
  27. msiobj-$(CONFIG_IA64_SGI_SN2) += msi-altix.o
  28. obj-$(CONFIG_PCI_MSI) += $(msiobj-y)
  29. #
  30. # ACPI Related PCI FW Functions
  31. #
  32. obj-$(CONFIG_ACPI) += pci-acpi.o
  33. # Cardbus & CompactPCI use setup-bus
  34. obj-$(CONFIG_HOTPLUG) += setup-bus.o
  35. ifndef CONFIG_X86
  36. obj-y += syscall.o
  37. endif
  38. ifeq ($(CONFIG_PCI_DEBUG),y)
  39. EXTRA_CFLAGS += -DDEBUG
  40. endif