summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-23 16:02:28 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-03 13:45:58 +0000
commit3a42c885100d38db2f95fa3bd3ae96ae8e501de6 (patch)
treed5dfc37a5403156757f010a15461af248ba7b671 /src/device
parent78d14326987547f7ae8b2a5b200cb1f3fba0fb31 (diff)
downloadcoreboot-3a42c885100d38db2f95fa3bd3ae96ae8e501de6.tar.xz
device/pci: Organize Makefile
Use a single group for all CONFIG_PCI=y sources. Change-Id: I426f4398c01dfbf03b9dd2db8c7a964512c86d5e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31680 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/Makefile.inc30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/device/Makefile.inc b/src/device/Makefile.inc
index 39df1c7b9c..c325a7e5bd 100644
--- a/src/device/Makefile.inc
+++ b/src/device/Makefile.inc
@@ -2,18 +2,9 @@ ramstage-y += device.c
ramstage-y += root_device.c
ramstage-y += cpu_device.c
ramstage-y += device_util.c
-ramstage-$(CONFIG_PCI) += pci_class.c
-ramstage-$(CONFIG_PCI) += pci_device.c
-ramstage-$(CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT) += hypertransport.c
-ramstage-$(CONFIG_PCIX_PLUGIN_SUPPORT) += pcix_device.c
-ramstage-$(CONFIG_PCIEXP_PLUGIN_SUPPORT) += pciexp_device.c
-ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c
ramstage-$(CONFIG_AZALIA_PLUGIN_SUPPORT) += azalia_device.c
ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_32) += pnp_device.c
ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_64) += pnp_device.c
-ramstage-$(CONFIG_PCI) += pci_ops.c
-ramstage-$(CONFIG_MMCONF_SUPPORT) += pci_ops_mmconf.c
-ramstage-$(CONFIG_PCI) += pci_rom.c
ramstage-y += smbus_ops.c
ifeq ($(CONFIG_AZALIA_PLUGIN_SUPPORT),y)
@@ -27,10 +18,23 @@ verstage-y += device_const.c
romstage-y += device_const.c
ramstage-y += device_const.c
-bootblock-$(CONFIG_PCI) += pci_early.c
-verstage-$(CONFIG_PCI) += pci_early.c
-romstage-$(CONFIG_PCI) += pci_early.c
-postcar-$(CONFIG_PCI) += pci_early.c
+ifeq ($(CONFIG_PCI),y)
+bootblock-y += pci_early.c
+verstage-y += pci_early.c
+romstage-y += pci_early.c
+postcar-y += pci_early.c
+
+ramstage-y += pci_class.c
+ramstage-y += pci_device.c
+ramstage-y += pci_ops.c
+ramstage-y += pci_rom.c
+
+ramstage-$(CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT) += hypertransport.c
+ramstage-$(CONFIG_PCIX_PLUGIN_SUPPORT) += pcix_device.c
+ramstage-$(CONFIG_PCIEXP_PLUGIN_SUPPORT) += pciexp_device.c
+ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c
+ramstage-$(CONFIG_MMCONF_SUPPORT) += pci_ops_mmconf.c
+endif
subdirs-y += oprom dram