summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-08-07 15:12:12 -0600
committerMartin L Roth <gaumless@gmail.com>2022-08-11 17:53:29 +0000
commitfb8876d3565ccf8efbd5d73c08a59983ab68222a (patch)
tree6b0bffa2a5366b86ff82a394416102a0cd8a6073 /src/lib
parentf18034c1b3866074eb388d01c833cbe6c79673c1 (diff)
downloadcoreboot-fb8876d3565ccf8efbd5d73c08a59983ab68222a.tar.gz
coreboot-fb8876d3565ccf8efbd5d73c08a59983ab68222a.tar.bz2
coreboot-fb8876d3565ccf8efbd5d73c08a59983ab68222a.zip
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>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cb.ads2
-rw-r--r--src/lib/compute_ip_checksum.c2
-rw-r--r--src/lib/delay.c2
-rw-r--r--src/lib/fallback_boot.c2
-rw-r--r--src/lib/gcov-io.c2
-rw-r--r--src/lib/gcov-io.h2
-rw-r--r--src/lib/gcov-iov.h4
-rw-r--r--src/lib/libgcov.c2
-rw-r--r--src/lib/lzma.c3
-rw-r--r--src/lib/malloc.c2
-rw-r--r--src/lib/memchr.c2
-rw-r--r--src/lib/memcmp.c2
-rw-r--r--src/lib/memcpy.c2
-rw-r--r--src/lib/memmove.c2
-rw-r--r--src/lib/memset.c2
-rw-r--r--src/lib/ramtest.c2
-rw-r--r--src/lib/rmodule.ld2
-rw-r--r--src/lib/string.c2
-rw-r--r--src/lib/version.c2
19 files changed, 40 insertions, 1 deletions
diff --git a/src/lib/cb.ads b/src/lib/cb.ads
index 41a2a427de38..4ed4f8d76b01 100644
--- a/src/lib/cb.ads
+++ b/src/lib/cb.ads
@@ -1,2 +1,4 @@
+-- SPDX-License-Identifier: GPL-2.0-or-later
+
package CB is
end CB;
diff --git a/src/lib/compute_ip_checksum.c b/src/lib/compute_ip_checksum.c
index 8aa01333bcd1..913f25c10cc1 100644
--- a/src/lib/compute_ip_checksum.c
+++ b/src/lib/compute_ip_checksum.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <stdint.h>
#include <ip_checksum.h>
diff --git a/src/lib/delay.c b/src/lib/delay.c
index 7f478778dd9c..25f93acdcb58 100644
--- a/src/lib/delay.c
+++ b/src/lib/delay.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <delay.h>
void mdelay(unsigned int msecs)
{
diff --git a/src/lib/fallback_boot.c b/src/lib/fallback_boot.c
index d3d0eb0d2107..bd8503b66497 100644
--- a/src/lib/fallback_boot.c
+++ b/src/lib/fallback_boot.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <fallback.h>
#include <watchdog.h>
diff --git a/src/lib/gcov-io.c b/src/lib/gcov-io.c
index e14252412ee2..1a41b79f73e1 100644
--- a/src/lib/gcov-io.c
+++ b/src/lib/gcov-io.c
@@ -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.
diff --git a/src/lib/gcov-io.h b/src/lib/gcov-io.h
index 4c0b2e4e423e..14524248dbf4 100644
--- a/src/lib/gcov-io.h
+++ b/src/lib/gcov-io.h
@@ -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.
diff --git a/src/lib/gcov-iov.h b/src/lib/gcov-iov.h
index 09951fbbe7c4..d653379ca4de 100644
--- a/src/lib/gcov-iov.h
+++ b/src/lib/gcov-iov.h
@@ -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 (*)'. */
diff --git a/src/lib/libgcov.c b/src/lib/libgcov.c
index 571aa7bb8ea2..b0c816181d1e 100644
--- a/src/lib/libgcov.c
+++ b/src/lib/libgcov.c
@@ -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,
diff --git a/src/lib/lzma.c b/src/lib/lzma.c
index d2e3e4b45d53..cf5200216669 100644
--- a/src/lib/lzma.c
+++ b/src/lib/lzma.c
@@ -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
diff --git a/src/lib/malloc.c b/src/lib/malloc.c
index 7d787d631e13..57a72c22c810 100644
--- a/src/lib/malloc.c
+++ b/src/lib/malloc.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <console/console.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/lib/memchr.c b/src/lib/memchr.c
index a890dceada9c..65440324afff 100644
--- a/src/lib/memchr.c
+++ b/src/lib/memchr.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <string.h>
void *memchr(const void *s, int c, size_t n)
{
diff --git a/src/lib/memcmp.c b/src/lib/memcmp.c
index 89059a18bd7a..a9690359b95a 100644
--- a/src/lib/memcmp.c
+++ b/src/lib/memcmp.c
@@ -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)
diff --git a/src/lib/memcpy.c b/src/lib/memcpy.c
index 1053a531c8c3..e1fa3c56cf4d 100644
--- a/src/lib/memcpy.c
+++ b/src/lib/memcpy.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <string.h>
void *memcpy(void *vdest, const void *vsrc, size_t bytes)
{
diff --git a/src/lib/memmove.c b/src/lib/memmove.c
index fd75135788a3..45528abaa364 100644
--- a/src/lib/memmove.c
+++ b/src/lib/memmove.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <string.h>
void *memmove(void *vdest, const void *vsrc, size_t count)
{
diff --git a/src/lib/memset.c b/src/lib/memset.c
index bac33055904e..fc87c8a7bd13 100644
--- a/src/lib/memset.c
+++ b/src/lib/memset.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <string.h>
void *memset(void *s, int c, size_t n)
diff --git a/src/lib/ramtest.c b/src/lib/ramtest.c
index 45178a7e235a..d6f958f1607f 100644
--- a/src/lib/ramtest.c
+++ b/src/lib/ramtest.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <stdint.h>
#include <lib.h>
#include <console/console.h>
diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld
index ddf79257dfe6..4595481ff2e3 100644
--- a/src/lib/rmodule.ld
+++ b/src/lib/rmodule.ld
@@ -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
diff --git a/src/lib/string.c b/src/lib/string.c
index a9515f70ceca..dd7d1512ea11 100644
--- a/src/lib/string.c
+++ b/src/lib/string.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <assert.h>
#include <ctype.h>
#include <string.h>
diff --git a/src/lib/version.c b/src/lib/version.c
index 5b24c5cae1c4..84718328f0f5 100644
--- a/src/lib/version.c
+++ b/src/lib/version.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <version.h>
#include <build.h>