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>
This commit is contained in:
Martin Roth 2023-08-04 12:07:51 -06:00 committed by Martin L Roth
parent f6ca89c224
commit 8324fe9211
101 changed files with 202 additions and 0 deletions

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_ACPI_THERMAL_ZONE) += thermal_zone.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_AMD_I2S_MACHINE_DEV) += i2s_machine_dev.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_AS3722_RTC) += as3722rtc.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_ASPEED_AST2050) += ast2050.c

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_CHROMEOS_CAMERA) += cros_camera.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_CRB_TPM),y)
all-y += tis.c tpm.c
endif

View File

@ -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

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_ADAU7002) += adau7002.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_ALC1015) += alc1015.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_BH720) += bh720.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_BAYHUB_LV2) += lv2.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_CBFS_SERIAL) += cbfs-serial.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_CBFS_UUID) += cbfs-uuid.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_GPIO_KEYS) += gpio_keys.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_MAX98357A) += max98357a.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENERIC_NAU8315) += nau8315.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENESYSLOGIC_GL9750) += gl9750.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENESYSLOGIC_GL9755) += gl9755.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GENESYSLOGIC_GL9763E) += gl9763e.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_GFX_GENERIC) += generic.c

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_CK505) += ck505.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_CS35L53) += cs35l53.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_CS42L42) += cs42l42.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_DA7219) += da7219.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_DRIVERS_I2C_DESIGNWARE),y)
bootblock-y += dw_i2c.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_GENERIC) += generic.c

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_GPIO_MUX) += bus.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_GPIO_MUX) += mux.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_HID) += hid.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_LM96000) += lm96000.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_MAX98373) += max98373.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_MAX98390) += max98390.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_MAX98396) += max98396.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_MAX98927) += max98927.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_NAU8825) += nau8825.c

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_PCA9538) += pca9538.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_PI608GP) += pi608gp.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_PTN3460) += ptn3460.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_RT1011) += rt1011.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_RT5663) += rt5663.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_RTD2132) += rtd2132.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_RV3028C7) += rv3028c7.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_RX6110SA) += rx6110sa.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_SX9310) += sx9310.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_SX9324) += sx9324.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_SX9360) += sx9360.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_I2C_TAS5825M) += tas5825m.c

View File

@ -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

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_INTEL_DPTF) += dptf.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_INTEL_ISH) += ish.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_INTEL_MIPI_CAMERA) += camera.c

View File

@ -1,2 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += conn
ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += mux.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += conn.c

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_INTEL_SOUNDWIRE) += soundwire.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_INTEL_USB4_RETIMER) += retimer.c

View File

@ -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

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_LENOVO_WACOM) += wacom.c

View File

@ -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

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_ETH_PHY_M88E1512) += m88e1512.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_NXP_UWB_SR1XX) += uwb.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_OCP_DMI) += smbios.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
romstage-$(CONFIG_OCP_EWL) += ewl.c

View File

@ -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

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_ARCH_X86),y)
ramstage-y += isa-dma.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_ARCH_X86),y)
all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_MEMORY_MAPPED_TPM),y)
all-y += tis.c
endif

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_ARCH_X86),y)
romstage-$(CONFIG_ROMSTAGE_VGA) += vga_io.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_PCIE_GENERIC) += generic.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_PCIE_RTD3_DEVICE) += chip.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_RICOH_RCE822) += rce822.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_SECUNET_DMI) += smbios.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_SIL_3114) += sil_sata.c

View File

@ -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

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
all-$(CONFIG_SMMSTORE) += store.c
ramstage-$(CONFIG_SMMSTORE_V2) += ramstage.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_AUDIO_SOF) += sof.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC1308) += alc1308.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC5682) += alc5682.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_ALC711) += alc711.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_CS42L42) += cs42l42.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_MAX98363) += max98363.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_SOUNDWIRE_MAX98373) += max98373.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
# SPI flash driver interface
subdirs-y += tpm

View File

@ -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

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_TPM),y)
ramstage-$(CONFIG_TPM_INIT_RAMSTAGE) += tpm.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_DRIVERS_UART),y)
romstage-y += util.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_UART_ACPI) += acpi.c

View File

@ -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

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_USB_ACPI) += usb_acpi.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_USB_HUB) += acpi.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_DRIVERS_USB_PCI_XHCI) += pci_xhci.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_DRIVERS_WIFI_GENERIC),y)

Some files were not shown because too many files have changed in this diff Show More