blob: 8645094d7423a191847c92df77f0dc678f2070fd [file] [log] [blame]
Thomas Gleixner5fa25bee2007-10-11 11:13:37 +02001ifeq ($(CONFIG_X86_32),y)
Robert Richter6d8566a2008-07-02 22:50:19 +02002
3obj-y := i386.o init.o
4
5obj-$(CONFIG_PCI_BIOS) += pcbios.o
6obj-$(CONFIG_PCI_MMCONFIG) += mmconfig_32.o direct.o mmconfig-shared.o
7obj-$(CONFIG_PCI_DIRECT) += direct.o
8obj-$(CONFIG_PCI_OLPC) += olpc.o
9
10pci-y := fixup.o
11
12# Do not change the ordering here. There is a nasty init function
13# ordering dependency which breaks when you move acpi.o below
14# legacy/irq.o
15pci-$(CONFIG_ACPI) += acpi.o
16pci-y += legacy.o irq.o
17
18# Careful: VISWS overrule the pci-y above. The colons are
19# therefor correct. This needs a proper fix by distangling the code.
20pci-$(CONFIG_X86_VISWS) := visws.o fixup.o
21
22pci-$(CONFIG_X86_NUMAQ) += numa.o
23
24# Necessary for NUMAQ as well
25pci-$(CONFIG_NUMA) += mp_bus_to_node.o
26
27obj-y += $(pci-y) common.o early.o
28obj-y += amd_bus.o
29
Thomas Gleixner5fa25bee2007-10-11 11:13:37 +020030else
Robert Richter6d8566a2008-07-02 22:50:19 +020031
32#
33# Makefile for X86_64 specific PCI routines
34#
Robert Richter6d8566a2008-07-02 22:50:19 +020035
36obj-y := i386.o
37obj-$(CONFIG_PCI_DIRECT)+= direct.o
38obj-y += fixup.o init.o
39obj-$(CONFIG_ACPI) += acpi.o
40obj-y += legacy.o irq.o common.o early.o
41# mmconfig has a 64bit special
42obj-$(CONFIG_PCI_MMCONFIG) += mmconfig_64.o direct.o mmconfig-shared.o
43
44obj-y += amd_bus.o
45
Thomas Gleixner5fa25bee2007-10-11 11:13:37 +020046endif