From 367fff56faaff6fca27240f481c6c0a40113d68b Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 18 Jan 2024 15:33:45 -0700 Subject: driver/parade to /driver/wwan: 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 Change-Id: I8cf3d2e2cd1b6ebe4e941ad64f27698379fef696 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80080 Reviewed-by: Felix Singer Reviewed-by: Maximilian Brune Tested-by: build bot (Jenkins) --- src/drivers/parade/ps8625/Makefile.inc | 3 -- src/drivers/parade/ps8625/Makefile.mk | 3 ++ src/drivers/parade/ps8640/Makefile.inc | 3 -- src/drivers/parade/ps8640/Makefile.mk | 3 ++ src/drivers/pc80/pc/Makefile.inc | 15 -------- src/drivers/pc80/pc/Makefile.mk | 15 ++++++++ src/drivers/pc80/rtc/Makefile.inc | 21 ----------- src/drivers/pc80/rtc/Makefile.mk | 21 +++++++++++ src/drivers/pc80/tpm/Makefile.inc | 5 --- src/drivers/pc80/tpm/Makefile.mk | 5 +++ src/drivers/pc80/vga/Makefile.inc | 15 -------- src/drivers/pc80/vga/Makefile.mk | 15 ++++++++ src/drivers/pcie/generic/Makefile.inc | 3 -- src/drivers/pcie/generic/Makefile.mk | 3 ++ src/drivers/pcie/rtd3/device/Makefile.inc | 3 -- src/drivers/pcie/rtd3/device/Makefile.mk | 3 ++ src/drivers/ricoh/rce822/Makefile.inc | 3 -- src/drivers/ricoh/rce822/Makefile.mk | 3 ++ src/drivers/secunet/dmi/Makefile.inc | 3 -- src/drivers/secunet/dmi/Makefile.mk | 3 ++ src/drivers/siemens/nc_fpga/Makefile.inc | 9 ----- src/drivers/siemens/nc_fpga/Makefile.mk | 9 +++++ src/drivers/sil/3114/Makefile.inc | 3 -- src/drivers/sil/3114/Makefile.mk | 3 ++ src/drivers/smbus/Makefile.inc | 10 ------ src/drivers/smbus/Makefile.mk | 10 ++++++ src/drivers/smmstore/Makefile.inc | 7 ---- src/drivers/smmstore/Makefile.mk | 7 ++++ src/drivers/sof/Makefile.inc | 3 -- src/drivers/sof/Makefile.mk | 3 ++ src/drivers/soundwire/alc1308/Makefile.inc | 3 -- src/drivers/soundwire/alc1308/Makefile.mk | 3 ++ src/drivers/soundwire/alc5682/Makefile.inc | 3 -- src/drivers/soundwire/alc5682/Makefile.mk | 3 ++ src/drivers/soundwire/alc711/Makefile.inc | 3 -- src/drivers/soundwire/alc711/Makefile.mk | 3 ++ src/drivers/soundwire/cs42l42/Makefile.inc | 3 -- src/drivers/soundwire/cs42l42/Makefile.mk | 3 ++ src/drivers/soundwire/max98363/Makefile.inc | 3 -- src/drivers/soundwire/max98363/Makefile.mk | 3 ++ src/drivers/soundwire/max98373/Makefile.inc | 3 -- src/drivers/soundwire/max98373/Makefile.mk | 3 ++ src/drivers/spi/Makefile.inc | 43 ---------------------- src/drivers/spi/Makefile.mk | 43 ++++++++++++++++++++++ src/drivers/spi/acpi/Makefile.inc | 3 -- src/drivers/spi/acpi/Makefile.mk | 3 ++ src/drivers/spi/tpm/Makefile.inc | 5 --- src/drivers/spi/tpm/Makefile.mk | 5 +++ src/drivers/ti/sn65dsi86bridge/Makefile.inc | 3 -- src/drivers/ti/sn65dsi86bridge/Makefile.mk | 3 ++ src/drivers/ti/tps65090/Makefile.inc | 3 -- src/drivers/ti/tps65090/Makefile.mk | 3 ++ src/drivers/ti/tps65913/Makefile.inc | 3 -- src/drivers/ti/tps65913/Makefile.mk | 3 ++ src/drivers/tpm/Makefile.inc | 15 -------- src/drivers/tpm/Makefile.mk | 15 ++++++++ src/drivers/uart/Makefile.inc | 56 ----------------------------- src/drivers/uart/Makefile.mk | 56 +++++++++++++++++++++++++++++ src/drivers/uart/acpi/Makefile.inc | 3 -- src/drivers/uart/acpi/Makefile.mk | 3 ++ src/drivers/usb/Makefile.inc | 8 ----- src/drivers/usb/Makefile.mk | 8 +++++ src/drivers/usb/acpi/Makefile.inc | 3 -- src/drivers/usb/acpi/Makefile.mk | 3 ++ src/drivers/usb/hub/Makefile.inc | 3 -- src/drivers/usb/hub/Makefile.mk | 3 ++ src/drivers/usb/pci_xhci/Makefile.inc | 3 -- src/drivers/usb/pci_xhci/Makefile.mk | 3 ++ src/drivers/vpd/Makefile.inc | 8 ----- src/drivers/vpd/Makefile.mk | 8 +++++ src/drivers/wifi/generic/Makefile.inc | 22 ------------ src/drivers/wifi/generic/Makefile.mk | 22 ++++++++++++ src/drivers/wwan/fm/Makefile.inc | 3 -- src/drivers/wwan/fm/Makefile.mk | 3 ++ 74 files changed, 308 insertions(+), 308 deletions(-) delete mode 100644 src/drivers/parade/ps8625/Makefile.inc create mode 100644 src/drivers/parade/ps8625/Makefile.mk delete mode 100644 src/drivers/parade/ps8640/Makefile.inc create mode 100644 src/drivers/parade/ps8640/Makefile.mk delete mode 100644 src/drivers/pc80/pc/Makefile.inc create mode 100644 src/drivers/pc80/pc/Makefile.mk delete mode 100644 src/drivers/pc80/rtc/Makefile.inc create mode 100644 src/drivers/pc80/rtc/Makefile.mk delete mode 100644 src/drivers/pc80/tpm/Makefile.inc create mode 100644 src/drivers/pc80/tpm/Makefile.mk delete mode 100644 src/drivers/pc80/vga/Makefile.inc create mode 100644 src/drivers/pc80/vga/Makefile.mk delete mode 100644 src/drivers/pcie/generic/Makefile.inc create mode 100644 src/drivers/pcie/generic/Makefile.mk delete mode 100644 src/drivers/pcie/rtd3/device/Makefile.inc create mode 100644 src/drivers/pcie/rtd3/device/Makefile.mk delete mode 100644 src/drivers/ricoh/rce822/Makefile.inc create mode 100644 src/drivers/ricoh/rce822/Makefile.mk delete mode 100644 src/drivers/secunet/dmi/Makefile.inc create mode 100644 src/drivers/secunet/dmi/Makefile.mk delete mode 100644 src/drivers/siemens/nc_fpga/Makefile.inc create mode 100644 src/drivers/siemens/nc_fpga/Makefile.mk delete mode 100644 src/drivers/sil/3114/Makefile.inc create mode 100644 src/drivers/sil/3114/Makefile.mk delete mode 100644 src/drivers/smbus/Makefile.inc create mode 100644 src/drivers/smbus/Makefile.mk delete mode 100644 src/drivers/smmstore/Makefile.inc create mode 100644 src/drivers/smmstore/Makefile.mk delete mode 100644 src/drivers/sof/Makefile.inc create mode 100644 src/drivers/sof/Makefile.mk delete mode 100644 src/drivers/soundwire/alc1308/Makefile.inc create mode 100644 src/drivers/soundwire/alc1308/Makefile.mk delete mode 100644 src/drivers/soundwire/alc5682/Makefile.inc create mode 100644 src/drivers/soundwire/alc5682/Makefile.mk delete mode 100644 src/drivers/soundwire/alc711/Makefile.inc create mode 100644 src/drivers/soundwire/alc711/Makefile.mk delete mode 100644 src/drivers/soundwire/cs42l42/Makefile.inc create mode 100644 src/drivers/soundwire/cs42l42/Makefile.mk delete mode 100644 src/drivers/soundwire/max98363/Makefile.inc create mode 100644 src/drivers/soundwire/max98363/Makefile.mk delete mode 100644 src/drivers/soundwire/max98373/Makefile.inc create mode 100644 src/drivers/soundwire/max98373/Makefile.mk delete mode 100644 src/drivers/spi/Makefile.inc create mode 100644 src/drivers/spi/Makefile.mk delete mode 100644 src/drivers/spi/acpi/Makefile.inc create mode 100644 src/drivers/spi/acpi/Makefile.mk delete mode 100644 src/drivers/spi/tpm/Makefile.inc create mode 100644 src/drivers/spi/tpm/Makefile.mk delete mode 100644 src/drivers/ti/sn65dsi86bridge/Makefile.inc create mode 100644 src/drivers/ti/sn65dsi86bridge/Makefile.mk delete mode 100644 src/drivers/ti/tps65090/Makefile.inc create mode 100644 src/drivers/ti/tps65090/Makefile.mk delete mode 100644 src/drivers/ti/tps65913/Makefile.inc create mode 100644 src/drivers/ti/tps65913/Makefile.mk delete mode 100644 src/drivers/tpm/Makefile.inc create mode 100644 src/drivers/tpm/Makefile.mk delete mode 100644 src/drivers/uart/Makefile.inc create mode 100644 src/drivers/uart/Makefile.mk delete mode 100644 src/drivers/uart/acpi/Makefile.inc create mode 100644 src/drivers/uart/acpi/Makefile.mk delete mode 100644 src/drivers/usb/Makefile.inc create mode 100644 src/drivers/usb/Makefile.mk delete mode 100644 src/drivers/usb/acpi/Makefile.inc create mode 100644 src/drivers/usb/acpi/Makefile.mk delete mode 100644 src/drivers/usb/hub/Makefile.inc create mode 100644 src/drivers/usb/hub/Makefile.mk delete mode 100644 src/drivers/usb/pci_xhci/Makefile.inc create mode 100644 src/drivers/usb/pci_xhci/Makefile.mk delete mode 100644 src/drivers/vpd/Makefile.inc create mode 100644 src/drivers/vpd/Makefile.mk delete mode 100644 src/drivers/wifi/generic/Makefile.inc create mode 100644 src/drivers/wifi/generic/Makefile.mk delete mode 100644 src/drivers/wwan/fm/Makefile.inc create mode 100644 src/drivers/wwan/fm/Makefile.mk (limited to 'src') diff --git a/src/drivers/parade/ps8625/Makefile.inc b/src/drivers/parade/ps8625/Makefile.inc deleted file mode 100644 index 2db5bbd85f..0000000000 --- a/src/drivers/parade/ps8625/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVER_PARADE_PS8625) += ps8625.c diff --git a/src/drivers/parade/ps8625/Makefile.mk b/src/drivers/parade/ps8625/Makefile.mk new file mode 100644 index 0000000000..2db5bbd85f --- /dev/null +++ b/src/drivers/parade/ps8625/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVER_PARADE_PS8625) += ps8625.c diff --git a/src/drivers/parade/ps8640/Makefile.inc b/src/drivers/parade/ps8640/Makefile.inc deleted file mode 100644 index 5a458b0c49..0000000000 --- a/src/drivers/parade/ps8640/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVER_PARADE_PS8640) += ps8640.c diff --git a/src/drivers/parade/ps8640/Makefile.mk b/src/drivers/parade/ps8640/Makefile.mk new file mode 100644 index 0000000000..5a458b0c49 --- /dev/null +++ b/src/drivers/parade/ps8640/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVER_PARADE_PS8640) += ps8640.c diff --git a/src/drivers/pc80/pc/Makefile.inc b/src/drivers/pc80/pc/Makefile.inc deleted file mode 100644 index 3c1ce48be9..0000000000 --- a/src/drivers/pc80/pc/Makefile.inc +++ /dev/null @@ -1,15 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_ARCH_X86),y) - -ramstage-y += isa-dma.c -ramstage-y += i8259.c -ramstage-y += keyboard.c -ramstage-$(CONFIG_SPKMODEM) += spkmodem.c -romstage-$(CONFIG_SPKMODEM) += spkmodem.c -bootblock-$(CONFIG_SPKMODEM) += spkmodem.c - -all_x86-y += i8254.c -smm-y += i8254.c - -endif diff --git a/src/drivers/pc80/pc/Makefile.mk b/src/drivers/pc80/pc/Makefile.mk new file mode 100644 index 0000000000..3c1ce48be9 --- /dev/null +++ b/src/drivers/pc80/pc/Makefile.mk @@ -0,0 +1,15 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_ARCH_X86),y) + +ramstage-y += isa-dma.c +ramstage-y += i8259.c +ramstage-y += keyboard.c +ramstage-$(CONFIG_SPKMODEM) += spkmodem.c +romstage-$(CONFIG_SPKMODEM) += spkmodem.c +bootblock-$(CONFIG_SPKMODEM) += spkmodem.c + +all_x86-y += i8254.c +smm-y += i8254.c + +endif diff --git a/src/drivers/pc80/rtc/Makefile.inc b/src/drivers/pc80/rtc/Makefile.inc deleted file mode 100644 index 9d248780b1..0000000000 --- a/src/drivers/pc80/rtc/Makefile.inc +++ /dev/null @@ -1,21 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_ARCH_X86),y) - -all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c - -all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c -smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c - -all-$(CONFIG_USE_OPTION_TABLE) += option.c -smm-$(CONFIG_USE_OPTION_TABLE) += option.c - -all-$(CONFIG_CMOS_POST) += post.c - -ifeq ($(CONFIG_USE_OPTION_TABLE),y) -cbfs-files-$(CONFIG_HAVE_CMOS_DEFAULT) += cmos.default -cmos.default-file = $(CONFIG_CMOS_DEFAULT_FILE):nvramtool -cmos.default-type = cmos_default -endif - -endif diff --git a/src/drivers/pc80/rtc/Makefile.mk b/src/drivers/pc80/rtc/Makefile.mk new file mode 100644 index 0000000000..9d248780b1 --- /dev/null +++ b/src/drivers/pc80/rtc/Makefile.mk @@ -0,0 +1,21 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_ARCH_X86),y) + +all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c + +all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c +smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c + +all-$(CONFIG_USE_OPTION_TABLE) += option.c +smm-$(CONFIG_USE_OPTION_TABLE) += option.c + +all-$(CONFIG_CMOS_POST) += post.c + +ifeq ($(CONFIG_USE_OPTION_TABLE),y) +cbfs-files-$(CONFIG_HAVE_CMOS_DEFAULT) += cmos.default +cmos.default-file = $(CONFIG_CMOS_DEFAULT_FILE):nvramtool +cmos.default-type = cmos_default +endif + +endif diff --git a/src/drivers/pc80/tpm/Makefile.inc b/src/drivers/pc80/tpm/Makefile.inc deleted file mode 100644 index 384bc40e70..0000000000 --- a/src/drivers/pc80/tpm/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_MEMORY_MAPPED_TPM),y) -all-y += tis.c -endif diff --git a/src/drivers/pc80/tpm/Makefile.mk b/src/drivers/pc80/tpm/Makefile.mk new file mode 100644 index 0000000000..384bc40e70 --- /dev/null +++ b/src/drivers/pc80/tpm/Makefile.mk @@ -0,0 +1,5 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_MEMORY_MAPPED_TPM),y) +all-y += tis.c +endif diff --git a/src/drivers/pc80/vga/Makefile.inc b/src/drivers/pc80/vga/Makefile.inc deleted file mode 100644 index 63ec6ba6ae..0000000000 --- a/src/drivers/pc80/vga/Makefile.inc +++ /dev/null @@ -1,15 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_ARCH_X86),y) - -romstage-$(CONFIG_ROMSTAGE_VGA) += vga_io.c -romstage-$(CONFIG_ROMSTAGE_VGA) += vga_palette.c -romstage-$(CONFIG_ROMSTAGE_VGA) += vga_font_8x16.c -romstage-$(CONFIG_ROMSTAGE_VGA) += vga.c - -ramstage-$(CONFIG_VGA) += vga_io.c -ramstage-$(CONFIG_VGA) += vga_palette.c -ramstage-$(CONFIG_VGA) += vga_font_8x16.c -ramstage-$(CONFIG_VGA) += vga.c - -endif diff --git a/src/drivers/pc80/vga/Makefile.mk b/src/drivers/pc80/vga/Makefile.mk new file mode 100644 index 0000000000..63ec6ba6ae --- /dev/null +++ b/src/drivers/pc80/vga/Makefile.mk @@ -0,0 +1,15 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_ARCH_X86),y) + +romstage-$(CONFIG_ROMSTAGE_VGA) += vga_io.c +romstage-$(CONFIG_ROMSTAGE_VGA) += vga_palette.c +romstage-$(CONFIG_ROMSTAGE_VGA) += vga_font_8x16.c +romstage-$(CONFIG_ROMSTAGE_VGA) += vga.c + +ramstage-$(CONFIG_VGA) += vga_io.c +ramstage-$(CONFIG_VGA) += vga_palette.c +ramstage-$(CONFIG_VGA) += vga_font_8x16.c +ramstage-$(CONFIG_VGA) += vga.c + +endif diff --git a/src/drivers/pcie/generic/Makefile.inc b/src/drivers/pcie/generic/Makefile.inc deleted file mode 100644 index fd08d37639..0000000000 --- a/src/drivers/pcie/generic/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_PCIE_GENERIC) += generic.c diff --git a/src/drivers/pcie/generic/Makefile.mk b/src/drivers/pcie/generic/Makefile.mk new file mode 100644 index 0000000000..fd08d37639 --- /dev/null +++ b/src/drivers/pcie/generic/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_PCIE_GENERIC) += generic.c diff --git a/src/drivers/pcie/rtd3/device/Makefile.inc b/src/drivers/pcie/rtd3/device/Makefile.inc deleted file mode 100644 index 23b17ec2fd..0000000000 --- a/src/drivers/pcie/rtd3/device/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_PCIE_RTD3_DEVICE) += chip.c diff --git a/src/drivers/pcie/rtd3/device/Makefile.mk b/src/drivers/pcie/rtd3/device/Makefile.mk new file mode 100644 index 0000000000..23b17ec2fd --- /dev/null +++ b/src/drivers/pcie/rtd3/device/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_PCIE_RTD3_DEVICE) += chip.c diff --git a/src/drivers/ricoh/rce822/Makefile.inc b/src/drivers/ricoh/rce822/Makefile.inc deleted file mode 100644 index fb30a453e6..0000000000 --- a/src/drivers/ricoh/rce822/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_RICOH_RCE822) += rce822.c diff --git a/src/drivers/ricoh/rce822/Makefile.mk b/src/drivers/ricoh/rce822/Makefile.mk new file mode 100644 index 0000000000..fb30a453e6 --- /dev/null +++ b/src/drivers/ricoh/rce822/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_RICOH_RCE822) += rce822.c diff --git a/src/drivers/secunet/dmi/Makefile.inc b/src/drivers/secunet/dmi/Makefile.inc deleted file mode 100644 index 6f126875a4..0000000000 --- a/src/drivers/secunet/dmi/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_SECUNET_DMI) += smbios.c diff --git a/src/drivers/secunet/dmi/Makefile.mk b/src/drivers/secunet/dmi/Makefile.mk new file mode 100644 index 0000000000..6f126875a4 --- /dev/null +++ b/src/drivers/secunet/dmi/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_SECUNET_DMI) += smbios.c diff --git a/src/drivers/siemens/nc_fpga/Makefile.inc b/src/drivers/siemens/nc_fpga/Makefile.inc deleted file mode 100644 index 95ec00aedc..0000000000 --- a/src/drivers/siemens/nc_fpga/Makefile.inc +++ /dev/null @@ -1,9 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVER_SIEMENS_NC_FPGA) += nc_fpga.c - -all-$(CONFIG_NC_FPGA_POST_CODE) += nc_fpga_early.c - -ifeq ($(CONFIG_NC_FPGA_POST_CODE),y) -CPPFLAGS_common += -I$(src)/drivers/siemens/nc_fpga -endif diff --git a/src/drivers/siemens/nc_fpga/Makefile.mk b/src/drivers/siemens/nc_fpga/Makefile.mk new file mode 100644 index 0000000000..95ec00aedc --- /dev/null +++ b/src/drivers/siemens/nc_fpga/Makefile.mk @@ -0,0 +1,9 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVER_SIEMENS_NC_FPGA) += nc_fpga.c + +all-$(CONFIG_NC_FPGA_POST_CODE) += nc_fpga_early.c + +ifeq ($(CONFIG_NC_FPGA_POST_CODE),y) +CPPFLAGS_common += -I$(src)/drivers/siemens/nc_fpga +endif diff --git a/src/drivers/sil/3114/Makefile.inc b/src/drivers/sil/3114/Makefile.inc deleted file mode 100644 index 0d151e4bc6..0000000000 --- a/src/drivers/sil/3114/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SIL_3114) += sil_sata.c diff --git a/src/drivers/sil/3114/Makefile.mk b/src/drivers/sil/3114/Makefile.mk new file mode 100644 index 0000000000..0d151e4bc6 --- /dev/null +++ b/src/drivers/sil/3114/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SIL_3114) += sil_sata.c diff --git a/src/drivers/smbus/Makefile.inc b/src/drivers/smbus/Makefile.inc deleted file mode 100644 index 251dc6565d..0000000000 --- a/src/drivers/smbus/Makefile.inc +++ /dev/null @@ -1,10 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_SC16IS7XX_INIT),y) -bootblock-y += sc16is7xx_init.c -romstage-y += sc16is7xx_init.c -endif - -ifeq ($(CONFIG_CONSOLE_I2C_SMBUS),y) -all-y += i2c_smbus_console.c -endif diff --git a/src/drivers/smbus/Makefile.mk b/src/drivers/smbus/Makefile.mk new file mode 100644 index 0000000000..251dc6565d --- /dev/null +++ b/src/drivers/smbus/Makefile.mk @@ -0,0 +1,10 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_SC16IS7XX_INIT),y) +bootblock-y += sc16is7xx_init.c +romstage-y += sc16is7xx_init.c +endif + +ifeq ($(CONFIG_CONSOLE_I2C_SMBUS),y) +all-y += i2c_smbus_console.c +endif diff --git a/src/drivers/smmstore/Makefile.inc b/src/drivers/smmstore/Makefile.inc deleted file mode 100644 index 4f69751d74..0000000000 --- a/src/drivers/smmstore/Makefile.inc +++ /dev/null @@ -1,7 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -all-$(CONFIG_SMMSTORE) += store.c - -ramstage-$(CONFIG_SMMSTORE_V2) += ramstage.c - -smm-$(CONFIG_SMMSTORE) += store.c smi.c diff --git a/src/drivers/smmstore/Makefile.mk b/src/drivers/smmstore/Makefile.mk new file mode 100644 index 0000000000..4f69751d74 --- /dev/null +++ b/src/drivers/smmstore/Makefile.mk @@ -0,0 +1,7 @@ +## SPDX-License-Identifier: GPL-2.0-only + +all-$(CONFIG_SMMSTORE) += store.c + +ramstage-$(CONFIG_SMMSTORE_V2) += ramstage.c + +smm-$(CONFIG_SMMSTORE) += store.c smi.c diff --git a/src/drivers/sof/Makefile.inc b/src/drivers/sof/Makefile.inc deleted file mode 100644 index 5682511e9f..0000000000 --- a/src/drivers/sof/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_AUDIO_SOF) += sof.c diff --git a/src/drivers/sof/Makefile.mk b/src/drivers/sof/Makefile.mk new file mode 100644 index 0000000000..5682511e9f --- /dev/null +++ b/src/drivers/sof/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_AUDIO_SOF) += sof.c diff --git a/src/drivers/soundwire/alc1308/Makefile.inc b/src/drivers/soundwire/alc1308/Makefile.inc deleted file mode 100644 index f6430d88e7..0000000000 --- a/src/drivers/soundwire/alc1308/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC1308) += alc1308.c diff --git a/src/drivers/soundwire/alc1308/Makefile.mk b/src/drivers/soundwire/alc1308/Makefile.mk new file mode 100644 index 0000000000..f6430d88e7 --- /dev/null +++ b/src/drivers/soundwire/alc1308/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC1308) += alc1308.c diff --git a/src/drivers/soundwire/alc5682/Makefile.inc b/src/drivers/soundwire/alc5682/Makefile.inc deleted file mode 100644 index 38a97093ce..0000000000 --- a/src/drivers/soundwire/alc5682/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC5682) += alc5682.c diff --git a/src/drivers/soundwire/alc5682/Makefile.mk b/src/drivers/soundwire/alc5682/Makefile.mk new file mode 100644 index 0000000000..38a97093ce --- /dev/null +++ b/src/drivers/soundwire/alc5682/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC5682) += alc5682.c diff --git a/src/drivers/soundwire/alc711/Makefile.inc b/src/drivers/soundwire/alc711/Makefile.inc deleted file mode 100644 index 63e0993435..0000000000 --- a/src/drivers/soundwire/alc711/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC711) += alc711.c diff --git a/src/drivers/soundwire/alc711/Makefile.mk b/src/drivers/soundwire/alc711/Makefile.mk new file mode 100644 index 0000000000..63e0993435 --- /dev/null +++ b/src/drivers/soundwire/alc711/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC711) += alc711.c diff --git a/src/drivers/soundwire/cs42l42/Makefile.inc b/src/drivers/soundwire/cs42l42/Makefile.inc deleted file mode 100644 index b7c2261627..0000000000 --- a/src/drivers/soundwire/cs42l42/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_CS42L42) += cs42l42.c diff --git a/src/drivers/soundwire/cs42l42/Makefile.mk b/src/drivers/soundwire/cs42l42/Makefile.mk new file mode 100644 index 0000000000..b7c2261627 --- /dev/null +++ b/src/drivers/soundwire/cs42l42/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_CS42L42) += cs42l42.c diff --git a/src/drivers/soundwire/max98363/Makefile.inc b/src/drivers/soundwire/max98363/Makefile.inc deleted file mode 100644 index 9c77f46e30..0000000000 --- a/src/drivers/soundwire/max98363/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_MAX98363) += max98363.c diff --git a/src/drivers/soundwire/max98363/Makefile.mk b/src/drivers/soundwire/max98363/Makefile.mk new file mode 100644 index 0000000000..9c77f46e30 --- /dev/null +++ b/src/drivers/soundwire/max98363/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_MAX98363) += max98363.c diff --git a/src/drivers/soundwire/max98373/Makefile.inc b/src/drivers/soundwire/max98373/Makefile.inc deleted file mode 100644 index c1efb73dfe..0000000000 --- a/src/drivers/soundwire/max98373/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_MAX98373) += max98373.c diff --git a/src/drivers/soundwire/max98373/Makefile.mk b/src/drivers/soundwire/max98373/Makefile.mk new file mode 100644 index 0000000000..c1efb73dfe --- /dev/null +++ b/src/drivers/soundwire/max98373/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_MAX98373) += max98373.c diff --git a/src/drivers/spi/Makefile.inc b/src/drivers/spi/Makefile.inc deleted file mode 100644 index 97c3d63d49..0000000000 --- a/src/drivers/spi/Makefile.inc +++ /dev/null @@ -1,43 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -# SPI flash driver interface - -subdirs-y += tpm - -ifeq ($(CONFIG_EM100PRO_SPI_CONSOLE),y) -ramstage-y += spiconsole.c -smm-y += spiconsole.c -endif - -# add SPI drivers per stage -# $1 stage name -# $2 optional _EARLY suffix for CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP(_EARLY) -define add_spi_stage -$(1)-y += spi-generic.c -$(1)-y += bitbang.c -$(1)-$(CONFIG_COMMON_CBFS_SPI_WRAPPER) += cbfs_spi.c -$(1)-$(CONFIG_SPI_FLASH) += spi_flash.c -$(1)-$(CONFIG_SPI_SDCARD) += spi_sdcard.c -$(1)-$(CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP$(2)) += boot_device_rw_nommap.c -$(1)-$(CONFIG_CONSOLE_SPI_FLASH) += flashconsole.c -$(1)-$(CONFIG_SPI_FLASH_ADESTO) += adesto.c -$(1)-$(CONFIG_SPI_FLASH_AMIC) += amic.c -$(1)-$(CONFIG_SPI_FLASH_ATMEL) += atmel.c -$(1)-$(CONFIG_SPI_FLASH_EON) += eon.c -$(1)-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.c -$(1)-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.c -$(1)-$(CONFIG_SPI_FLASH_SPANSION) += spansion.c -$(1)-$(CONFIG_SPI_FLASH_SST) += sst.c -$(1)-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.c -$(1)-$(CONFIG_SPI_FLASH_WINBOND) += winbond.c -$(1)-$(CONFIG_SPI_FLASH_ISSI) += issi.c -endef - -$(eval $(call add_spi_stage,bootblock,_EARLY)) -$(eval $(call add_spi_stage,romstage,_EARLY)) -$(eval $(call add_spi_stage,verstage,_EARLY)) -$(eval $(call add_spi_stage,postcar,_EARLY)) -$(eval $(call add_spi_stage,ramstage)) -ifeq ($(CONFIG_SPI_FLASH_SMM),y) -$(eval $(call add_spi_stage,smm)) -endif diff --git a/src/drivers/spi/Makefile.mk b/src/drivers/spi/Makefile.mk new file mode 100644 index 0000000000..97c3d63d49 --- /dev/null +++ b/src/drivers/spi/Makefile.mk @@ -0,0 +1,43 @@ +## SPDX-License-Identifier: GPL-2.0-only + +# SPI flash driver interface + +subdirs-y += tpm + +ifeq ($(CONFIG_EM100PRO_SPI_CONSOLE),y) +ramstage-y += spiconsole.c +smm-y += spiconsole.c +endif + +# add SPI drivers per stage +# $1 stage name +# $2 optional _EARLY suffix for CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP(_EARLY) +define add_spi_stage +$(1)-y += spi-generic.c +$(1)-y += bitbang.c +$(1)-$(CONFIG_COMMON_CBFS_SPI_WRAPPER) += cbfs_spi.c +$(1)-$(CONFIG_SPI_FLASH) += spi_flash.c +$(1)-$(CONFIG_SPI_SDCARD) += spi_sdcard.c +$(1)-$(CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP$(2)) += boot_device_rw_nommap.c +$(1)-$(CONFIG_CONSOLE_SPI_FLASH) += flashconsole.c +$(1)-$(CONFIG_SPI_FLASH_ADESTO) += adesto.c +$(1)-$(CONFIG_SPI_FLASH_AMIC) += amic.c +$(1)-$(CONFIG_SPI_FLASH_ATMEL) += atmel.c +$(1)-$(CONFIG_SPI_FLASH_EON) += eon.c +$(1)-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.c +$(1)-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.c +$(1)-$(CONFIG_SPI_FLASH_SPANSION) += spansion.c +$(1)-$(CONFIG_SPI_FLASH_SST) += sst.c +$(1)-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.c +$(1)-$(CONFIG_SPI_FLASH_WINBOND) += winbond.c +$(1)-$(CONFIG_SPI_FLASH_ISSI) += issi.c +endef + +$(eval $(call add_spi_stage,bootblock,_EARLY)) +$(eval $(call add_spi_stage,romstage,_EARLY)) +$(eval $(call add_spi_stage,verstage,_EARLY)) +$(eval $(call add_spi_stage,postcar,_EARLY)) +$(eval $(call add_spi_stage,ramstage)) +ifeq ($(CONFIG_SPI_FLASH_SMM),y) +$(eval $(call add_spi_stage,smm)) +endif diff --git a/src/drivers/spi/acpi/Makefile.inc b/src/drivers/spi/acpi/Makefile.inc deleted file mode 100644 index 18ab84a5af..0000000000 --- a/src/drivers/spi/acpi/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_SPI_ACPI) += acpi.c diff --git a/src/drivers/spi/acpi/Makefile.mk b/src/drivers/spi/acpi/Makefile.mk new file mode 100644 index 0000000000..18ab84a5af --- /dev/null +++ b/src/drivers/spi/acpi/Makefile.mk @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_SPI_ACPI) += acpi.c diff --git a/src/drivers/spi/tpm/Makefile.inc b/src/drivers/spi/tpm/Makefile.inc deleted file mode 100644 index e7a5d6369c..0000000000 --- a/src/drivers/spi/tpm/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_TPM)$(CONFIG_SPI_TPM),yy) -all-y += tis.c tpm.c -endif diff --git a/src/drivers/spi/tpm/Makefile.mk b/src/drivers/spi/tpm/Makefile.mk new file mode 100644 index 0000000000..e7a5d6369c --- /dev/null +++ b/src/drivers/spi/tpm/Makefile.mk @@ -0,0 +1,5 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_TPM)$(CONFIG_SPI_TPM),yy) +all-y += tis.c tpm.c +endif diff --git a/src/drivers/ti/sn65dsi86bridge/Makefile.inc b/src/drivers/ti/sn65dsi86bridge/Makefile.inc deleted file mode 100644 index b146fe363c..0000000000 --- a/src/drivers/ti/sn65dsi86bridge/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_TI_SN65DSI86BRIDGE) += sn65dsi86bridge.c diff --git a/src/drivers/ti/sn65dsi86bridge/Makefile.mk b/src/drivers/ti/sn65dsi86bridge/Makefile.mk new file mode 100644 index 0000000000..b146fe363c --- /dev/null +++ b/src/drivers/ti/sn65dsi86bridge/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_TI_SN65DSI86BRIDGE) += sn65dsi86bridge.c diff --git a/src/drivers/ti/tps65090/Makefile.inc b/src/drivers/ti/tps65090/Makefile.inc deleted file mode 100644 index 26f5b501f5..0000000000 --- a/src/drivers/ti/tps65090/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVER_TI_TPS65090) += tps65090.c diff --git a/src/drivers/ti/tps65090/Makefile.mk b/src/drivers/ti/tps65090/Makefile.mk new file mode 100644 index 0000000000..26f5b501f5 --- /dev/null +++ b/src/drivers/ti/tps65090/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVER_TI_TPS65090) += tps65090.c diff --git a/src/drivers/ti/tps65913/Makefile.inc b/src/drivers/ti/tps65913/Makefile.inc deleted file mode 100644 index acadae9282..0000000000 --- a/src/drivers/ti/tps65913/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_TI_TPS65913_RTC) += tps65913rtc.c diff --git a/src/drivers/ti/tps65913/Makefile.mk b/src/drivers/ti/tps65913/Makefile.mk new file mode 100644 index 0000000000..acadae9282 --- /dev/null +++ b/src/drivers/ti/tps65913/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_TI_TPS65913_RTC) += tps65913rtc.c diff --git a/src/drivers/tpm/Makefile.inc b/src/drivers/tpm/Makefile.inc deleted file mode 100644 index 3ed5173db7..0000000000 --- a/src/drivers/tpm/Makefile.inc +++ /dev/null @@ -1,15 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_TPM),y) - -ramstage-$(CONFIG_TPM_INIT_RAMSTAGE) += tpm.c - -ifeq ($(CONFIG_TPM_PPI),y) -ramstage-$(CONFIG_HAVE_ACPI_TABLES) += ppi.c -else -ramstage-$(CONFIG_HAVE_ACPI_TABLES) += ppi_stub.c -endif - -all-$(CONFIG_TPM_GOOGLE) += cr50.c - -endif diff --git a/src/drivers/tpm/Makefile.mk b/src/drivers/tpm/Makefile.mk new file mode 100644 index 0000000000..3ed5173db7 --- /dev/null +++ b/src/drivers/tpm/Makefile.mk @@ -0,0 +1,15 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_TPM),y) + +ramstage-$(CONFIG_TPM_INIT_RAMSTAGE) += tpm.c + +ifeq ($(CONFIG_TPM_PPI),y) +ramstage-$(CONFIG_HAVE_ACPI_TABLES) += ppi.c +else +ramstage-$(CONFIG_HAVE_ACPI_TABLES) += ppi_stub.c +endif + +all-$(CONFIG_TPM_GOOGLE) += cr50.c + +endif diff --git a/src/drivers/uart/Makefile.inc b/src/drivers/uart/Makefile.inc deleted file mode 100644 index 9fd1fb3998..0000000000 --- a/src/drivers/uart/Makefile.inc +++ /dev/null @@ -1,56 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_DRIVERS_UART),y) - -romstage-y += util.c -postcar-y += util.c -ramstage-y += util.c -bootblock-y += util.c -verstage-y += util.c -smm-$(CONFIG_DEBUG_SMI) += util.c - -# Add the driver, only one can be enabled. The driver files may -# be located in the soc/ or cpu/ directories instead of here. - -ifeq ($(CONFIG_DRIVERS_UART_8250IO),y) -bootblock-y += uart8250io.c -verstage-y += uart8250io.c -romstage-y += uart8250io.c -postcar-y += uart8250io.c -ramstage-y += uart8250io.c -smm-$(CONFIG_DEBUG_SMI) += uart8250io.c -endif - -ifeq ($(CONFIG_DRIVERS_UART_8250MEM),y) -bootblock-y += uart8250mem.c -verstage-y += uart8250mem.c -romstage-y += uart8250mem.c -postcar-y += uart8250mem.c -ramstage-y += uart8250mem.c -smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c -endif - -ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y) -bootblock-y += oxpcie_early.c -verstage-y += oxpcie_early.c -romstage-y += oxpcie_early.c -postcar-y += oxpcie_early.c -ramstage-y += oxpcie_early.c oxpcie.c -endif - -ifeq ($(CONFIG_DRIVERS_UART_PL011),y) -bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c -romstage-y += pl011.c -postcar-y += pl011.c -ramstage-y += pl011.c -verstage-y += pl011.c -endif - -ifeq ($(CONFIG_DRIVERS_UART_SIFIVE),y) -bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += sifive.c -romstage-y += sifive.c -postcar-y += sifive.c -ramstage-y += sifive.c -endif - -endif diff --git a/src/drivers/uart/Makefile.mk b/src/drivers/uart/Makefile.mk new file mode 100644 index 0000000000..9fd1fb3998 --- /dev/null +++ b/src/drivers/uart/Makefile.mk @@ -0,0 +1,56 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_DRIVERS_UART),y) + +romstage-y += util.c +postcar-y += util.c +ramstage-y += util.c +bootblock-y += util.c +verstage-y += util.c +smm-$(CONFIG_DEBUG_SMI) += util.c + +# Add the driver, only one can be enabled. The driver files may +# be located in the soc/ or cpu/ directories instead of here. + +ifeq ($(CONFIG_DRIVERS_UART_8250IO),y) +bootblock-y += uart8250io.c +verstage-y += uart8250io.c +romstage-y += uart8250io.c +postcar-y += uart8250io.c +ramstage-y += uart8250io.c +smm-$(CONFIG_DEBUG_SMI) += uart8250io.c +endif + +ifeq ($(CONFIG_DRIVERS_UART_8250MEM),y) +bootblock-y += uart8250mem.c +verstage-y += uart8250mem.c +romstage-y += uart8250mem.c +postcar-y += uart8250mem.c +ramstage-y += uart8250mem.c +smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c +endif + +ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y) +bootblock-y += oxpcie_early.c +verstage-y += oxpcie_early.c +romstage-y += oxpcie_early.c +postcar-y += oxpcie_early.c +ramstage-y += oxpcie_early.c oxpcie.c +endif + +ifeq ($(CONFIG_DRIVERS_UART_PL011),y) +bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c +romstage-y += pl011.c +postcar-y += pl011.c +ramstage-y += pl011.c +verstage-y += pl011.c +endif + +ifeq ($(CONFIG_DRIVERS_UART_SIFIVE),y) +bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += sifive.c +romstage-y += sifive.c +postcar-y += sifive.c +ramstage-y += sifive.c +endif + +endif diff --git a/src/drivers/uart/acpi/Makefile.inc b/src/drivers/uart/acpi/Makefile.inc deleted file mode 100644 index 3cf4514d21..0000000000 --- a/src/drivers/uart/acpi/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_UART_ACPI) += acpi.c diff --git a/src/drivers/uart/acpi/Makefile.mk b/src/drivers/uart/acpi/Makefile.mk new file mode 100644 index 0000000000..3cf4514d21 --- /dev/null +++ b/src/drivers/uart/acpi/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_UART_ACPI) += acpi.c diff --git a/src/drivers/usb/Makefile.inc b/src/drivers/usb/Makefile.inc deleted file mode 100644 index 3c29545223..0000000000 --- a/src/drivers/usb/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c -verstage-$(CONFIG_USBDEBUG) += ehci_debug.c console.c -romstage-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c -postcar-$(CONFIG_USBDEBUG) += ehci_debug.c console.c - -ramstage-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c diff --git a/src/drivers/usb/Makefile.mk b/src/drivers/usb/Makefile.mk new file mode 100644 index 0000000000..3c29545223 --- /dev/null +++ b/src/drivers/usb/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c +verstage-$(CONFIG_USBDEBUG) += ehci_debug.c console.c +romstage-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c +postcar-$(CONFIG_USBDEBUG) += ehci_debug.c console.c + +ramstage-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c diff --git a/src/drivers/usb/acpi/Makefile.inc b/src/drivers/usb/acpi/Makefile.inc deleted file mode 100644 index e525b466c9..0000000000 --- a/src/drivers/usb/acpi/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_USB_ACPI) += usb_acpi.c diff --git a/src/drivers/usb/acpi/Makefile.mk b/src/drivers/usb/acpi/Makefile.mk new file mode 100644 index 0000000000..e525b466c9 --- /dev/null +++ b/src/drivers/usb/acpi/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_USB_ACPI) += usb_acpi.c diff --git a/src/drivers/usb/hub/Makefile.inc b/src/drivers/usb/hub/Makefile.inc deleted file mode 100644 index 3222a81db3..0000000000 --- a/src/drivers/usb/hub/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_USB_HUB) += acpi.c diff --git a/src/drivers/usb/hub/Makefile.mk b/src/drivers/usb/hub/Makefile.mk new file mode 100644 index 0000000000..3222a81db3 --- /dev/null +++ b/src/drivers/usb/hub/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_USB_HUB) += acpi.c diff --git a/src/drivers/usb/pci_xhci/Makefile.inc b/src/drivers/usb/pci_xhci/Makefile.inc deleted file mode 100644 index 4f9187baa8..0000000000 --- a/src/drivers/usb/pci_xhci/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_USB_PCI_XHCI) += pci_xhci.c diff --git a/src/drivers/usb/pci_xhci/Makefile.mk b/src/drivers/usb/pci_xhci/Makefile.mk new file mode 100644 index 0000000000..4f9187baa8 --- /dev/null +++ b/src/drivers/usb/pci_xhci/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_USB_PCI_XHCI) += pci_xhci.c diff --git a/src/drivers/vpd/Makefile.inc b/src/drivers/vpd/Makefile.inc deleted file mode 100644 index 615e48a18e..0000000000 --- a/src/drivers/vpd/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -bootblock-$(CONFIG_VPD) += vpd_decode.c vpd.c -verstage-$(CONFIG_VPD) += vpd_decode.c vpd.c -romstage-$(CONFIG_VPD) += vpd_decode.c vpd.c -postcar-$(CONFIG_VPD) += vpd_decode.c vpd.c -ramstage-$(CONFIG_VPD) += vpd_decode.c vpd.c -ramstage-$(CONFIG_SMBIOS_SERIAL_FROM_VPD) += vpd_serial.c diff --git a/src/drivers/vpd/Makefile.mk b/src/drivers/vpd/Makefile.mk new file mode 100644 index 0000000000..615e48a18e --- /dev/null +++ b/src/drivers/vpd/Makefile.mk @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-only + +bootblock-$(CONFIG_VPD) += vpd_decode.c vpd.c +verstage-$(CONFIG_VPD) += vpd_decode.c vpd.c +romstage-$(CONFIG_VPD) += vpd_decode.c vpd.c +postcar-$(CONFIG_VPD) += vpd_decode.c vpd.c +ramstage-$(CONFIG_VPD) += vpd_decode.c vpd.c +ramstage-$(CONFIG_SMBIOS_SERIAL_FROM_VPD) += vpd_serial.c diff --git a/src/drivers/wifi/generic/Makefile.inc b/src/drivers/wifi/generic/Makefile.inc deleted file mode 100644 index 337b8fe1ec..0000000000 --- a/src/drivers/wifi/generic/Makefile.inc +++ /dev/null @@ -1,22 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - - -ifeq ($(CONFIG_DRIVERS_WIFI_GENERIC),y) - -romstage-y += generic.c - -ramstage-y += generic.c -ramstage-$(CONFIG_GENERATE_SMBIOS_TABLES) += smbios.c -ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c - -CONFIG_WIFI_SAR_CBFS_FILEPATH := $(call strip_quotes,$(CONFIG_WIFI_SAR_CBFS_FILEPATH)) - -ifneq ($(CONFIG_WIFI_SAR_CBFS_FILEPATH),) - -cbfs-files-$(CONFIG_USE_SAR) += wifi_sar_defaults.hex -wifi_sar_defaults.hex-file := $(CONFIG_WIFI_SAR_CBFS_FILEPATH) -wifi_sar_defaults.hex-type := raw - -endif - -endif diff --git a/src/drivers/wifi/generic/Makefile.mk b/src/drivers/wifi/generic/Makefile.mk new file mode 100644 index 0000000000..337b8fe1ec --- /dev/null +++ b/src/drivers/wifi/generic/Makefile.mk @@ -0,0 +1,22 @@ +## SPDX-License-Identifier: GPL-2.0-only + + +ifeq ($(CONFIG_DRIVERS_WIFI_GENERIC),y) + +romstage-y += generic.c + +ramstage-y += generic.c +ramstage-$(CONFIG_GENERATE_SMBIOS_TABLES) += smbios.c +ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c + +CONFIG_WIFI_SAR_CBFS_FILEPATH := $(call strip_quotes,$(CONFIG_WIFI_SAR_CBFS_FILEPATH)) + +ifneq ($(CONFIG_WIFI_SAR_CBFS_FILEPATH),) + +cbfs-files-$(CONFIG_USE_SAR) += wifi_sar_defaults.hex +wifi_sar_defaults.hex-file := $(CONFIG_WIFI_SAR_CBFS_FILEPATH) +wifi_sar_defaults.hex-type := raw + +endif + +endif diff --git a/src/drivers/wwan/fm/Makefile.inc b/src/drivers/wwan/fm/Makefile.inc deleted file mode 100644 index cc3ff3d615..0000000000 --- a/src/drivers/wwan/fm/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_WWAN_FM350GL) += acpi_fm350gl.c diff --git a/src/drivers/wwan/fm/Makefile.mk b/src/drivers/wwan/fm/Makefile.mk new file mode 100644 index 0000000000..cc3ff3d615 --- /dev/null +++ b/src/drivers/wwan/fm/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_WWAN_FM350GL) += acpi_fm350gl.c -- cgit v1.2.3