util: Add SPDX header, replacing boiler plate where applicable
In a few cases a license was added: Stuff coming from Linux is "GPL-2.0" (not GPL-2.0-only!), build-release is by me and got the usual GPL-2.0-only treatment. uio_usbdebug and spkmodem had their licenses propagate to all their files. Change-Id: Ia5712bbaa417cb9e937834512351fcc0acfa16be Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41202 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					# SPDX-License-Identifier: GPL-2.0-only
 | 
				
			||||||
# ${VERSION_NAME}: new version name
 | 
					# ${VERSION_NAME}: new version name
 | 
				
			||||||
# ${COMMIT_ID}: commit id (if not master)
 | 
					# ${COMMIT_ID}: commit id (if not master)
 | 
				
			||||||
# ${USERNAME}: username (if not default to https)
 | 
					# ${USERNAME}: username (if not default to https)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env python2
 | 
					#!/usr/bin/env python2
 | 
				
			||||||
# Use of this source code is governed by a BSD-style license that can be
 | 
					# SPDX-License-Identifier: BSD-2-Clause
 | 
				
			||||||
# found in the LICENSE file.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
import struct
 | 
					import struct
 | 
				
			||||||
import sys
 | 
					import sys
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
# usage: perl scripts/get_maintainer.pl [OPTIONS] <patch>
 | 
					# usage: perl scripts/get_maintainer.pl [OPTIONS] <patch>
 | 
				
			||||||
#        perl scripts/get_maintainer.pl [OPTIONS] -f <file>
 | 
					#        perl scripts/get_maintainer.pl [OPTIONS] -f <file>
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Licensed under the terms of the GNU GPL License version 2
 | 
					# SPDX-License-Identifier: GPL-2.0-only
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use strict;
 | 
					use strict;
 | 
				
			||||||
use warnings;
 | 
					use warnings;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,15 +1,5 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
# Permission to use, copy, modify, and/or distribute this software for
 | 
					# SPDX-License-Identifier: ISC
 | 
				
			||||||
# any purpose with or without fee is hereby granted, provided that the
 | 
					 | 
				
			||||||
# above copyright notice and this permission notice appear in all copies.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
 | 
					 | 
				
			||||||
# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
 | 
					 | 
				
			||||||
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 | 
					 | 
				
			||||||
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 | 
					 | 
				
			||||||
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 | 
					 | 
				
			||||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 | 
					 | 
				
			||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
