lib: Add SPDX identifiers to files missing them

This adds SPDX identifiers to the remaining source files in the
lib directory that don't already have them.

A note on gcov-iov.h - As machine generated content, this file is
believed to be uncopyrightable, and therefore in the public domain, so
gets the CC-PDDC license even though there is code in the file.

Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Change-Id: Ifcb584d78a55e56c1b5c02d424a7e950a7f115dc
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66502
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
Martin Roth 2022-08-07 15:12:12 -06:00 committed by Martin L Roth
parent f18034c1b3
commit fb8876d356
19 changed files with 40 additions and 1 deletions

View File

@ -1,2 +1,4 @@
-- SPDX-License-Identifier: GPL-2.0-or-later
package CB is
end CB;

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <stdint.h>
#include <ip_checksum.h>

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <delay.h>
void mdelay(unsigned int msecs)
{

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <fallback.h>
#include <watchdog.h>

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-3.0-only WITH GCC-exception-3.1 */
/* File format for coverage information
Copyright (C) 1996, 1997, 1998, 2000, 2002, 2003, 2004, 2005, 2007,
2008 Free Software Foundation, Inc.

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-3.0-only WITH GCC-exception-3.1 */
/* File format for coverage information
Copyright (C) 1996, 1997, 1998, 2000, 2002,
2003, 2004, 2005, 2008, 2009 Free Software Foundation, Inc.

View File

@ -1,3 +1,7 @@
/* SPDX-License-Identifier: CC-PDDC */
/* Please update this license if any licensable material is added. */
/* Generated automatically by the program `build/gcov-iov'
from `4.7.2 (4 7) and (*)'. */

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-3.0-only WITH GCC-exception-3.1 */
/* Routines required for instrumenting a program. */
/* Compile this one with gcc. */
/* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,

View File

@ -1,8 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* coreboot interface to memory-saving variant of LZMA decoder
*
* Copyright (C) 2006 Carl-Daniel Hailfinger
* Released under the GNU GPL v2 or later
*
* Parts of this file are based on C/7zip/Compress/LZMA_C/LzmaTest.c from the
* LZMA SDK 4.42, which is written and distributed to public domain by Igor

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
#include <stdlib.h>
#include <string.h>

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
void *memchr(const void *s, int c, size_t n)
{

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
int memcmp(const void *src1, const void *src2, size_t bytes)

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
void *memcpy(void *vdest, const void *vsrc, size_t bytes)
{

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
void *memmove(void *vdest, const void *vsrc, size_t count)
{

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
void *memset(void *s, int c, size_t n)

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <stdint.h>
#include <lib.h>
#include <console/console.h>

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* This linker script is used to link rmodules (relocatable modules). It
* links at zero so that relocation fixups are easy when placing the binaries

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <assert.h>
#include <ctype.h>
#include <string.h>

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <version.h>
#include <build.h>