pci_ops_mmconf: Move conditional compilation to Makefile
authorVikram Narayanan <vikram186@gmail.com>
Tue, 24 Jan 2012 14:52:20 +0000 (20:22 +0530)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 26 Jan 2012 21:15:19 +0000 (22:15 +0100)
Moved the conditional compilation out of the source file

Change-Id: Ic4045006f39d70f4a0bc37d1bd5e073ed8477c68
Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Reviewed-on: http://review.coreboot.org/578
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/arch/x86/lib/Makefile.inc
src/arch/x86/lib/pci_ops_mmconf.c

index 309238858616a967323680e4a14894fd305e0942..3388a9dea30d7c75f5f482ec75e9567ba936bb38 100644 (file)
@@ -2,7 +2,9 @@ ramstage-y += c_start.S
 ramstage-y += cpu.c
 ramstage-y += pci_ops_conf1.c
 ramstage-y += pci_ops_conf2.c
-ramstage-y += pci_ops_mmconf.c
+
+ramstage-$(CONFIG_MMCONF_SUPPORT) += pci_ops_mmconf.c
+
 ramstage-y += pci_ops_auto.c
 ramstage-y += exception.c
 ramstage-$(CONFIG_IOAPIC) += ioapic.c
index 7fcd88ae87b663b830ff73d5e67afd98371fc2f2..4f9d8265c16d4c1dd7b5740469daa5aa805e25df 100644 (file)
@@ -1,5 +1,3 @@
-#if CONFIG_MMCONF_SUPPORT
-
 #include <console/console.h>
 #include <arch/io.h>
 #include <arch/pciconf.h>
@@ -63,5 +61,3 @@ const struct pci_bus_operations pci_ops_mmconf = {
        .write16 = pci_mmconf_write_config16,
        .write32 = pci_mmconf_write_config32,
 };
-
-#endif