filelist=$(git ls-files $* | \
 | 
					filelist=$(git ls-files $* | \
 | 
				
			||||||
		grep -Ev "^($(git submodule status |cut -d' ' -f3 |tr '\012' '|' | sed "s,|$,,"))$" | \
 | 
							grep -Ev "^($(git submodule status |cut -d' ' -f3 |tr '\012' '|' | sed "s,|$,,"))$" | \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env perl
 | 
					#!/usr/bin/env perl
 | 
				
			||||||
 | 
					# SPDX-License-Identifier: GPL-2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use strict;
 | 
					use strict;
 | 
				
			||||||
use warnings;
 | 
					use warnings;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,27 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
#
 | 
					# SPDX-License-Identifier: BSD-2-Clause
 | 
				
			||||||
# Redistribution and use in source and binary forms, with or without
 | 
					 | 
				
			||||||
# modification, are permitted provided that the following conditions are met:
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# 1. Redistributions of source code must retain the above copyright notice,
 | 
					 | 
				
			||||||
# this list of conditions and the following disclaimer.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
 | 
					 | 
				
			||||||
# this list of conditions and the following disclaimer in the documentation
 | 
					 | 
				
			||||||
# and/or other materials provided with the distribution.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 | 
					 | 
				
			||||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 | 
					 | 
				
			||||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 | 
					 | 
				
			||||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 | 
					 | 
				
			||||||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 | 
					 | 
				
			||||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 | 
					 | 
				
			||||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 | 
					 | 
				
			||||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 | 
					 | 
				
			||||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 | 
					 | 
				
			||||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 | 
					 | 
				
			||||||
# POSSIBILITY OF SUCH DAMAGE.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -z "$1" ] || [ -z "$2" ]; then
 | 
					if [ -z "$1" ] || [ -z "$2" ]; then
 | 
				
			||||||
	printf "Usage: %s <output file> \"<microcode .h files>\"\\n" "$0"
 | 
						printf "Usage: %s <output file> \"<microcode .h files>\"\\n" "$0"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,16 +1,6 @@
 | 
				
			|||||||
#!/usr/bin/env python
 | 
					#!/usr/bin/env python
 | 
				
			||||||
# spdtool - Tool for partial deblobbing of UEFI firmware images
 | 
					# spdtool - Tool for partial deblobbing of UEFI firmware images
 | 
				
			||||||
#
 | 
					# SPDX-License-Identifier: GPL-3.0-or-later
 | 
				
			||||||
# 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 3 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.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Parse a blob and search for SPD files.
 | 
					# Parse a blob and search for SPD files.
 | 
				
			||||||
# First it is searched for a possible SPD header.
 | 
					# First it is searched for a possible SPD header.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					# SPDX-License-Identifier: GPL-2.0-or-later
 | 
				
			||||||
PREFIX  ?= /usr/local
 | 
					PREFIX  ?= /usr/local
 | 
				
			||||||
INSTALL ?= install
 | 
					INSTALL ?= install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,15 +1,5 @@
 | 
				
			|||||||
/* spkmodem-recv.c - decode spkmodem signals */
 | 
					/* spkmodem-recv.c - decode spkmodem signals */
 | 
				
			||||||
/*
 | 
					/* SPDX-License-Identifier: GPL-2.0-or-later */
 | 
				
			||||||
 *  spkmodem-recv 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.
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 *  spkmodem-recv 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.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,4 @@
 | 
				
			|||||||
##
 | 
					# SPDX-License-Identifier: GPL-2.0-or-later
 | 
				
			||||||
## 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.
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
PROGRAM = superiotool
 | 
					PROGRAM = superiotool
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					# SPDX-License-Identifier: GPL-2.0-only
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include ../../.config
 | 
					include ../../.config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARCHDIR-$(CONFIG_ARCH_ARMV7)	:= armv7
 | 
					ARCHDIR-$(CONFIG_ARCH_ARMV7)	:= armv7
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <stddef.h>
 | 
					#include <stddef.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					# SPDX-License-Identifier: GPL-2.0-only
 | 
				
			||||||
 | 
					
 | 
				
			||||||
obj-m := uio_ehci_pci.o
 | 
					obj-m := uio_ehci_pci.o
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,16 +1,6 @@
 | 
				
			|||||||
/* uio_ehci_pci - UIO driver for PCI EHCI devices */
 | 
					/* uio_ehci_pci - UIO driver for PCI EHCI devices */
 | 
				
			||||||
/*
 | 
					/* This only implements MMIO access (no interrupts). */
 | 
				
			||||||
 * This only implements MMIO access (no interrupts).
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * 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; version 2 of the License.
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * 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.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <linux/device.h>
 | 
					#include <linux/device.h>
 | 
				
			||||||
#include <linux/module.h>
 | 
					#include <linux/module.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,13 +1,4 @@
 | 
				
			|||||||
/******************************************************************************
 | 
					/* SPDX-License-Identifier: BSD-2-Clause */
 | 
				
			||||||
 * This program and the accompanying materials
 | 
					 | 
				
			||||||
 * are made available under the terms of the BSD License
 | 
					 | 
				
			||||||
 * which accompanies this distribution, and is available at
 | 
					 | 
				
			||||||
 * http://www.opensource.org/licenses/bsd-license.php
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * Contributors:
 | 
					 | 
				
			||||||
 *     IBM Corporation - initial implementation
 | 
					 | 
				
			||||||
 *****************************************************************************/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdtypes.h>
 | 
					#include <stdtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user