cpu: 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 cpu directory that don't already have an SPDX
license line at the top.

Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I3033f2a9eebc75220f7666325857b3ddd60c8f75
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68979
Reviewed-by: Tim Crawford <tcrawford@system76.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
Martin Roth 2023-08-04 12:06:21 -06:00 committed by Martin L Roth
parent 8ec426859f
commit f6ca89c224
38 changed files with 76 additions and 0 deletions

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
################################################################################
## Subdirectories
################################################################################

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-$(CONFIG_CPU_AMD_PI) += pi

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += amd_mtrr.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-$(CONFIG_CPU_ARMLTD_CORTEX_A9) += cortex-a9

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
# Note: From here on down, we are socket-centric. Socket choice determines
# what other CPU files are included.
#

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_CPU_INTEL_COMMON) += common_init.c
ramstage-$(CONFIG_CPU_INTEL_COMMON) += hyperthreading.c
ramstage-$(CONFIG_CPU_INTEL_COMMON_VOLTAGE) += voltage.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
bootblock-y += fit.c
# The FIT table is generated as a separate CBFS file.

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += haswell_init.c
romstage-y += romstage.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
bootblock-$(CONFIG_MICROCODE_UPDATE_PRE_RAM) += microcode_asm.S
bootblock-$(CONFIG_SUPPORT_CPU_UCODE_IN_CBFS) += microcode.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_1067x_init.c
ramstage-$(CONFIG_PARALLEL_MP) += mp_init.c
subdirs-y += ../../x86/name

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_106cx_init.c
subdirs-y += ../../x86/name
subdirs-y += ../smm/gen1

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_2065x_init.c
subdirs-y += ../../x86/name
subdirs-y += ../../intel/turbo

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_206ax_init.c
subdirs-y += ../../x86/name
subdirs-y += ../smm/gen1

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_6bx_init.c
subdirs-y += ../../x86/name

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_6ex_init.c
subdirs-y += ../../x86/name
subdirs-y += ../common

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_6fx_init.c
subdirs-y += ../../x86/name
subdirs-y += ../common

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_6xx_init.c
cpu_microcode_bins += $(wildcard 3rdparty/intel-microcode/intel-ucode/06-06-*)

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../common
ramstage-y += model_f2x_init.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_f3x_init.c
subdirs-y += ../smm/gen1

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += model_f4x_init.c
subdirs-y += ../smm/gen1
ramstage-$(CONFIG_PARALLEL_MP) += ../model_1067x/mp_init.c

View File

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

View File

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

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../model_106cx
subdirs-y += ../microcode
subdirs-y += ../speedstep

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../model_1067x
subdirs-y += ../microcode
subdirs-y += ../speedstep

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../model_106cx
subdirs-y += ../microcode
subdirs-y += ../speedstep

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../model_6fx
subdirs-y += ../model_f3x
subdirs-y += ../model_f4x

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../model_6ex
subdirs-y += ../model_6fx
subdirs-y += ../../x86/lapic

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../model_f2x
subdirs-y += ../../x86/lapic
subdirs-y += ../microcode

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += ../model_6fx
subdirs-y += ../model_1067x
subdirs-y += ../../x86/lapic

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += acpi.c speedstep.c

View File

@ -1 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += turbo.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
all_x86-y += mode_switch.S
# Add --defsym=_start=0 to suppress a linker warning.

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-y += lapic
subdirs-y += mtrr
subdirs-y += pae

View File

@ -1,2 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
romstage-y += cache.c
ramstage-y += cache.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-$(CONFIG_AP_IN_SIPI_WAIT) += lapic_cpu_stop.c
bootblock-$(CONFIG_UDELAY_LAPIC) += apic_timer.c

View File

@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-only
ramstage-y += mtrr.c
romstage-y += earlymtrr.c

View File

@ -1,2 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
all_x86-y += pgtbl.c
smm-y += pgtbl.c

View File

@ -1,2 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
all_x86-y += delay_tsc.c
smm-y += delay_tsc.c