blob: 3a8fb7303ad172ee2dd8b0a14a1af2d4954fec13 [file] [log] [blame]
Thomas Gleixner5fa25be2007-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 Gleixner5fa25be2007-10-11 11:13:37 +020030else
Robert Richter6d8566a2008-07-02 22:50:19 +020031
32#
33# Makefile for X86_64 specific PCI routines
34#
35# Reuse the i386 PCI subsystem
36#
37EXTRA_CFLAGS += -Iarch/x86/pci
38
39obj-y := i386.o
40obj-$(CONFIG_PCI_DIRECT)+= direct.o
41obj-y += fixup.o init.o
42obj-$(CONFIG_ACPI) += acpi.o
43obj-y += legacy.o irq.o common.o early.o
44# mmconfig has a 64bit special
45obj-$(CONFIG_PCI_MMCONFIG) += mmconfig_64.o direct.o mmconfig-shared.o
46
47obj-y += amd_bus.o
48
Thomas Gleixner5fa25be2007-10-11 11:13:37 +020049endif