pci_ops_mmconf: Move conditional compilation to Makefile
[coreboot.git] / src / arch / x86 / lib / Makefile.inc
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