]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
i386: prepare shared pci/Makefile
authorThomas Gleixner <tglx@linutronix.de>
Thu, 11 Oct 2007 09:13:37 +0000 (11:13 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Oct 2007 09:13:37 +0000 (11:13 +0200)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/i386/pci/Makefile
arch/i386/pci/Makefile_32 [new file with mode: 0644]

index cdd6828b5abb4015f91091cf4ccc5d1a6432ded0..d04d8f976d1c3179d4b49d79b2bb51461c4fce34 100644 (file)
@@ -1,14 +1,5 @@
-obj-y                          := i386.o init.o
-
-obj-$(CONFIG_PCI_BIOS)         += pcbios.o
-obj-$(CONFIG_PCI_MMCONFIG)     += mmconfig_32.o direct.o mmconfig-shared.o
-obj-$(CONFIG_PCI_DIRECT)       += direct.o
-
-pci-y                          := fixup.o
-pci-$(CONFIG_ACPI)             += acpi.o
-pci-y                          += legacy.o irq.o
-
-pci-$(CONFIG_X86_VISWS)                := visws.o fixup.o
-pci-$(CONFIG_X86_NUMAQ)                := numa.o irq.o
-
-obj-y                          += $(pci-y) common.o early.o
+ifeq ($(CONFIG_X86_32),y)
+include ${srctree}/arch/i386/pci/Makefile_32
+else
+include ${srctree}/arch/x86_64/pci/Makefile_64
+endif
diff --git a/arch/i386/pci/Makefile_32 b/arch/i386/pci/Makefile_32
new file mode 100644 (file)
index 0000000..cdd6828
--- /dev/null
@@ -0,0 +1,14 @@
+obj-y                          := i386.o init.o
+
+obj-$(CONFIG_PCI_BIOS)         += pcbios.o
+obj-$(CONFIG_PCI_MMCONFIG)     += mmconfig_32.o direct.o mmconfig-shared.o
+obj-$(CONFIG_PCI_DIRECT)       += direct.o
+
+pci-y                          := fixup.o
+pci-$(CONFIG_ACPI)             += acpi.o
+pci-y                          += legacy.o irq.o
+
+pci-$(CONFIG_X86_VISWS)                := visws.o fixup.o
+pci-$(CONFIG_X86_NUMAQ)                := numa.o irq.o
+
+obj-y                          += $(pci-y) common.o early.o