1
0
Fork 0

efi: Replace GPL license boilerplate with SPDX headers

Replace all GPL license blurbs with an equivalent SPDX header (most
files are GPLv2, some are GPLv2+). While at it, drop some outdated
header changelogs as well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Alexander Graf <agraf@suse.de>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Jeffrey Hugo <jhugo@codeaurora.org>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Jones <pjones@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20190202094119.13230-7-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
hifive-unleashed-5.1
Ard Biesheuvel 2019-02-02 10:41:15 +01:00 committed by Ingo Molnar
parent ac9aff8ef9
commit 4febfb8dd0
28 changed files with 29 additions and 204 deletions

View File

@ -1,19 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* apple-properties.c - EFI device properties on Macs * apple-properties.c - EFI device properties on Macs
* Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de>
* *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2) as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
* Note, all properties are considered as u8 arrays. * Note, all properties are considered as u8 arrays.
* To get a value of any of them the caller must use device_property_read_u8_array(). * To get a value of any of them the caller must use device_property_read_u8_array().
*/ */

View File

@ -1,14 +1,10 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Extensible Firmware Interface * Extensible Firmware Interface
* *
* Based on Extensible Firmware Interface Specification version 2.4 * Based on Extensible Firmware Interface Specification version 2.4
* *
* Copyright (C) 2013 - 2015 Linaro Ltd. * Copyright (C) 2013 - 2015 Linaro Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/ */
#define pr_fmt(fmt) "efi: " fmt #define pr_fmt(fmt) "efi: " fmt

View File

@ -1,14 +1,10 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Extensible Firmware Interface * Extensible Firmware Interface
* *
* Based on Extensible Firmware Interface Specification version 2.4 * Based on Extensible Firmware Interface Specification version 2.4
* *
* Copyright (C) 2013, 2014 Linaro Ltd. * Copyright (C) 2013, 2014 Linaro Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/ */
#include <linux/dmi.h> #include <linux/dmi.h>

View File

@ -1,10 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* EFI capsule loader driver. * EFI capsule loader driver.
* *
* Copyright 2015 Intel Corporation * Copyright 2015 Intel Corporation
*
* This file is part of the Linux kernel, and is made available under
* the terms of the GNU General Public License version 2.
*/ */
#define pr_fmt(fmt) "efi: " fmt #define pr_fmt(fmt) "efi: " fmt

View File

@ -1,10 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* EFI capsule support. * EFI capsule support.
* *
* Copyright 2013 Intel Corporation; author Matt Fleming * Copyright 2013 Intel Corporation; author Matt Fleming
*
* This file is part of the Linux kernel, and is made available under
* the terms of the GNU General Public License version 2.
*/ */
#define pr_fmt(fmt) "efi: " fmt #define pr_fmt(fmt) "efi: " fmt

View File

@ -1,20 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* UEFI Common Platform Error Record (CPER) support * UEFI Common Platform Error Record (CPER) support
* *
* Copyright (C) 2017, The Linux Foundation. All rights reserved. * Copyright (C) 2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* UEFI Common Platform Error Record (CPER) support * UEFI Common Platform Error Record (CPER) support
* *
@ -9,19 +10,6 @@
* *
* For more information about CPER, please refer to Appendix N of UEFI * For more information about CPER, please refer to Appendix N of UEFI
* Specification version 2.4. * Specification version 2.4.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* dev-path-parser.c - EFI Device Path parser * dev-path-parser.c - EFI Device Path parser
* Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de>
@ -5,14 +6,6 @@
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2) as * it under the terms of the GNU General Public License (version 2) as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <linux/acpi.h> #include <linux/acpi.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright 2012 Intel Corporation * Copyright 2012 Intel Corporation
* Author: Josh Triplett <josh@joshtriplett.org> * Author: Josh Triplett <josh@joshtriplett.org>
@ -5,10 +6,6 @@
* Based on the bgrt driver: * Based on the bgrt driver:
* Copyright 2012 Red Hat, Inc <mjg@redhat.com> * Copyright 2012 Red Hat, Inc <mjg@redhat.com>
* Author: Matthew Garrett * Author: Matthew Garrett
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
#include <linux/efi.h> #include <linux/efi.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/pstore.h> #include <linux/pstore.h>

View File

