summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2023-08-04 12:07:51 -0600
committerMartin L Roth <gaumless@gmail.com>2023-08-06 19:27:36 +0000
commit8324fe92111844d1afe2a87d6d38302520793909 (patch)
tree5d11ec55b8a21944b49321c10a2ba556213cff0c /src/drivers
parentf6ca89c2241103c326641f21396f60bb079aa6a4 (diff)
downloadcoreboot-8324fe92111844d1afe2a87d6d38302520793909.tar.gz
coreboot-8324fe92111844d1afe2a87d6d38302520793909.tar.bz2
coreboot-8324fe92111844d1afe2a87d6d38302520793909.zip
drivers: Add SPDX license headers to Makefiles
To help identify the licenses of the various files contained in the coreboot source, we've added SPDX headers to the top of all of the .c and .h files. This extends that practice to Makefiles. Any file in the coreboot project without a specific license is bound to the license of the overall coreboot project, GPL Version 2. This patch adds the GPL V2 license identifier to the top of all makefiles in the drivers directory that don't already have an SPDX license line at the top. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I8442bc18ce228eca88a084660be84bcd1c5de928 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68980 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Tim Crawford <tcrawford@system76.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/acpi/thermal_zone/Makefile.inc2
-rw-r--r--src/drivers/amd/i2s_machine_dev/Makefile.inc2
-rw-r--r--src/drivers/ams/Makefile.inc2
-rw-r--r--src/drivers/aspeed/ast2050/Makefile.inc2
-rw-r--r--src/drivers/aspeed/common/Makefile.inc2
-rw-r--r--src/drivers/camera/Makefile.inc2
-rw-r--r--src/drivers/crb/Makefile.inc2
-rw-r--r--src/drivers/elog/Makefile.inc2
-rw-r--r--src/drivers/emulation/qemu/Makefile.inc2
-rw-r--r--src/drivers/generic/adau7002/Makefile.inc2
-rw-r--r--src/drivers/generic/alc1015/Makefile.inc2
-rw-r--r--src/drivers/generic/bayhub/Makefile.inc2
-rw-r--r--src/drivers/generic/bayhub_lv2/Makefile.inc2
-rw-r--r--src/drivers/generic/cbfs-serial/Makefile.inc2
-rw-r--r--src/drivers/generic/cbfs-uuid/Makefile.inc2
-rw-r--r--src/drivers/generic/gpio_keys/Makefile.inc2
-rw-r--r--src/drivers/generic/max98357a/Makefile.inc2
-rw-r--r--src/drivers/generic/nau8315/Makefile.inc2
-rw-r--r--src/drivers/genesyslogic/gl9750/Makefile.inc2
-rw-r--r--src/drivers/genesyslogic/gl9755/Makefile.inc2
-rw-r--r--src/drivers/genesyslogic/gl9763e/Makefile.inc2
-rw-r--r--src/drivers/gfx/generic/Makefile.inc2
-rw-r--r--src/drivers/i2c/at24rf08c/Makefile.inc2
-rw-r--r--src/drivers/i2c/ck505/Makefile.inc2
-rw-r--r--src/drivers/i2c/cs35l53/Makefile.inc2
-rw-r--r--src/drivers/i2c/cs42l42/Makefile.inc2
-rw-r--r--src/drivers/i2c/da7219/Makefile.inc2
-rw-r--r--src/drivers/i2c/designware/Makefile.inc2
-rw-r--r--src/drivers/i2c/generic/Makefile.inc2
-rw-r--r--src/drivers/i2c/gpiomux/Makefile.inc2
-rw-r--r--src/drivers/i2c/gpiomux/bus/Makefile.inc2
-rw-r--r--src/drivers/i2c/gpiomux/mux/Makefile.inc2
-rw-r--r--src/drivers/i2c/hid/Makefile.inc2
-rw-r--r--src/drivers/i2c/lm96000/Makefile.inc2
-rw-r--r--src/drivers/i2c/max98373/Makefile.inc2
-rw-r--r--src/drivers/i2c/max98390/Makefile.inc2
-rw-r--r--src/drivers/i2c/max98396/Makefile.inc2
-rw-r--r--src/drivers/i2c/max98927/Makefile.inc2
-rw-r--r--src/drivers/i2c/nau8825/Makefile.inc2
-rw-r--r--src/drivers/i2c/nct7802y/Makefile.inc2
-rw-r--r--src/drivers/i2c/pca9538/Makefile.inc2
-rw-r--r--src/drivers/i2c/pi608gp/Makefile.inc2
-rw-r--r--src/drivers/i2c/ptn3460/Makefile.inc2
-rw-r--r--src/drivers/i2c/rt1011/Makefile.inc2
-rw-r--r--src/drivers/i2c/rt5663/Makefile.inc2
-rw-r--r--src/drivers/i2c/rtd2132/Makefile.inc2
-rw-r--r--src/drivers/i2c/rv3028c7/Makefile.inc2
-rw-r--r--src/drivers/i2c/rx6110sa/Makefile.inc2
-rw-r--r--src/drivers/i2c/sx9310/Makefile.inc2
-rw-r--r--src/drivers/i2c/sx9324/Makefile.inc2
-rw-r--r--src/drivers/i2c/sx9360/Makefile.inc2
-rw-r--r--src/drivers/i2c/tas5825m/Makefile.inc2
-rw-r--r--src/drivers/i2c/tpm/Makefile.inc2
-rw-r--r--src/drivers/i2c/ww_ring/Makefile.inc2
-rw-r--r--src/drivers/intel/dptf/Makefile.inc2
-rw-r--r--src/drivers/intel/ish/Makefile.inc2
-rw-r--r--src/drivers/intel/mipi_camera/Makefile.inc2
-rw-r--r--src/drivers/intel/pmc_mux/Makefile.inc2
-rw-r--r--src/drivers/intel/pmc_mux/conn/Makefile.inc2
-rw-r--r--src/drivers/intel/ptt/Makefile.inc2
-rw-r--r--src/drivers/intel/soundwire/Makefile.inc2
-rw-r--r--src/drivers/intel/usb4/retimer/Makefile.inc2
-rw-r--r--src/drivers/ipmi/Makefile.inc2
-rw-r--r--src/drivers/ipmi/ocp/Makefile.inc2
-rw-r--r--src/drivers/lenovo/Makefile.inc2
-rw-r--r--src/drivers/mrc_cache/Makefile.inc2
-rw-r--r--src/drivers/net/Makefile.inc2
-rw-r--r--src/drivers/net/phy/m88e1512/Makefile.inc2
-rw-r--r--src/drivers/nxp/uwb/Makefile.inc2
-rw-r--r--src/drivers/ocp/dmi/Makefile.inc2
-rw-r--r--src/drivers/ocp/ewl/Makefile.inc2
-rw-r--r--src/drivers/ocp/vpd/Makefile.inc2
-rw-r--r--src/drivers/pc80/pc/Makefile.inc2
-rw-r--r--src/drivers/pc80/rtc/Makefile.inc2
-rw-r--r--src/drivers/pc80/tpm/Makefile.inc2
-rw-r--r--src/drivers/pc80/vga/Makefile.inc2
-rw-r--r--src/drivers/pcie/generic/Makefile.inc2
-rw-r--r--src/drivers/pcie/rtd3/device/Makefile.inc2
-rw-r--r--src/drivers/ricoh/rce822/Makefile.inc2
-rw-r--r--src/drivers/secunet/dmi/Makefile.inc2
-rw-r--r--src/drivers/sil/3114/Makefile.inc2
-rw-r--r--src/drivers/smbus/Makefile.inc2
-rw-r--r--src/drivers/smmstore/Makefile.inc2
-rw-r--r--src/drivers/sof/Makefile.inc2
-rw-r--r--src/drivers/soundwire/alc1308/Makefile.inc2
-rw-r--r--src/drivers/soundwire/alc5682/Makefile.inc2
-rw-r--r--src/drivers/soundwire/alc711/Makefile.inc2
-rw-r--r--src/drivers/soundwire/cs42l42/Makefile.inc2
-rw-r--r--src/drivers/soundwire/max98363/Makefile.inc2
-rw-r--r--src/drivers/soundwire/max98373/Makefile.inc2
-rw-r--r--src/drivers/spi/Makefile.inc2
-rw-r--r--src/drivers/spi/tpm/Makefile.inc2
-rw-r--r--src/drivers/tpm/Makefile.inc2
-rw-r--r--src/drivers/uart/Makefile.inc2
-rw-r--r--src/drivers/uart/acpi/Makefile.inc2
-rw-r--r--src/drivers/usb/Makefile.inc2
-rw-r--r--src/drivers/usb/acpi/Makefile.inc2
-rw-r--r--src/drivers/usb/hub/Makefile.inc2
-rw-r--r--src/drivers/usb/pci_xhci/Makefile.inc2
-rw-r--r--src/drivers/wifi/generic/Makefile.inc2
-rw-r--r--src/drivers/wwan/fm/Makefile.inc2
101 files changed, 202 insertions, 0 deletions
diff --git a/src/drivers/acpi/thermal_zone/Makefile.inc b/src/drivers/acpi/thermal_zone/Makefile.inc
index 0a15b9166724..3bf110c8a54d 100644
--- a/src/drivers/acpi/thermal_zone/Makefile.inc
+++ b/src/drivers/acpi/thermal_zone/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_ACPI_THERMAL_ZONE) += thermal_zone.c
diff --git a/src/drivers/amd/i2s_machine_dev/Makefile.inc b/src/drivers/amd/i2s_machine_dev/Makefile.inc
index df09f4d0167c..7d0540f18890 100644
--- a/src/drivers/amd/i2s_machine_dev/Makefile.inc
+++ b/src/drivers/amd/i2s_machine_dev/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_AMD_I2S_MACHINE_DEV) += i2s_machine_dev.c
diff --git a/src/drivers/ams/Makefile.inc b/src/drivers/ams/Makefile.inc
index cf5183196c65..f1c13452535b 100644
--- a/src/drivers/ams/Makefile.inc
+++ b/src/drivers/ams/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_AS3722_RTC) += as3722rtc.c
diff --git a/src/drivers/aspeed/ast2050/Makefile.inc b/src/drivers/aspeed/ast2050/Makefile.inc
index 9e5b5c54ee96..3523d7a1ae50 100644
--- a/src/drivers/aspeed/ast2050/Makefile.inc
+++ b/src/drivers/aspeed/ast2050/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_ASPEED_AST2050) += ast2050.c
diff --git a/src/drivers/aspeed/common/Makefile.inc b/src/drivers/aspeed/common/Makefile.inc
index 1f4b858a5aee..f52b5e096ab2 100644
--- a/src/drivers/aspeed/common/Makefile.inc
+++ b/src/drivers/aspeed/common/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_DRIVERS_ASPEED_AST_COMMON),y)
ramstage-y += ast_dp501.c ast_main.c ast_post.c
ramstage-$(CONFIG_GENERIC_LINEAR_FRAMEBUFFER) += ast_mode.c ast_i2c.c ast_mode_corebootfb.c
diff --git a/src/drivers/camera/Makefile.inc b/src/drivers/camera/Makefile.inc
index 1a6e60946553..f2c6eff27068 100644
--- a/src/drivers/camera/Makefile.inc
+++ b/src/drivers/camera/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_CHROMEOS_CAMERA) += cros_camera.c
diff --git a/src/drivers/crb/Makefile.inc b/src/drivers/crb/Makefile.inc
index 5124514cca27..d7e8b74ebff0 100644
--- a/src/drivers/crb/Makefile.inc
+++ b/src/drivers/crb/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_CRB_TPM),y)
all-y += tis.c tpm.c
endif
diff --git a/src/drivers/elog/Makefile.inc b/src/drivers/elog/Makefile.inc
index 370eef44d1c8..7bc229caf7cf 100644
--- a/src/drivers/elog/Makefile.inc
+++ b/src/drivers/elog/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
bootblock-$(CONFIG_ELOG) += elog.c
verstage-$(CONFIG_ELOG) += elog.c
romstage-$(CONFIG_ELOG) += elog.c
diff --git a/src/drivers/emulation/qemu/Makefile.inc b/src/drivers/emulation/qemu/Makefile.inc
index d9db1304bb51..6f5ff3a1d67a 100644
--- a/src/drivers/emulation/qemu/Makefile.inc
+++ b/src/drivers/emulation/qemu/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
bootblock-$(CONFIG_CONSOLE_QEMU_DEBUGCON) += qemu_debugcon.c
romstage-$(CONFIG_CONSOLE_QEMU_DEBUGCON) += qemu_debugcon.c
postcar-$(CONFIG_CONSOLE_QEMU_DEBUGCON) += qemu_debugcon.c
diff --git a/src/drivers/generic/adau7002/Makefile.inc b/src/drivers/generic/adau7002/Makefile.inc
index b2f7dfef527e..3b88a39dafca 100644
--- a/src/drivers/generic/adau7002/Makefile.inc
+++ b/src/drivers/generic/adau7002/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_ADAU7002) += adau7002.c
diff --git a/src/drivers/generic/alc1015/Makefile.inc b/src/drivers/generic/alc1015/Makefile.inc
index 5f815863dc3e..f4f47878eacf 100644
--- a/src/drivers/generic/alc1015/Makefile.inc
+++ b/src/drivers/generic/alc1015/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_ALC1015) += alc1015.c
diff --git a/src/drivers/generic/bayhub/Makefile.inc b/src/drivers/generic/bayhub/Makefile.inc
index 34588158317a..90b442617edd 100644
--- a/src/drivers/generic/bayhub/Makefile.inc
+++ b/src/drivers/generic/bayhub/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_BH720) += bh720.c
diff --git a/src/drivers/generic/bayhub_lv2/Makefile.inc b/src/drivers/generic/bayhub_lv2/Makefile.inc
index 11249a92628a..b8842085aad2 100644
--- a/src/drivers/generic/bayhub_lv2/Makefile.inc
+++ b/src/drivers/generic/bayhub_lv2/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_BAYHUB_LV2) += lv2.c
diff --git a/src/drivers/generic/cbfs-serial/Makefile.inc b/src/drivers/generic/cbfs-serial/Makefile.inc
index 163d439ba909..fdabdc8f5362 100644
--- a/src/drivers/generic/cbfs-serial/Makefile.inc
+++ b/src/drivers/generic/cbfs-serial/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_CBFS_SERIAL) += cbfs-serial.c
diff --git a/src/drivers/generic/cbfs-uuid/Makefile.inc b/src/drivers/generic/cbfs-uuid/Makefile.inc
index b1344076dd23..df8c0960b98d 100644
--- a/src/drivers/generic/cbfs-uuid/Makefile.inc
+++ b/src/drivers/generic/cbfs-uuid/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_CBFS_UUID) += cbfs-uuid.c
diff --git a/src/drivers/generic/gpio_keys/Makefile.inc b/src/drivers/generic/gpio_keys/Makefile.inc
index 1e10ca99e013..d1375ef2e493 100644
--- a/src/drivers/generic/gpio_keys/Makefile.inc
+++ b/src/drivers/generic/gpio_keys/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_GPIO_KEYS) += gpio_keys.c
diff --git a/src/drivers/generic/max98357a/Makefile.inc b/src/drivers/generic/max98357a/Makefile.inc
index 529e24afc9f8..8ad86d3c7d23 100644
--- a/src/drivers/generic/max98357a/Makefile.inc
+++ b/src/drivers/generic/max98357a/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_MAX98357A) += max98357a.c
diff --git a/src/drivers/generic/nau8315/Makefile.inc b/src/drivers/generic/nau8315/Makefile.inc
index 09641892e5dc..094d235b6dbb 100644
--- a/src/drivers/generic/nau8315/Makefile.inc
+++ b/src/drivers/generic/nau8315/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENERIC_NAU8315) += nau8315.c
diff --git a/src/drivers/genesyslogic/gl9750/Makefile.inc b/src/drivers/genesyslogic/gl9750/Makefile.inc
index 0f771cc33571..0b357b83c961 100644
--- a/src/drivers/genesyslogic/gl9750/Makefile.inc
+++ b/src/drivers/genesyslogic/gl9750/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENESYSLOGIC_GL9750) += gl9750.c
diff --git a/src/drivers/genesyslogic/gl9755/Makefile.inc b/src/drivers/genesyslogic/gl9755/Makefile.inc
index 995cfd30f60f..f7e7d207b64a 100644
--- a/src/drivers/genesyslogic/gl9755/Makefile.inc
+++ b/src/drivers/genesyslogic/gl9755/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENESYSLOGIC_GL9755) += gl9755.c
diff --git a/src/drivers/genesyslogic/gl9763e/Makefile.inc b/src/drivers/genesyslogic/gl9763e/Makefile.inc
index 61a63e6231f0..a148b8f9f3ee 100644
--- a/src/drivers/genesyslogic/gl9763e/Makefile.inc
+++ b/src/drivers/genesyslogic/gl9763e/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GENESYSLOGIC_GL9763E) += gl9763e.c
diff --git a/src/drivers/gfx/generic/Makefile.inc b/src/drivers/gfx/generic/Makefile.inc
index 4ffe8dcc8034..a63226b29264 100644
--- a/src/drivers/gfx/generic/Makefile.inc
+++ b/src/drivers/gfx/generic/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_GFX_GENERIC) += generic.c
diff --git a/src/drivers/i2c/at24rf08c/Makefile.inc b/src/drivers/i2c/at24rf08c/Makefile.inc
index 985aa685a312..4ac3f1d75fb9 100644
--- a/src/drivers/i2c/at24rf08c/Makefile.inc
+++ b/src/drivers/i2c/at24rf08c/Makefile.inc
@@ -1,2 +1,4 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVER_LENOVO_SERIALS) += at24rf08c.c
ramstage-$(CONFIG_DRIVER_LENOVO_SERIALS) += lenovo_serials.c
diff --git a/src/drivers/i2c/ck505/Makefile.inc b/src/drivers/i2c/ck505/Makefile.inc
index 5ccf4a86cd1f..44df26c47706 100644
--- a/src/drivers/i2c/ck505/Makefile.inc
+++ b/src/drivers/i2c/ck505/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_CK505) += ck505.c
diff --git a/src/drivers/i2c/cs35l53/Makefile.inc b/src/drivers/i2c/cs35l53/Makefile.inc
index 21a749f19979..d088e7f71d72 100644
--- a/src/drivers/i2c/cs35l53/Makefile.inc
+++ b/src/drivers/i2c/cs35l53/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_CS35L53) += cs35l53.c
diff --git a/src/drivers/i2c/cs42l42/Makefile.inc b/src/drivers/i2c/cs42l42/Makefile.inc
index 05ab562a1b7b..b7df181ab1ab 100644
--- a/src/drivers/i2c/cs42l42/Makefile.inc
+++ b/src/drivers/i2c/cs42l42/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_CS42L42) += cs42l42.c
diff --git a/src/drivers/i2c/da7219/Makefile.inc b/src/drivers/i2c/da7219/Makefile.inc
index 354a330b23c8..e885506424e2 100644
--- a/src/drivers/i2c/da7219/Makefile.inc
+++ b/src/drivers/i2c/da7219/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_DA7219) += da7219.c
diff --git a/src/drivers/i2c/designware/Makefile.inc b/src/drivers/i2c/designware/Makefile.inc
index b960a1cac4eb..9c084c0de5d3 100644
--- a/src/drivers/i2c/designware/Makefile.inc
+++ b/src/drivers/i2c/designware/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_DRIVERS_I2C_DESIGNWARE),y)
bootblock-y += dw_i2c.c
diff --git a/src/drivers/i2c/generic/Makefile.inc b/src/drivers/i2c/generic/Makefile.inc
index 86cbc7bdc3ab..228a75b26d3c 100644
--- a/src/drivers/i2c/generic/Makefile.inc
+++ b/src/drivers/i2c/generic/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_GENERIC) += generic.c
diff --git a/src/drivers/i2c/gpiomux/Makefile.inc b/src/drivers/i2c/gpiomux/Makefile.inc
index 5c328cba4023..a22726c5dab0 100644
--- a/src/drivers/i2c/gpiomux/Makefile.inc
+++ b/src/drivers/i2c/gpiomux/Makefile.inc
@@ -1,2 +1,4 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
subdirs-$(CONFIG_DRIVERS_I2C_GPIO_MUX) += mux
subdirs-$(CONFIG_DRIVERS_I2C_GPIO_MUX) += bus
diff --git a/src/drivers/i2c/gpiomux/bus/Makefile.inc b/src/drivers/i2c/gpiomux/bus/Makefile.inc
index 1c462dc09438..49d9d8c458c4 100644
--- a/src/drivers/i2c/gpiomux/bus/Makefile.inc
+++ b/src/drivers/i2c/gpiomux/bus/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_GPIO_MUX) += bus.c
diff --git a/src/drivers/i2c/gpiomux/mux/Makefile.inc b/src/drivers/i2c/gpiomux/mux/Makefile.inc
index e51f706eda71..10e1d8b5dc98 100644
--- a/src/drivers/i2c/gpiomux/mux/Makefile.inc
+++ b/src/drivers/i2c/gpiomux/mux/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_GPIO_MUX) += mux.c
diff --git a/src/drivers/i2c/hid/Makefile.inc b/src/drivers/i2c/hid/Makefile.inc
index 12162acee0a9..897d90cd47a7 100644
--- a/src/drivers/i2c/hid/Makefile.inc
+++ b/src/drivers/i2c/hid/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_HID) += hid.c
diff --git a/src/drivers/i2c/lm96000/Makefile.inc b/src/drivers/i2c/lm96000/Makefile.inc
index b17ccf88cfa1..75149d41938e 100644
--- a/src/drivers/i2c/lm96000/Makefile.inc
+++ b/src/drivers/i2c/lm96000/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_LM96000) += lm96000.c
diff --git a/src/drivers/i2c/max98373/Makefile.inc b/src/drivers/i2c/max98373/Makefile.inc
index 0a8871d98742..0786e9a79cde 100644
--- a/src/drivers/i2c/max98373/Makefile.inc
+++ b/src/drivers/i2c/max98373/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_MAX98373) += max98373.c
diff --git a/src/drivers/i2c/max98390/Makefile.inc b/src/drivers/i2c/max98390/Makefile.inc
index 09ef81b9eaba..de9fb65cb5e1 100644
--- a/src/drivers/i2c/max98390/Makefile.inc
+++ b/src/drivers/i2c/max98390/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_MAX98390) += max98390.c
diff --git a/src/drivers/i2c/max98396/Makefile.inc b/src/drivers/i2c/max98396/Makefile.inc
index 230f5d6d91ec..aa7143744998 100644
--- a/src/drivers/i2c/max98396/Makefile.inc
+++ b/src/drivers/i2c/max98396/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_MAX98396) += max98396.c
diff --git a/src/drivers/i2c/max98927/Makefile.inc b/src/drivers/i2c/max98927/Makefile.inc
index 3bafee11b630..c84f7caa4f41 100644
--- a/src/drivers/i2c/max98927/Makefile.inc
+++ b/src/drivers/i2c/max98927/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_MAX98927) += max98927.c
diff --git a/src/drivers/i2c/nau8825/Makefile.inc b/src/drivers/i2c/nau8825/Makefile.inc
index 6f32643439e1..ada57689bd88 100644
--- a/src/drivers/i2c/nau8825/Makefile.inc
+++ b/src/drivers/i2c/nau8825/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_NAU8825) += nau8825.c
diff --git a/src/drivers/i2c/nct7802y/Makefile.inc b/src/drivers/i2c/nct7802y/Makefile.inc
index 9544de0b3e29..bb91e5027ea8 100644
--- a/src/drivers/i2c/nct7802y/Makefile.inc
+++ b/src/drivers/i2c/nct7802y/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_NCT7802Y) += nct7802y.c
ramstage-$(CONFIG_DRIVERS_I2C_NCT7802Y) += nct7802y_fan.c
ramstage-$(CONFIG_DRIVERS_I2C_NCT7802Y) += nct7802y_peci.c
diff --git a/src/drivers/i2c/pca9538/Makefile.inc b/src/drivers/i2c/pca9538/Makefile.inc
index 51e9764b9823..63d9bc829696 100644
--- a/src/drivers/i2c/pca9538/Makefile.inc
+++ b/src/drivers/i2c/pca9538/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_PCA9538) += pca9538.c
diff --git a/src/drivers/i2c/pi608gp/Makefile.inc b/src/drivers/i2c/pi608gp/Makefile.inc
index 21516a6d468a..837e63662b6f 100644
--- a/src/drivers/i2c/pi608gp/Makefile.inc
+++ b/src/drivers/i2c/pi608gp/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_PI608GP) += pi608gp.c
diff --git a/src/drivers/i2c/ptn3460/Makefile.inc b/src/drivers/i2c/ptn3460/Makefile.inc
index abe9a0560bf0..022f5f8e522a 100644
--- a/src/drivers/i2c/ptn3460/Makefile.inc
+++ b/src/drivers/i2c/ptn3460/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_PTN3460) += ptn3460.c
diff --git a/src/drivers/i2c/rt1011/Makefile.inc b/src/drivers/i2c/rt1011/Makefile.inc
index a8b8283f3f8a..39572b6b915d 100644
--- a/src/drivers/i2c/rt1011/Makefile.inc
+++ b/src/drivers/i2c/rt1011/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_RT1011) += rt1011.c
diff --git a/src/drivers/i2c/rt5663/Makefile.inc b/src/drivers/i2c/rt5663/Makefile.inc
index 35c566b9766e..ffd17fcd6f80 100644
--- a/src/drivers/i2c/rt5663/Makefile.inc
+++ b/src/drivers/i2c/rt5663/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_RT5663) += rt5663.c
diff --git a/src/drivers/i2c/rtd2132/Makefile.inc b/src/drivers/i2c/rtd2132/Makefile.inc
index 4974a479ceb7..133b6c821ce3 100644
--- a/src/drivers/i2c/rtd2132/Makefile.inc
+++ b/src/drivers/i2c/rtd2132/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_RTD2132) += rtd2132.c
diff --git a/src/drivers/i2c/rv3028c7/Makefile.inc b/src/drivers/i2c/rv3028c7/Makefile.inc
index 57eddf39c574..f511bc5013cd 100644
--- a/src/drivers/i2c/rv3028c7/Makefile.inc
+++ b/src/drivers/i2c/rv3028c7/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_RV3028C7) += rv3028c7.c
diff --git a/src/drivers/i2c/rx6110sa/Makefile.inc b/src/drivers/i2c/rx6110sa/Makefile.inc
index 44c76a3291cf..45d179da4f67 100644
--- a/src/drivers/i2c/rx6110sa/Makefile.inc
+++ b/src/drivers/i2c/rx6110sa/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_RX6110SA) += rx6110sa.c
diff --git a/src/drivers/i2c/sx9310/Makefile.inc b/src/drivers/i2c/sx9310/Makefile.inc
index 0516df92f748..75d577bed7f9 100644
--- a/src/drivers/i2c/sx9310/Makefile.inc
+++ b/src/drivers/i2c/sx9310/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_SX9310) += sx9310.c
diff --git a/src/drivers/i2c/sx9324/Makefile.inc b/src/drivers/i2c/sx9324/Makefile.inc
index 8811c996b0d6..963d23064698 100644
--- a/src/drivers/i2c/sx9324/Makefile.inc
+++ b/src/drivers/i2c/sx9324/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_SX9324) += sx9324.c
diff --git a/src/drivers/i2c/sx9360/Makefile.inc b/src/drivers/i2c/sx9360/Makefile.inc
index 695bb527c794..278ee10b3a4f 100644
--- a/src/drivers/i2c/sx9360/Makefile.inc
+++ b/src/drivers/i2c/sx9360/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_SX9360) += sx9360.c
diff --git a/src/drivers/i2c/tas5825m/Makefile.inc b/src/drivers/i2c/tas5825m/Makefile.inc
index 909ffdb85c19..0e1e7a2ba018 100644
--- a/src/drivers/i2c/tas5825m/Makefile.inc
+++ b/src/drivers/i2c/tas5825m/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_I2C_TAS5825M) += tas5825m.c
diff --git a/src/drivers/i2c/tpm/Makefile.inc b/src/drivers/i2c/tpm/Makefile.inc
index ae50f2b342e8..f576109eed9a 100644
--- a/src/drivers/i2c/tpm/Makefile.inc
+++ b/src/drivers/i2c/tpm/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_TPM)$(CONFIG_I2C_TPM),yy)
all-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c
diff --git a/src/drivers/i2c/ww_ring/Makefile.inc b/src/drivers/i2c/ww_ring/Makefile.inc
index ea0d1a880b2c..b245e5fa7cce 100644
--- a/src/drivers/i2c/ww_ring/Makefile.inc
+++ b/src/drivers/i2c/ww_ring/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
verstage-$(CONFIG_DRIVERS_I2C_WW_RING) += ww_ring.c
verstage-$(CONFIG_DRIVERS_I2C_WW_RING) += ww_ring_programs.c
diff --git a/src/drivers/intel/dptf/Makefile.inc b/src/drivers/intel/dptf/Makefile.inc
index 42607f8a540a..41f415872250 100644
--- a/src/drivers/intel/dptf/Makefile.inc
+++ b/src/drivers/intel/dptf/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_INTEL_DPTF) += dptf.c
diff --git a/src/drivers/intel/ish/Makefile.inc b/src/drivers/intel/ish/Makefile.inc
index cab2b1d80419..dfa4b1c44421 100644
--- a/src/drivers/intel/ish/Makefile.inc
+++ b/src/drivers/intel/ish/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_INTEL_ISH) += ish.c
diff --git a/src/drivers/intel/mipi_camera/Makefile.inc b/src/drivers/intel/mipi_camera/Makefile.inc
index 85f67b26062a..fca832630723 100644
--- a/src/drivers/intel/mipi_camera/Makefile.inc
+++ b/src/drivers/intel/mipi_camera/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_INTEL_MIPI_CAMERA) += camera.c
diff --git a/src/drivers/intel/pmc_mux/Makefile.inc b/src/drivers/intel/pmc_mux/Makefile.inc
index 61c957e51463..f607135dea3c 100644
--- a/src/drivers/intel/pmc_mux/Makefile.inc
+++ b/src/drivers/intel/pmc_mux/Makefile.inc
@@ -1,2 +1,4 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
subdirs-y += conn
ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += mux.c
diff --git a/src/drivers/intel/pmc_mux/conn/Makefile.inc b/src/drivers/intel/pmc_mux/conn/Makefile.inc
index babca2f9bbcd..668351b4df1a 100644
--- a/src/drivers/intel/pmc_mux/conn/Makefile.inc
+++ b/src/drivers/intel/pmc_mux/conn/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += conn.c
diff --git a/src/drivers/intel/ptt/Makefile.inc b/src/drivers/intel/ptt/Makefile.inc
index fdecc89b9f56..bab1789fd93d 100644
--- a/src/drivers/intel/ptt/Makefile.inc
+++ b/src/drivers/intel/ptt/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
romstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c
ramstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c
postcar-$(CONFIG_HAVE_INTEL_PTT) += ptt.c
diff --git a/src/drivers/intel/soundwire/Makefile.inc b/src/drivers/intel/soundwire/Makefile.inc
index 1f6773ec2694..044e2ab8e989 100644
--- a/src/drivers/intel/soundwire/Makefile.inc
+++ b/src/drivers/intel/soundwire/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_INTEL_SOUNDWIRE) += soundwire.c
diff --git a/src/drivers/intel/usb4/retimer/Makefile.inc b/src/drivers/intel/usb4/retimer/Makefile.inc
index bca23aa3bfec..1c814850bdd9 100644
--- a/src/drivers/intel/usb4/retimer/Makefile.inc
+++ b/src/drivers/intel/usb4/retimer/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_INTEL_USB4_RETIMER) += retimer.c
diff --git a/src/drivers/ipmi/Makefile.inc b/src/drivers/ipmi/Makefile.inc
index 28ff78c0852c..ade71470303a 100644
--- a/src/drivers/ipmi/Makefile.inc
+++ b/src/drivers/ipmi/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_IPMI_KCS) += ipmi_if.c
ramstage-$(CONFIG_IPMI_KCS) += ipmi_kcs.c
ramstage-$(CONFIG_IPMI_KCS) += ipmi_kcs_ops.c
diff --git a/src/drivers/ipmi/ocp/Makefile.inc b/src/drivers/ipmi/ocp/Makefile.inc
index 3d5e69eb1229..8141ed6876b2 100644
--- a/src/drivers/ipmi/ocp/Makefile.inc
+++ b/src/drivers/ipmi/ocp/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_IPMI_OCP) += ipmi_ocp.c ipmi_sel.c
ifeq ($(CONFIG_IPMI_OCP),y)
romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_ocp_romstage.c ipmi_sel.c
diff --git a/src/drivers/lenovo/Makefile.inc b/src/drivers/lenovo/Makefile.inc
index c50db5b8be49..0b62460db258 100644
--- a/src/drivers/lenovo/Makefile.inc
+++ b/src/drivers/lenovo/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_LENOVO_WACOM) += wacom.c
diff --git a/src/drivers/mrc_cache/Makefile.inc b/src/drivers/mrc_cache/Makefile.inc
index 0d226fe89a7a..44cd1f2f5a3c 100644
--- a/src/drivers/mrc_cache/Makefile.inc
+++ b/src/drivers/mrc_cache/Makefile.inc
@@ -1,2 +1,4 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
romstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
diff --git a/src/drivers/net/Makefile.inc b/src/drivers/net/Makefile.inc
index 33c82118d9e2..a17547c6e04a 100644
--- a/src/drivers/net/Makefile.inc
+++ b/src/drivers/net/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
ramstage-$(CONFIG_REALTEK_8168_RESET) += r8168.c
diff --git a/src/drivers/net/phy/m88e1512/Makefile.inc b/src/drivers/net/phy/m88e1512/Makefile.inc
index 043b3a3aed80..a0433f56f41d 100644
--- a/src/drivers/net/phy/m88e1512/Makefile.inc
+++ b/src/drivers/net/phy/m88e1512/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_ETH_PHY_M88E1512) += m88e1512.c
diff --git a/src/drivers/nxp/uwb/Makefile.inc b/src/drivers/nxp/uwb/Makefile.inc
index 9501a28c3290..b81f7e257d56 100644
--- a/src/drivers/nxp/uwb/Makefile.inc
+++ b/src/drivers/nxp/uwb/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_NXP_UWB_SR1XX) += uwb.c
diff --git a/src/drivers/ocp/dmi/Makefile.inc b/src/drivers/ocp/dmi/Makefile.inc
index 587ac89d003c..bce5bceda069 100644
--- a/src/drivers/ocp/dmi/Makefile.inc
+++ b/src/drivers/ocp/dmi/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_OCP_DMI) += smbios.c
diff --git a/src/drivers/ocp/ewl/Makefile.inc b/src/drivers/ocp/ewl/Makefile.inc
index 43112e94f131..2b3ffb6d3178 100644
--- a/src/drivers/ocp/ewl/Makefile.inc
+++ b/src/drivers/ocp/ewl/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
romstage-$(CONFIG_OCP_EWL) += ewl.c
diff --git a/src/drivers/ocp/vpd/Makefile.inc b/src/drivers/ocp/vpd/Makefile.inc
index b40534aec498..1cdc63b524f0 100644
--- a/src/drivers/ocp/vpd/Makefile.inc
+++ b/src/drivers/ocp/vpd/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
romstage-$(CONFIG_OCP_VPD) += vpd_util.c
ramstage-$(CONFIG_OCP_VPD) += vpd_util.c
ramstage-$(CONFIG_LINUXPAYLOAD_CMDLINE_VPD_OVERWRITE) += vpd_cmdline.c
diff --git a/src/drivers/pc80/pc/Makefile.inc b/src/drivers/pc80/pc/Makefile.inc
index 7cf2957e7b20..c5060116a7be 100644
--- a/src/drivers/pc80/pc/Makefile.inc
+++ b/src/drivers/pc80/pc/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_ARCH_X86),y)
ramstage-y += isa-dma.c
diff --git a/src/drivers/pc80/rtc/Makefile.inc b/src/drivers/pc80/rtc/Makefile.inc
index 5f6055e872bc..9d248780b1fa 100644
--- a/src/drivers/pc80/rtc/Makefile.inc
+++ b/src/drivers/pc80/rtc/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_ARCH_X86),y)
all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c
diff --git a/src/drivers/pc80/tpm/Makefile.inc b/src/drivers/pc80/tpm/Makefile.inc
index 859233712bc2..384bc40e70c5 100644
--- a/src/drivers/pc80/tpm/Makefile.inc
+++ b/src/drivers/pc80/tpm/Makefile.inc
@@ -1,3 +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
index f7ec2b502512..63ec6ba6ae7a 100644
--- a/src/drivers/pc80/vga/Makefile.inc
+++ b/src/drivers/pc80/vga/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_ARCH_X86),y)
romstage-$(CONFIG_ROMSTAGE_VGA) += vga_io.c
diff --git a/src/drivers/pcie/generic/Makefile.inc b/src/drivers/pcie/generic/Makefile.inc
index f634f256a8d6..fd08d3763907 100644
--- a/src/drivers/pcie/generic/Makefile.inc
+++ b/src/drivers/pcie/generic/Makefile.inc
@@ -1 +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
index df4aaf63ab85..23b17ec2fdb2 100644
--- a/src/drivers/pcie/rtd3/device/Makefile.inc
+++ b/src/drivers/pcie/rtd3/device/Makefile.inc
@@ -1 +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
index 738bd0e29f0f..fb30a453e6b6 100644
--- a/src/drivers/ricoh/rce822/Makefile.inc
+++ b/src/drivers/ricoh/rce822/Makefile.inc
@@ -1 +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
index 9c85485d1e9b..6f126875a48e 100644
--- a/src/drivers/secunet/dmi/Makefile.inc
+++ b/src/drivers/secunet/dmi/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_SECUNET_DMI) += smbios.c
diff --git a/src/drivers/sil/3114/Makefile.inc b/src/drivers/sil/3114/Makefile.inc
index a3f3ffb328b5..0d151e4bc617 100644
--- a/src/drivers/sil/3114/Makefile.inc
+++ b/src/drivers/sil/3114/Makefile.inc
@@ -1 +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
index d478889b6658..251dc6565d3b 100644
--- a/src/drivers/smbus/Makefile.inc
+++ b/src/drivers/smbus/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_SC16IS7XX_INIT),y)
bootblock-y += sc16is7xx_init.c
romstage-y += sc16is7xx_init.c
diff --git a/src/drivers/smmstore/Makefile.inc b/src/drivers/smmstore/Makefile.inc
index b37637b2b5e5..4f69751d7441 100644
--- a/src/drivers/smmstore/Makefile.inc
+++ b/src/drivers/smmstore/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
all-$(CONFIG_SMMSTORE) += store.c
ramstage-$(CONFIG_SMMSTORE_V2) += ramstage.c
diff --git a/src/drivers/sof/Makefile.inc b/src/drivers/sof/Makefile.inc
index 6faabe4500fa..5682511e9fee 100644
--- a/src/drivers/sof/Makefile.inc
+++ b/src/drivers/sof/Makefile.inc
@@ -1 +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
index 6c3458fa0ee2..f6430d88e763 100644
--- a/src/drivers/soundwire/alc1308/Makefile.inc
+++ b/src/drivers/soundwire/alc1308/Makefile.inc
@@ -1 +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
index eab940cbb1e0..38a97093ce77 100644
--- a/src/drivers/soundwire/alc5682/Makefile.inc
+++ b/src/drivers/soundwire/alc5682/Makefile.inc
@@ -1 +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
index 78e4d1b7fe25..63e09934354e 100644
--- a/src/drivers/soundwire/alc711/Makefile.inc
+++ b/src/drivers/soundwire/alc711/Makefile.inc
@@ -1 +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
index b2475b89d463..b7c2261627f3 100644
--- a/src/drivers/soundwire/cs42l42/Makefile.inc
+++ b/src/drivers/soundwire/cs42l42/Makefile.inc
@@ -1 +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
index 5501eb3d1047..9c77f46e30d2 100644
--- a/src/drivers/soundwire/max98363/Makefile.inc
+++ b/src/drivers/soundwire/max98363/Makefile.inc
@@ -1 +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
index 41c784d2eec5..c1efb73dfe02 100644
--- a/src/drivers/soundwire/max98373/Makefile.inc
+++ b/src/drivers/soundwire/max98373/Makefile.inc
@@ -1 +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
index 56ee44bd4724..3a52d8a8c7c9 100644
--- a/src/drivers/spi/Makefile.inc
+++ b/src/drivers/spi/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
# SPI flash driver interface
subdirs-y += tpm
diff --git a/src/drivers/spi/tpm/Makefile.inc b/src/drivers/spi/tpm/Makefile.inc
index 023479f0d018..e7a5d6369c60 100644
--- a/src/drivers/spi/tpm/Makefile.inc
+++ b/src/drivers/spi/tpm/Makefile.inc
@@ -1,3 +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/tpm/Makefile.inc b/src/drivers/tpm/Makefile.inc
index 7f0bbf59b276..3ed5173db74d 100644
--- a/src/drivers/tpm/Makefile.inc
+++ b/src/drivers/tpm/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_TPM),y)
ramstage-$(CONFIG_TPM_INIT_RAMSTAGE) += tpm.c
diff --git a/src/drivers/uart/Makefile.inc b/src/drivers/uart/Makefile.inc
index 912a6847d991..9fd1fb399812 100644
--- a/src/drivers/uart/Makefile.inc
+++ b/src/drivers/uart/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_DRIVERS_UART),y)
romstage-y += util.c
diff --git a/src/drivers/uart/acpi/Makefile.inc b/src/drivers/uart/acpi/Makefile.inc
index 848deac9b9af..3cf4514d215a 100644
--- a/src/drivers/uart/acpi/Makefile.inc
+++ b/src/drivers/uart/acpi/Makefile.inc
@@ -1 +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
index fa995c33cc50..3c295452234d 100644
--- a/src/drivers/usb/Makefile.inc
+++ b/src/drivers/usb/Makefile.inc
@@ -1,3 +1,5 @@
+## 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
diff --git a/src/drivers/usb/acpi/Makefile.inc b/src/drivers/usb/acpi/Makefile.inc
index 2e111078ad80..e525b466c944 100644
--- a/src/drivers/usb/acpi/Makefile.inc
+++ b/src/drivers/usb/acpi/Makefile.inc
@@ -1 +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
index a64d622a03e2..3222a81db303 100644
--- a/src/drivers/usb/hub/Makefile.inc
+++ b/src/drivers/usb/hub/Makefile.inc
@@ -1 +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
index 73f6b068a80d..4f9187baa868 100644
--- a/src/drivers/usb/pci_xhci/Makefile.inc
+++ b/src/drivers/usb/pci_xhci/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_USB_PCI_XHCI) += pci_xhci.c
diff --git a/src/drivers/wifi/generic/Makefile.inc b/src/drivers/wifi/generic/Makefile.inc
index 91f22d163ee3..337b8fe1ec7d 100644
--- a/src/drivers/wifi/generic/Makefile.inc
+++ b/src/drivers/wifi/generic/Makefile.inc
@@ -1,3 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ifeq ($(CONFIG_DRIVERS_WIFI_GENERIC),y)
diff --git a/src/drivers/wwan/fm/Makefile.inc b/src/drivers/wwan/fm/Makefile.inc
index 8074a0869a14..cc3ff3d6154f 100644
--- a/src/drivers/wwan/fm/Makefile.inc
+++ b/src/drivers/wwan/fm/Makefile.inc
@@ -1 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
ramstage-$(CONFIG_DRIVERS_WWAN_FM350GL) += acpi_fm350gl.c