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>
This commit is contained in:
Martin Roth 2022-07-26 22:18:26 -06:00 committed by Felix Singer
parent 6e3d40f2d1
commit 239b5df268
50 changed files with 98 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __ASAN_H #ifndef __ASAN_H
#define __ASAN_H #define __ASAN_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef COREBOOT_TABLES_H #ifndef COREBOOT_TABLES_H
#define COREBOOT_TABLES_H #define COREBOOT_TABLES_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef BOOT_TABLES_H #ifndef BOOT_TABLES_H
#define BOOT_TABLES_H #define BOOT_TABLES_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _QEMU_DEBUGCON_H_ #ifndef _QEMU_DEBUGCON_H_
#define _QEMU_DEBUGCON_H_ #define _QEMU_DEBUGCON_H_

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef SPKMODEM_H #ifndef SPKMODEM_H
#define SPKMODEM_H 1 #define SPKMODEM_H 1

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CONSOLE_SYSTEM76_EC_H #ifndef CONSOLE_SYSTEM76_EC_H
#define CONSOLE_SYSTEM76_EC_H 1 #define CONSOLE_SYSTEM76_EC_H 1

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_AMD_MICROCODE_H #ifndef CPU_AMD_MICROCODE_H
#define CPU_AMD_MICROCODE_H #define CPU_AMD_MICROCODE_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_AMD_MTRR_H #ifndef CPU_AMD_MTRR_H
#define CPU_AMD_MTRR_H #define CPU_AMD_MTRR_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_CPU_H #ifndef CPU_CPU_H
#define CPU_CPU_H #define CPU_CPU_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_INTEL_HYPERTHREADING_H #ifndef CPU_INTEL_HYPERTHREADING_H
#define CPU_INTEL_HYPERTHREADING_H #define CPU_INTEL_HYPERTHREADING_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef CPU_PPC64_SCOM_H #ifndef CPU_PPC64_SCOM_H
#define CPU_PPC64_SCOM_H #define CPU_PPC64_SCOM_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef CPU_PPC64_SPR_H #ifndef CPU_PPC64_SPR_H
#define CPU_PPC64_SPR_H #define CPU_PPC64_SPR_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_X86_LAPIC_H #ifndef CPU_X86_LAPIC_H
#define CPU_X86_LAPIC_H #define CPU_X86_LAPIC_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_X86_LAPIC_DEF_H #ifndef CPU_X86_LAPIC_DEF_H
#define CPU_X86_LAPIC_DEF_H #define CPU_X86_LAPIC_DEF_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_X86_MSR_H #ifndef CPU_X86_MSR_H
#define CPU_X86_MSR_H #define CPU_X86_MSR_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_X86_MTRR_H #ifndef CPU_X86_MTRR_H
#define CPU_X86_MTRR_H #define CPU_X86_MTRR_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __X86_POST_CODE_H__ #ifndef __X86_POST_CODE_H__
#define __X86_POST_CODE_H__ #define __X86_POST_CODE_H__

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CPU_X86_TSC_H #ifndef CPU_X86_TSC_H
#define CPU_X86_TSC_H #define CPU_X86_TSC_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CTYPE_H #ifndef CTYPE_H
#define CTYPE_H #define CTYPE_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DELAY_H #ifndef DELAY_H
#define DELAY_H #define DELAY_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* (c) 2005 Linux Networx GPL see COPYING for details */ /* (c) 2005 Linux Networx GPL see COPYING for details */
#ifndef DEVICE_CARDBUS_H #ifndef DEVICE_CARDBUS_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_H #ifndef DEVICE_H
#define DEVICE_H #define DEVICE_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_PATH_H #ifndef DEVICE_PATH_H
#define DEVICE_PATH_H #define DEVICE_PATH_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* PCI defines and function prototypes * PCI defines and function prototypes
* Copyright 1994, Drew Eckhardt * Copyright 1994, Drew Eckhardt

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef PCI_DEF_H #ifndef PCI_DEF_H
#define PCI_DEF_H #define PCI_DEF_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef PCI_ROM_H #ifndef PCI_ROM_H
#define PCI_ROM_H #define PCI_ROM_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_PCIEXP_H #ifndef DEVICE_PCIEXP_H
#define DEVICE_PCIEXP_H #define DEVICE_PCIEXP_H
/* (c) 2005 Linux Networx GPL see COPYING for details */ /* (c) 2005 Linux Networx GPL see COPYING for details */

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_PCIX_H #ifndef DEVICE_PCIX_H
#define DEVICE_PCIX_H #define DEVICE_PCIX_H
/* (c) 2005 Linux Networx GPL see COPYING for details */ /* (c) 2005 Linux Networx GPL see COPYING for details */

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_PNP_DEF_H #ifndef DEVICE_PNP_DEF_H
#define DEVICE_PNP_DEF_H #define DEVICE_PNP_DEF_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_RESOURCE_H #ifndef DEVICE_RESOURCE_H
#define DEVICE_RESOURCE_H #define DEVICE_RESOURCE_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_SMBUS_H #ifndef DEVICE_SMBUS_H
#define DEVICE_SMBUS_H #define DEVICE_SMBUS_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef DEVICE_SMBUS_DEF_H #ifndef DEVICE_SMBUS_DEF_H
#define DEVICE_SMBUS_DEF_H #define DEVICE_SMBUS_DEF_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef FALLBACK_H #ifndef FALLBACK_H
#define FALLBACK_H #define FALLBACK_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _IMD_PRIVATE_H_ #ifndef _IMD_PRIVATE_H_
#define _IMD_PRIVATE_H_ #define _IMD_PRIVATE_H_

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef IP_CHECKSUM_H #ifndef IP_CHECKSUM_H
#define IP_CHECKSUM_H #define IP_CHECKSUM_H
unsigned long compute_ip_checksum(const void *addr, unsigned long length); unsigned long compute_ip_checksum(const void *addr, unsigned long length);

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LIMITS_H #ifndef LIMITS_H
#define LIMITS_H #define LIMITS_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _MAIN_DECL_H_ #ifndef _MAIN_DECL_H_
#define _MAIN_DECL_H_ #define _MAIN_DECL_H_

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef PC80_ISA_DMA_H #ifndef PC80_ISA_DMA_H
#define PC80_ISA_DMA_H #define PC80_ISA_DMA_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef PC80_KEYBOARD_H #ifndef PC80_KEYBOARD_H
#define PC80_KEYBOARD_H #define PC80_KEYBOARD_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef RESET_H #ifndef RESET_H
#define RESET_H #define RESET_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef SMP_ATOMIC_H #ifndef SMP_ATOMIC_H
#define SMP_ATOMIC_H #define SMP_ATOMIC_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _SMP_NODE_H_ #ifndef _SMP_NODE_H_
#define _SMP_NODE_H_ #define _SMP_NODE_H_

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef SMP_SPINLOCK_H #ifndef SMP_SPINLOCK_H
#define SMP_SPINLOCK_H #define SMP_SPINLOCK_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef STDDEF_H #ifndef STDDEF_H
#define STDDEF_H #define STDDEF_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef STDLIB_H #ifndef STDLIB_H
#define STDLIB_H #define STDLIB_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* linux/byteorder/swab.h * linux/byteorder/swab.h
* Byte-swapping, independently from CPU endianness * Byte-swapping, independently from CPU endianness

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __SYS_TYPES_H__ #ifndef __SYS_TYPES_H__
#define __SYS_TYPES_H__ #define __SYS_TYPES_H__

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/****************************************************************************** /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation * Copyright (c) 2004, 2008 IBM Corporation
* Copyright (c) 2009 Pattrick Hueper <phueper@hueper.net> * Copyright (c) 2009 Pattrick Hueper <phueper@hueper.net>

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef VERSION_H #ifndef VERSION_H
#define VERSION_H #define VERSION_H

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef WATCHDOG_H #ifndef WATCHDOG_H
#define WATCHDOG_H #define WATCHDOG_H