Skip to content

Commit aedb847

Browse files
vathpelamartinezjavier
authored andcommitted
Fix up a bunch of our license statements and add SPDX most places
The license statements in our source files were getting to be a giant mess, and mostly they all just say the same thing. I've switched most of it to SPDX labels, but left copyright statements in place (where they were not obviously incorrect copy-paste jobs that I did...). If there's some change here you don't think is valid, let me know and we can fix it up together. Signed-off-by: Peter Jones <[email protected]>
1 parent bc89477 commit aedb847

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+117
-278
lines changed

MokManager.c

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#include <efi.h>
24
#include <efilib.h>
35
#include <stdarg.h>

PasswordCrypt.c

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#include <efi.h>
24
#include <efilib.h>
35
#include <Library/BaseCryptLib.h>

buildid.c

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
/*
24
* Walk a list of input files, printing the name and buildid of any file
35
* that has one.

cert.S

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
12

23
#if defined(VENDOR_DB_FILE) && defined(VENDOR_CERT_FILE)
34
# error both VENDOR_DB_FILE and VENDOR_CERT_FILE have been configured

errlog.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
12
/*
23
* errlog.c
3-
* Copyright 2017 Peter Jones <[email protected]>
4+
* Copyright Peter Jones <[email protected]>
45
*/
6+
57
#include "shim.h"
68
#include "hexdump.h"
79

fallback.c

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
12
/*
2-
* Copyright 2012-2013 Red Hat, Inc.
3-
* All rights reserved.
4-
*
5-
* See "COPYING" for license terms.
6-
*
7-
* Author(s): Peter Jones <[email protected]>
3+
* Copyright Red Hat, Inc.
4+
* Copyright Peter Jones <[email protected]>
85
*/
96

107
#include <efi.h>

httpboot.c

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,8 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
/*
24
* Copyright 2015 SUSE LINUX GmbH <[email protected]>
35
*
4-
* Redistribution and use in source and binary forms, with or without
5-
* modification, are permitted provided that the following conditions
6-
* are met:
7-
*
8-
* Redistributions of source code must retain the above copyright
9-
* notice, this list of conditions and the following disclaimer.
10-
*
11-
* Redistributions in binary form must reproduce the above copyright
12-
* notice, this list of conditions and the following disclaimer in the
13-
* documentation and/or other materials provided with the
14-
* distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19-
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20-
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21-
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24-
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25-
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27-
* OF THE POSSIBILITY OF SUCH DAMAGE.
28-
*
296
* Significant portions of this code are derived from Tianocore
307
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel
318
* Corporation.

include/asm.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/*
2-
* asm.h
3-
* Copyright 2018 Peter Jones <[email protected]>
4-
*/
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
52

63
#ifndef SHIM_ASM_H_
74
#define SHIM_ASM_H_

include/compiler.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/*
2-
* compiler.h
3-
* Copyright 2019 Peter Jones <[email protected]>
4-
*/
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
52

63
#ifndef COMPILER_H_
74
#define COMPILER_H_

include/configtable.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_CONFIGTABLE_H
24
#define SHIM_CONFIGTABLE_H
35

include/console.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_CONSOLE_H
24
#define SHIM_CONSOLE_H
35

include/efiauthenticated.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_EFIAUTHENTICATED_H
24
#define SHIM_EFIAUTHENTICATED_H
35

include/errors.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_ERRORS_H
24
#define SHIM_ERRORS_H
35

include/execute.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_LIB_EXECUTE_H
24
#define SHIM_LIB_EXECUTE_H
35

include/guid.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_GUID_H
24
#define SHIM_GUID_H
35

include/hexdump.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef STATIC_HEXDUMP_H
24
#define STATIC_HEXDUMP_H
35

include/http.h

+11-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
1-
/** @file
2-
This file defines the EFI HTTP Protocol interface. It is split into
3-
the following two main sections:
4-
HTTP Service Binding Protocol (HTTPSB)
5-
HTTP Protocol (HTTP)
6-
7-
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
8-
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
9-
This program and the accompanying materials
10-
are licensed and made available under the terms and conditions of the BSD License
11-
which accompanies this distribution. The full text of the license may be found at
12-
http://opensource.org/licenses/bsd-license.php
13-
14-
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15-
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16-
17-
@par Revision Reference:
18-
This Protocol is introduced in UEFI Specification 2.5
19-
20-
**/
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
3+
/*
4+
* This file defines the EFI HTTP Protocol interface. It is split into
5+
* the following two main sections:
6+
* HTTP Service Binding Protocol (HTTPSB)
7+
* HTTP Protocol (HTTP)
8+
*
9+
* Copyright (c) 2016, Intel Corporation. All rights reserved.
10+
* Copyright 2015 Hewlett Packard Enterprise Development LP
11+
*/
2112

2213
#ifndef SHIM_HTTP_H
2314
#define SHIM_HTTP_H

include/httpboot.h

