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:
		
				
					committed by
					
						
						Martin L Roth
					
				
			
			
				
	
			
			
			
						parent
						
							f18034c1b3
						
					
				
				
					commit
					fb8876d356
				
			@@ -1,2 +1,4 @@
 | 
				
			|||||||
 | 
					-- SPDX-License-Identifier: GPL-2.0-or-later
 | 
				
			||||||
 | 
					
 | 
				
			||||||
package CB is
 | 
					package CB is
 | 
				
			||||||
end CB;
 | 
					end CB;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <ip_checksum.h>
 | 
					#include <ip_checksum.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <delay.h>
 | 
					#include <delay.h>
 | 
				
			||||||
void mdelay(unsigned int msecs)
 | 
					void mdelay(unsigned int msecs)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <fallback.h>
 | 
					#include <fallback.h>
 | 
				
			||||||
#include <watchdog.h>
 | 
					#include <watchdog.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-3.0-only WITH GCC-exception-3.1 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* File format for coverage information
 | 
					/* File format for coverage information
 | 
				
			||||||
   Copyright (C) 1996, 1997, 1998, 2000, 2002, 2003, 2004, 2005, 2007,
 | 
					   Copyright (C) 1996, 1997, 1998, 2000, 2002, 2003, 2004, 2005, 2007,
 | 
				
			||||||
   2008  Free Software Foundation, Inc.
 | 
					   2008  Free Software Foundation, Inc.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-3.0-only WITH GCC-exception-3.1 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* File format for coverage information
 | 
					/* File format for coverage information
 | 
				
			||||||
   Copyright (C) 1996, 1997, 1998, 2000, 2002,
 | 
					   Copyright (C) 1996, 1997, 1998, 2000, 2002,
 | 
				
			||||||
   2003, 2004, 2005, 2008, 2009 Free Software Foundation, Inc.
 | 
					   2003, 2004, 2005, 2008, 2009 Free Software Foundation, Inc.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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'
 | 
					/* Generated automatically by the program `build/gcov-iov'
 | 
				
			||||||
   from `4.7.2 (4 7) and  (*)'.  */
 | 
					   from `4.7.2 (4 7) and  (*)'.  */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-3.0-only WITH GCC-exception-3.1 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Routines required for instrumenting a program.  */
 | 
					/* Routines required for instrumenting a program.  */
 | 
				
			||||||
/* Compile this one with gcc.  */
 | 
					/* Compile this one with gcc.  */
 | 
				
			||||||
/* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 | 
					/* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,9 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-or-later */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * coreboot interface to memory-saving variant of LZMA decoder
 | 
					 * coreboot interface to memory-saving variant of LZMA decoder
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Copyright (C) 2006 Carl-Daniel Hailfinger
 | 
					 * 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
 | 
					 * 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
 | 
					 * LZMA SDK 4.42, which is written and distributed to public domain by Igor
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <console/console.h>
 | 
					#include <console/console.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
void *memchr(const void *s, int c, size_t n)
 | 
					void *memchr(const void *s, int c, size_t n)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int memcmp(const void *src1, const void *src2, size_t bytes)
 | 
					int memcmp(const void *src1, const void *src2, size_t bytes)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
void *memcpy(void *vdest, const void *vsrc, size_t bytes)
 | 
					void *memcpy(void *vdest, const void *vsrc, size_t bytes)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
void *memmove(void *vdest, const void *vsrc, size_t count)
 | 
					void *memmove(void *vdest, const void *vsrc, size_t count)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void *memset(void *s, int c, size_t n)
 | 
					void *memset(void *s, int c, size_t n)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <lib.h>
 | 
					#include <lib.h>
 | 
				
			||||||
#include <console/console.h>
 | 
					#include <console/console.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * This linker script is used to link rmodules (relocatable modules).  It
 | 
					 * This linker script is used to link rmodules (relocatable modules).  It
 | 
				
			||||||
 * links at zero so that relocation fixups are easy when placing the binaries
 | 
					 * links at zero so that relocation fixups are easy when placing the binaries
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <assert.h>
 | 
					#include <assert.h>
 | 
				
			||||||
#include <ctype.h>
 | 
					#include <ctype.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <version.h>
 | 
					#include <version.h>
 | 
				
			||||||
#include <build.h>
 | 
					#include <build.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user