@ -1,15 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* efibc: control EFI bootloaders which obey LoaderEntryOneShot var * efibc: control EFI bootloaders which obey LoaderEntryOneShot var
* Copyright (c) 2013-2016, Intel Corporation. * Copyright (c) 2013-2016, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/ */
#define pr_fmt(fmt) "efibc: " fmt #define pr_fmt(fmt) "efibc: " fmt

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* Originally from efivars.c, * Originally from efivars.c,
* *
@ -6,63 +7,6 @@
* *
* This code takes all variables accessible from EFI runtime and * This code takes all variables accessible from EFI runtime and
* exports them via sysfs * exports them via sysfs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Changelog:
*
* 17 May 2004 - Matt Domsch <Matt_Domsch@dell.com>
* remove check for efi_enabled in exit
* add MODULE_VERSION
*
* 26 Apr 2004 - Matt Domsch <Matt_Domsch@dell.com>
* minor bug fixes
*
* 21 Apr 2004 - Matt Tolentino <matthew.e.tolentino@intel.com)
* converted driver to export variable information via sysfs
* and moved to drivers/firmware directory
* bumped revision number to v0.07 to reflect conversion & move
*
* 10 Dec 2002 - Matt Domsch <Matt_Domsch@dell.com>
* fix locking per Peter Chubb's findings
*
* 25 Mar 2002 - Matt Domsch <Matt_Domsch@dell.com>
* move uuid_unparse() to include/asm-ia64/efi.h:efi_guid_to_str()
*
* 12 Feb 2002 - Matt Domsch <Matt_Domsch@dell.com>
* use list_for_each_safe when deleting vars.
* remove ifdef CONFIG_SMP around include <linux/smp.h>
* v0.04 release to linux-ia64@linuxia64.org
*
* 20 April 2001 - Matt Domsch <Matt_Domsch@dell.com>
* Moved vars from /proc/efi to /proc/efi/vars, and made
* efi.c own the /proc/efi directory.
* v0.03 release to linux-ia64@linuxia64.org
*
* 26 March 2001 - Matt Domsch <Matt_Domsch@dell.com>
* At the request of Stephane, moved ownership of /proc/efi
* to efi.c, and now efivars lives under /proc/efi/vars.
*
* 12 March 2001 - Matt Domsch <Matt_Domsch@dell.com>
* Feedback received from Stephane Eranian incorporated.
* efivar_write() checks copy_from_user() return value.
* efivar_read/write() returns proper errno.
* v0.02 release to linux-ia64@linuxia64.org
*
* 26 February 2001 - Matt Domsch <Matt_Domsch@dell.com>
* v0.01 release to linux-ia64@linuxia64.org
*/ */
#include <linux/efi.h> #include <linux/efi.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* esrt.c * esrt.c
* *

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* fake_mem.c * fake_mem.c
* *
@ -8,21 +9,6 @@
* By specifying this parameter, you can add arbitrary attribute to * By specifying this parameter, you can add arbitrary attribute to
* specific memory range by updating original (firmware provided) EFI * specific memory range by updating original (firmware provided) EFI
* memmap. * memmap.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, see <http://www.gnu.org/licenses/>.
*
* The full GNU General Public License is included in this distribution in
* the file called "COPYING".
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>

View File

@ -1,10 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2013 Linaro Ltd; <roy.franz@linaro.org> * Copyright (C) 2013 Linaro Ltd; <roy.franz@linaro.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/ */
#include <linux/efi.h> #include <linux/efi.h>
#include <asm/efi.h> #include <asm/efi.h>

View File

@ -1,13 +1,9 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2013, 2014 Linaro Ltd; <roy.franz@linaro.org> * Copyright (C) 2013, 2014 Linaro Ltd; <roy.franz@linaro.org>
* *
* This file implements the EFI boot stub for the arm64 kernel. * This file implements the EFI boot stub for the arm64 kernel.
* Adapted from ARM version by Mark Salter <msalter@redhat.com> * Adapted from ARM version by Mark Salter <msalter@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/ */
/* /*

View File

@ -1,13 +1,10 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Helper functions used by the EFI stub on multiple * Helper functions used by the EFI stub on multiple
* architectures. This should be #included by the EFI stub * architectures. This should be #included by the EFI stub
* implementation files. * implementation files.
* *
* Copyright 2011 Intel Corporation; author Matt Fleming * Copyright 2011 Intel Corporation; author Matt Fleming
*
* This file is part of the Linux kernel, and is made available
* under the terms of the GNU General Public License version 2.
*
*/ */
#include <linux/efi.h> #include <linux/efi.h>