+1-25
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,7 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
12
/*
23
* Copyright 2015 SUSE LINUX GmbH <[email protected]>
34
*
4-
* Redistribution and use in source and binary forms, with or without
5-
* modification, are permitted provided that the following conditions
6-
* are met:
7-
*
8-
* Redistributions of source code must retain the above copyright
9-
* notice, this list of conditions and the following disclaimer.
10-
*
11-
* Redistributions in binary form must reproduce the above copyright
12-
* notice, this list of conditions and the following disclaimer in the
13-
* documentation and/or other materials provided with the
14-
* distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19-
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20-
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21-
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24-
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25-
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27-
* OF THE POSSIBILITY OF SUCH DAMAGE.
28-
*
295
* Significant portions of this code are derived from Tianocore
306
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel
317
* Corporation.

include/ip4config2.h

+7-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
/** @file
2-
This file provides a definition of the EFI IPv4 Configuration II
3-
Protocol.
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
42

5-
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
6-
This program and the accompanying materials
7-
are licensed and made available under the terms and conditions of the BSD License
8-
which accompanies this distribution. The full text of the license may be found at<BR>
9-
http://opensource.org/licenses/bsd-license.php
10-
11-
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13-
14-
@par Revision Reference:
15-
This Protocol is introduced in UEFI Specification 2.5
16-
17-
**/
3+
/*
4+
* This file provides a definition of the EFI IPv4 Configuration II
5+
* Protocol.
6+
*
7+
* Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
8+
*/
189
#ifndef SHIM_IP4CONFIG2_H
1910
#define SHIM_IP4CONFIG2_H
2011

include/ip6config.h

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
/** @file
2-
This file provides a definition of the EFI IPv6 Configuration
3-
Protocol.
4-
5-
Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
6-
This program and the accompanying materials
7-
are licensed and made available under the terms and conditions of the BSD License
8-
which accompanies this distribution. The full text of the license may be found at<BR>
9-
http://opensource.org/licenses/bsd-license.php
10-
11-
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13-
14-
**/
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
/*
3+
* This file provides a definition of the EFI IPv6 Configuration
4+
* Protocol.
5+
*
6+
* Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.
7+
*/
158
#ifndef SHIM_IP6CONFIG_H
169
#define SHIM_IP6CONFIG_H
1710

include/netboot.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_NETBOOT_H
24
#define SHIM_NETBOOT_H
35

include/passwordcrypt.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_PASSWORDCRYPT_H
24
#define SHIM_PASSWORDCRYPT_H
35

include/peimage.h

+13-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
/** @file
2-
EFI image format for PE32, PE32+ and TE. Please note some data structures are
3-
different for PE32 and PE32+. EFI_IMAGE_NT_HEADERS32 is for PE32 and
4-
EFI_IMAGE_NT_HEADERS64 is for PE32+.
5-
6-
This file is coded to the Visual Studio, Microsoft Portable Executable and
7-
Common Object File Format Specification, Revision 8.0 - May 16, 2006.
8-
This file also includes some definitions in PI Specification, Revision 1.0.
9-
10-
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
11-
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
12-
This program and the accompanying materials
13-
are licensed and made available under the terms and conditions of the BSD License
14-
which accompanies this distribution. The full text of the license may be found at
15-
http://opensource.org/licenses/bsd-license.php.
16-
17-
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
18-
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19-
20-
**/
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
/*
3+
* EFI image format for PE32, PE32+ and TE. Please note some data structures
4+
* are different for PE32 and PE32+. EFI_IMAGE_NT_HEADERS32 is for PE32 and
5+
* EFI_IMAGE_NT_HEADERS64 is for PE32+.
6+
*
7+
* This file is coded to the Visual Studio, Microsoft Portable Executable and
8+
* Common Object File Format Specification, Revision 8.0 - May 16, 2006. This
9+
* file also includes some definitions in PI Specification, Revision 1.0.
10+
*
11+
* Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
12+
* Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
13+
*/
2114

2215
#ifndef SHIM_PEIMAGE_H
2316
#define SHIM_PEIMAGE_H

include/replacements.h

+4-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
/*
2-
* Copyright 2013 Red Hat, Inc <[email protected]>
3-
*
4-
* Redistribution and use in source and binary forms, with or without
5-
* modification, are permitted provided that the following conditions
6-
* are met:
7-
*
8-
* Redistributions of source code must retain the above copyright
9-
* notice, this list of conditions and the following disclaimer.
10-
*
11-
* Redistributions in binary form must reproduce the above copyright
12-
* notice, this list of conditions and the following disclaimer in the
13-
* documentation and/or other materials provided with the
14-
* distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19-
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20-
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21-
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24-
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25-
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27-
* OF THE POSSIBILITY OF SUCH DAMAGE.
4+
* Copyright Red Hat, Inc
5+
* Copyright Peter Jones <[email protected]>
286
*/
297
#ifndef SHIM_REPLACEMENTS_H
308
#define SHIM_REPLACEMENTS_H

include/security_policy.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_SECURITY_POLICY_H
24
#define SHIM_SECURITY_POLICY_H
35

include/shell.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_SHELL_H
24
#define SHIM_SHELL_H
35

include/simple_file.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_SIMPLE_FILE_H
24
#define SHIM_SIMPLE_FILE_H
35

include/str.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_STR_H
24
#define SHIM_STR_H
35

include/tpm.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-2-Clause-Patent
2+
13
#ifndef SHIM_TPM_H
24
#define SHIM_TPM_H
35

0 commit comments

Comments
 (0)