summaryrefslogtreecommitdiff
path: root/src/device/Makefile.mk
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2024-01-18 12:31:22 -0700
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-01-24 10:13:21 +0000
commitfd96da95c4a36ffae8118400aa8cdab0d50b5060 (patch)
tree0e377806164341e2bf14a44ab0d89c7ab37ea37f /src/device/Makefile.mk
parentf845adc2448c56096f4ba64f676937d9fbdd061b (diff)
device, security: Rename Makefiles from .inc to .mk
The .inc suffix is confusing to various tools as it's not specific to Makefiles. This means that editors don't recognize the files, and don't open them with highlighting and any other specific editor functionality. This issue is also seen in the release notes generation script where Makefiles get renamed before running cloc. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I41f8a9b5d1bdb647a915da1a5e95161b2e34df28 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80082 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device/Makefile.mk')
-rw-r--r--src/device/Makefile.mk70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/device/Makefile.mk b/src/device/Makefile.mk
new file mode 100644
index 0000000000..a2f0d3ec3a
--- /dev/null
+++ b/src/device/Makefile.mk
@@ -0,0 +1,70 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+ramstage-y += device.c
+ramstage-y += root_device.c
+ramstage-y += cpu_device.c
+ramstage-y += device_util.c
+ramstage-$(CONFIG_AZALIA_HDA_CODEC_SUPPORT) += azalia_device.c
+ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_32) += pnp_device.c
+ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_64) += pnp_device.c
+ramstage-y += smbus_ops.c
+
+ifeq ($(CONFIG_AZALIA_HDA_CODEC_SUPPORT),y)
+ramstage-srcs += $(wildcard src/mainboard/$(MAINBOARDDIR)/hda_verb.c)
+endif
+
+bootblock-y += device_const.c
+postcar-y += device_const.c
+smm-y += device_const.c
+verstage-y += device_const.c
+romstage-y += device_const.c
+ramstage-y += device_const.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_rom.c
+
+bootblock-y += pci_ops.c
+verstage-y += pci_ops.c
+romstage-y += pci_ops.c
+postcar-y += pci_ops.c
+ramstage-y += pci_ops.c
+smm-y += pci_ops.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
+endif
+
+subdirs-y += oprom dram
+
+bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
+verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
+romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
+ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
+
+bootblock-y += i2c.c
+verstage-y += i2c.c
+romstage-y += i2c.c
+ramstage-y += i2c.c
+ramstage-y += i2c_bus.c
+
+bootblock-y += mmio.c
+verstage-y += mmio.c
+romstage-y += mmio.c
+ramstage-y += mmio.c
+
+ramstage-y += resource_allocator_common.c
+ramstage-y += resource_allocator_v4.c
+
+ramstage-$(CONFIG_XHCI_UTILS) += xhci.c xhci_resource.c
+smm-$(CONFIG_XHCI_UTILS) += xhci_resource.c
+
+ramstage-y += gpio.c
+ramstage-y += mdio.c