View File

@ -1,13 +1,10 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* FDT related Helper functions used by the EFI stub on multiple * FDT related Helper functions used by the EFI stub on multiple
* architectures. This should be #included by the EFI stub * architectures. This should be #included by the EFI stub
* implementation files. * implementation files.
* *
* Copyright 2013 Linaro Limited; author Roy Franz * Copyright 2013 Linaro Limited; author Roy Franz
*
* This file is part of the Linux kernel, and is made available
* under the terms of the GNU General Public License version 2.
*
*/ */
#include <linux/efi.h> #include <linux/efi.h>

View File

@ -1,10 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
* *
* Copyright 2011 Intel Corporation; author Matt Fleming * Copyright 2011 Intel Corporation; author Matt Fleming
* *
* This file is part of the Linux kernel, and is made available under
* the terms of the GNU General Public License version 2.
*
* ----------------------------------------------------------------------- */ * ----------------------------------------------------------------------- */
#include <linux/efi.h> #include <linux/efi.h>

View File

@ -1,10 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2016 Linaro Ltd; <ard.biesheuvel@linaro.org> * Copyright (C) 2016 Linaro Ltd; <ard.biesheuvel@linaro.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/ */
#include <linux/efi.h> #include <linux/efi.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Secure boot handling. * Secure boot handling.
* *
@ -5,9 +6,6 @@
* Roy Franz <roy.franz@linaro.org * Roy Franz <roy.franz@linaro.org
* Copyright (C) 2013 Red Hat, Inc. * Copyright (C) 2013 Red Hat, Inc.
* Mark Salter <msalter@redhat.com> * Mark Salter <msalter@redhat.com>
*
* This file is part of the Linux kernel, and is made available under the
* terms of the GNU General Public License version 2.
*/ */
#include <linux/efi.h> #include <linux/efi.h>
#include <asm/efi.h> #include <asm/efi.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* TPM handling. * TPM handling.
* *
@ -5,9 +6,6 @@
* Copyright (C) 2017 Google, Inc. * Copyright (C) 2017 Google, Inc.
* Matthew Garrett <mjg59@google.com> * Matthew Garrett <mjg59@google.com>
* Thiebaud Weksteen <tweek@google.com> * Thiebaud Weksteen <tweek@google.com>
*
* This file is part of the Linux kernel, and is made available under the
* terms of the GNU General Public License version 2.
*/ */
#include <linux/efi.h> #include <linux/efi.h>
#include <linux/tpm_eventlog.h> #include <linux/tpm_eventlog.h>

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2016 Linaro Ltd. <ard.biesheuvel@linaro.org> * Copyright (C) 2016 Linaro Ltd. <ard.biesheuvel@linaro.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/ */
#define pr_fmt(fmt) "efi: memattr: " fmt #define pr_fmt(fmt) "efi: memattr: " fmt

View File

@ -1,8 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* linux/drivers/efi/runtime-map.c * linux/drivers/efi/runtime-map.c
* Copyright (C) 2013 Red Hat, Inc., Dave Young <dyoung@redhat.com> * Copyright (C) 2013 Red Hat, Inc., Dave Young <dyoung@redhat.com>
*
* This file is released under the GPLv2.
*/ */
#include <linux/string.h> #include <linux/string.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* EFI Test Driver for Runtime Services * EFI Test Driver for Runtime Services
* *

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0+ */
/* /*
* EFI Test driver Header * EFI Test driver Header
* *

View File

@ -1,10 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2017 Google, Inc. * Copyright (C) 2017 Google, Inc.
* Thiebaud Weksteen <tweek@google.com> * Thiebaud Weksteen <tweek@google.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/ */
#include <linux/efi.h> #include <linux/efi.h>

View File

@ -1,22 +1,9 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* Originally from efivars.c * Originally from efivars.c
* *
* Copyright (C) 2001,2003,2004 Dell <Matt_Domsch@dell.com> * Copyright (C) 2001,2003,2004 Dell <Matt_Domsch@dell.com>
* Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com> * Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <linux/capability.h> #include <linux/capability.h>