diff options
author | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-07-26 22:18:26 -0600 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-08-01 13:59:11 +0000 |
commit | 239b5df2687e30636688354c852cdca1bafbc80b (patch) | |
tree | d3d6b19e1e74108e56b90cb6d74c4ef09ab3d37a | |
parent | 6e3d40f2d1f78ddb599073dbcb22c887228ba4c3 (diff) | |
download | coreboot-239b5df2687e30636688354c852cdca1bafbc80b.tar.gz coreboot-239b5df2687e30636688354c852cdca1bafbc80b.tar.bz2 coreboot-239b5df2687e30636688354c852cdca1bafbc80b.zip |
include: Add SPDX-License-Identifiers to files missing them
This adds SPDX-License-Identifiers to all of the files in src/include
that are missing them or have unrecognized identifiers.
Files that were written specifically for coreboot and don't have license
information are licensed GPL-2.0-only, which is the license for the
overall coreboot project.
Files that were sourced from Linux are similarly GPL-2.0-only.
The cpu/power files were committed with source that was licensed as
GPL-2.0-or-later, so presumably that's the license for that entire
commit.
The final file, vbe.h gives a pointer to the BSD-2-Clause license
at opensource.org.
Change-Id: I3f8fd7848ce11c1a0060e05903fb17a7583b4725
Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66284
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
50 files changed, 98 insertions, 2 deletions
diff --git a/src/include/asan.h b/src/include/asan.h index 103fcc92d247..c63b5b73f565 100644 --- a/src/include/asan.h +++ b/src/include/asan.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASAN_H #define __ASAN_H diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h index 7525fda48f13..6188ce0984c5 100644 --- a/src/include/boot/coreboot_tables.h +++ b/src/include/boot/coreboot_tables.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef COREBOOT_TABLES_H #define COREBOOT_TABLES_H diff --git a/src/include/boot/tables.h b/src/include/boot/tables.h index b440c8bbc497..74cc4e1de1cb 100644 --- a/src/include/boot/tables.h +++ b/src/include/boot/tables.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef BOOT_TABLES_H #define BOOT_TABLES_H diff --git a/src/include/console/qemu_debugcon.h b/src/include/console/qemu_debugcon.h index f0252ee21082..155bfdaf2977 100644 --- a/src/include/console/qemu_debugcon.h +++ b/src/include/console/qemu_debugcon.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef _QEMU_DEBUGCON_H_ #define _QEMU_DEBUGCON_H_ diff --git a/src/include/console/spkmodem.h b/src/include/console/spkmodem.h index c8c142f380a3..fe4181c51bf1 100644 --- a/src/include/console/spkmodem.h +++ b/src/include/console/spkmodem.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef SPKMODEM_H #define SPKMODEM_H 1 diff --git a/src/include/console/system76_ec.h b/src/include/console/system76_ec.h index 616e46f4a2d5..2aa265a1ff82 100644 --- a/src/include/console/system76_ec.h +++ b/src/include/console/system76_ec.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CONSOLE_SYSTEM76_EC_H #define CONSOLE_SYSTEM76_EC_H 1 diff --git a/src/include/cpu/amd/microcode.h b/src/include/cpu/amd/microcode.h index 74075944bb5d..9e889364e03b 100644 --- a/src/include/cpu/amd/microcode.h +++ b/src/include/cpu/amd/microcode.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_AMD_MICROCODE_H #define CPU_AMD_MICROCODE_H diff --git a/src/include/cpu/amd/mtrr.h b/src/include/cpu/amd/mtrr.h index 6fe1628bc0b8..bc3f313f4259 100644 --- a/src/include/cpu/amd/mtrr.h +++ b/src/include/cpu/amd/mtrr.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_AMD_MTRR_H #define CPU_AMD_MTRR_H diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h index 99249ba62976..66103684ba1f 100644 --- a/src/include/cpu/cpu.h +++ b/src/include/cpu/cpu.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_CPU_H #define CPU_CPU_H diff --git a/src/include/cpu/intel/hyperthreading.h b/src/include/cpu/intel/hyperthreading.h index 0a1461ceb592..0613aa114ff6 100644 --- a/src/include/cpu/intel/hyperthreading.h +++ b/src/include/cpu/intel/hyperthreading.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_INTEL_HYPERTHREADING_H #define CPU_INTEL_HYPERTHREADING_H diff --git a/src/include/cpu/power/scom.h b/src/include/cpu/power/scom.h index ef5796c4e1cc..f5354c831480 100644 --- a/src/include/cpu/power/scom.h +++ b/src/include/cpu/power/scom.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + #ifndef CPU_PPC64_SCOM_H #define CPU_PPC64_SCOM_H diff --git a/src/include/cpu/power/spr.h b/src/include/cpu/power/spr.h index 3b229f73a33a..300147d7dda7 100644 --- a/src/include/cpu/power/spr.h +++ b/src/include/cpu/power/spr.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + #ifndef CPU_PPC64_SPR_H #define CPU_PPC64_SPR_H diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h index 400199b029dc..5fa5608db94e 100644 --- a/src/include/cpu/x86/lapic.h +++ b/src/include/cpu/x86/lapic.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_X86_LAPIC_H #define CPU_X86_LAPIC_H diff --git a/src/include/cpu/x86/lapic_def.h b/src/include/cpu/x86/lapic_def.h index 84a3413ac384..e118b6b4279a 100644 --- a/src/include/cpu/x86/lapic_def.h +++ b/src/include/cpu/x86/lapic_def.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_X86_LAPIC_DEF_H #define CPU_X86_LAPIC_DEF_H diff --git a/src/include/cpu/x86/msr.h b/src/include/cpu/x86/msr.h index 9f30c057edc6..ca2a37fe951d 100644 --- a/src/include/cpu/x86/msr.h +++ b/src/include/cpu/x86/msr.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_X86_MSR_H #define CPU_X86_MSR_H diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h index b2bc2c86b1ef..ed55c0402072 100644 --- a/src/include/cpu/x86/mtrr.h +++ b/src/include/cpu/x86/mtrr.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_X86_MTRR_H #define CPU_X86_MTRR_H diff --git a/src/include/cpu/x86/post_code.h b/src/include/cpu/x86/post_code.h index 200d93ec99e3..db8f90dacf6e 100644 --- a/src/include/cpu/x86/post_code.h +++ b/src/include/cpu/x86/post_code.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef __X86_POST_CODE_H__ #define __X86_POST_CODE_H__ diff --git a/src/include/cpu/x86/tsc.h b/src/include/cpu/x86/tsc.h index ddce96bb399d..5d173da66e30 100644 --- a/src/include/cpu/x86/tsc.h +++ b/src/include/cpu/x86/tsc.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CPU_X86_TSC_H #define CPU_X86_TSC_H diff --git a/src/include/ctype.h b/src/include/ctype.h index b4684af7689b..7939c6217a10 100644 --- a/src/include/ctype.h +++ b/src/include/ctype.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef CTYPE_H #define CTYPE_H diff --git a/src/include/delay.h b/src/include/delay.h index 1c481be917c0..327ad4df1bb8 100644 --- a/src/include/delay.h +++ b/src/include/delay.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DELAY_H #define DELAY_H diff --git a/src/include/device/cardbus.h b/src/include/device/cardbus.h index 4443c155db30..056e6acf3640 100644 --- a/src/include/device/cardbus.h +++ b/src/include/device/cardbus.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + /* (c) 2005 Linux Networx GPL see COPYING for details */ #ifndef DEVICE_CARDBUS_H diff --git a/src/include/device/device.h b/src/include/device/device.h index d2dcb5bdf9ae..43ac66dc0fe1 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_H #define DEVICE_H diff --git a/src/include/device/path.h b/src/include/device/path.h index 934d3b354dc7..1be7e7299fb6 100644 --- a/src/include/device/path.h +++ b/src/include/device/path.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_PATH_H #define DEVICE_PATH_H diff --git a/src/include/device/pci.h b/src/include/device/pci.h index db7cc69c8d0c..f2e250631e45 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + /* * PCI defines and function prototypes * Copyright 1994, Drew Eckhardt diff --git a/src/include/device/pci_def.h b/src/include/device/pci_def.h index 1c4a3e76efdc..fa520674a861 100644 --- a/src/include/device/pci_def.h +++ b/src/include/device/pci_def.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef PCI_DEF_H #define PCI_DEF_H diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h index 25bca4003aca..efda282b8863 100644 --- a/src/include/device/pci_rom.h +++ b/src/include/device/pci_rom.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef PCI_ROM_H #define PCI_ROM_H diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h index 30c2a546209f..13776dfa7221 100644 --- a/src/include/device/pciexp.h +++ b/src/include/device/pciexp.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_PCIEXP_H #define DEVICE_PCIEXP_H /* (c) 2005 Linux Networx GPL see COPYING for details */ diff --git a/src/include/device/pcix.h b/src/include/device/pcix.h index def7f6cca2fd..4c1d1125045e 100644 --- a/src/include/device/pcix.h +++ b/src/include/device/pcix.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_PCIX_H #define DEVICE_PCIX_H /* (c) 2005 Linux Networx GPL see COPYING for details */ diff --git a/src/include/device/pnp_def.h b/src/include/device/pnp_def.h index 712357bb7c72..a5f226095362 100644 --- a/src/include/device/pnp_def.h +++ b/src/include/device/pnp_def.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_PNP_DEF_H #define DEVICE_PNP_DEF_H diff --git a/src/include/device/resource.h b/src/include/device/resource.h index 6f16c0381860..96241358a46e 100644 --- a/src/include/device/resource.h +++ b/src/include/device/resource.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_RESOURCE_H #define DEVICE_RESOURCE_H diff --git a/src/include/device/smbus.h b/src/include/device/smbus.h index 5782d5e6201e..171e30447271 100644 --- a/src/include/device/smbus.h +++ b/src/include/device/smbus.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_SMBUS_H #define DEVICE_SMBUS_H diff --git a/src/include/device/smbus_def.h b/src/include/device/smbus_def.h index 61d786107b01..0e502fef99a7 100644 --- a/src/include/device/smbus_def.h +++ b/src/include/device/smbus_def.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef DEVICE_SMBUS_DEF_H #define DEVICE_SMBUS_DEF_H diff --git a/src/include/fallback.h b/src/include/fallback.h index 1cf183ff77dd..dda2c305ed57 100644 --- a/src/include/fallback.h +++ b/src/include/fallback.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef FALLBACK_H #define FALLBACK_H diff --git a/src/include/imd_private.h b/src/include/imd_private.h index fea7315de14f..7b9a2778ab83 100644 --- a/src/include/imd_private.h +++ b/src/include/imd_private.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef _IMD_PRIVATE_H_ #define _IMD_PRIVATE_H_ diff --git a/src/include/ip_checksum.h b/src/include/ip_checksum.h index f2632e7cae58..74a2f48a57ef 100644 --- a/src/include/ip_checksum.h +++ b/src/include/ip_checksum.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef IP_CHECKSUM_H #define IP_CHECKSUM_H unsigned long compute_ip_checksum(const void *addr, unsigned long length); diff --git a/src/include/limits.h b/src/include/limits.h index a21716c30f9d..938eeed6f3d4 100644 --- a/src/include/limits.h +++ b/src/include/limits.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef LIMITS_H #define LIMITS_H diff --git a/src/include/main_decl.h b/src/include/main_decl.h index 90c17161ed9b..4198d64516ad 100644 --- a/src/include/main_decl.h +++ b/src/include/main_decl.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef _MAIN_DECL_H_ #define _MAIN_DECL_H_ diff --git a/src/include/pc80/isa-dma.h b/src/include/pc80/isa-dma.h index 205a1b4d7040..7c391e99d2cf 100644 --- a/src/include/pc80/isa-dma.h +++ b/src/include/pc80/isa-dma.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef PC80_ISA_DMA_H #define PC80_ISA_DMA_H diff --git a/src/include/pc80/keyboard.h b/src/include/pc80/keyboard.h index d2d66b069545..6664980c77b0 100644 --- a/src/include/pc80/keyboard.h +++ b/src/include/pc80/keyboard.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef PC80_KEYBOARD_H #define PC80_KEYBOARD_H diff --git a/src/include/reset.h b/src/include/reset.h index 5b5e1d30cce6..95fe0660ad17 100644 --- a/src/include/reset.h +++ b/src/include/reset.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef RESET_H #define RESET_H diff --git a/src/include/smp/atomic.h b/src/include/smp/atomic.h index 5e78ae4462a5..18f83de52bb9 100644 --- a/src/include/smp/atomic.h +++ b/src/include/smp/atomic.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef SMP_ATOMIC_H #define SMP_ATOMIC_H diff --git a/src/include/smp/node.h b/src/include/smp/node.h index 4dea175ea35a..8f3d14fde1de 100644 --- a/src/include/smp/node.h +++ b/src/include/smp/node.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef _SMP_NODE_H_ #define _SMP_NODE_H_ diff --git a/src/include/smp/spinlock.h b/src/include/smp/spinlock.h index 0ca391d93c8e..90eae6bf0e42 100644 --- a/src/include/smp/spinlock.h +++ b/src/include/smp/spinlock.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef SMP_SPINLOCK_H #define SMP_SPINLOCK_H diff --git a/src/include/stddef.h b/src/include/stddef.h index 100368eddb49..e30b05f6720e 100644 --- a/src/include/stddef.h +++ b/src/include/stddef.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef STDDEF_H #define STDDEF_H diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 8636ea45c964..8fa5d20ab6f4 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef STDLIB_H #define STDLIB_H diff --git a/src/include/swab.h b/src/include/swab.h index 6a33b3969f6a..eadf293745f0 100644 --- a/src/include/swab.h +++ b/src/include/swab.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + /* * linux/byteorder/swab.h * Byte-swapping, independently from CPU endianness diff --git a/src/include/sys/types.h b/src/include/sys/types.h index 69968dd3ed54..d5c7d6ede55f 100644 --- a/src/include/sys/types.h +++ b/src/include/sys/types.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ diff --git a/src/include/vbe.h b/src/include/vbe.h index 9497ec68ae9a..afb48ffd0ffa 100644 --- a/src/include/vbe.h +++ b/src/include/vbe.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + /****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * Copyright (c) 2009 Pattrick Hueper <phueper@hueper.net> diff --git a/src/include/version.h b/src/include/version.h index 6b0d53df0f20..84bb34a7b514 100644 --- a/src/include/version.h +++ b/src/include/version.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef VERSION_H #define VERSION_H diff --git a/src/include/watchdog.h b/src/include/watchdog.h index e54f3fbf7360..b4f591721d71 100644 --- a/src/include/watchdog.h +++ b/src/include/watchdog.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef WATCHDOG_H #define WATCHDOG_H |