Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/68983 )
Change subject: util: Add SPDX license headers to Makefiles ......................................................................
util: Add SPDX license headers to Makefiles
Signed-off-by: Martin Roth gaumless@gmail.com Change-Id: I7cf35132df0bc23f7b6f78014ddd72d58ea2ab8a Reviewed-on: https://review.coreboot.org/c/coreboot/+/68983 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Matt DeVillier matt.devillier@amd.corp-partner.google.com Reviewed-by: Elyes Haouas ehaouas@noos.fr Reviewed-by: Eric Lai eric_lai@quanta.corp-partner.google.com --- M util/archive/Makefile M util/bincfg/Makefile M util/bincfg/Makefile.inc M util/bucts/Makefile M util/cbfstool/Makefile.inc M util/cbfstool/bpdt_formats/Makefile.inc M util/cbfstool/fpt_formats/Makefile.inc M util/cbfstool/lz4/Makefile M util/cbfstool/lz4/lib/Makefile M util/crossgcc/Makefile M util/futility/Makefile M util/futility/Makefile.inc M util/fuzz-tests/Makefile M util/intelp2m/Makefile M util/kbc1126/Makefile M util/lint/Makefile M util/marvell/Makefile.inc M util/marvell/doimage_mv/Makefile.inc M util/msrtool/Makefile.in M util/nvidia/Makefile.inc M util/post/Makefile M util/sconfig/Makefile.inc M util/spd_tools/Makefile M util/supermicro/Makefile.inc 24 files changed, 39 insertions(+), 54 deletions(-)
Approvals: build bot (Jenkins): Verified Elyes Haouas: Looks good to me, approved Eric Lai: Looks good to me, approved Matt DeVillier: Looks good to me, approved
diff --git a/util/archive/Makefile b/util/archive/Makefile index d4b58f7..2de6a62 100644 --- a/util/archive/Makefile +++ b/util/archive/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only PROGRAM = archive HOSTCC ?= gcc WERROR=-Werror diff --git a/util/bincfg/Makefile b/util/bincfg/Makefile index ca375a5..dbcbc77 100644 --- a/util/bincfg/Makefile +++ b/util/bincfg/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only CC = gcc YACC = bison LEX = flex diff --git a/util/bincfg/Makefile.inc b/util/bincfg/Makefile.inc index 81c6af6..0f5f442 100644 --- a/util/bincfg/Makefile.inc +++ b/util/bincfg/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only bincfg_obj := bincfg.lex.o bincfg.tab.o
BINCFG_FLAGS += -I$(top)/util/bincfg -I$(objutil)/bincfg diff --git a/util/bucts/Makefile b/util/bucts/Makefile index 98f7314..d32258d 100644 --- a/util/bucts/Makefile +++ b/util/bucts/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only CC:=gcc OBJ:=bucts.o TARGET=bucts diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc index a60cee1..8428f8a 100644 --- a/util/cbfstool/Makefile.inc +++ b/util/cbfstool/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only compressionobj := compressionobj += compress.o # LZ4 diff --git a/util/cbfstool/bpdt_formats/Makefile.inc b/util/cbfstool/bpdt_formats/Makefile.inc index c676489..a3be46b 100644 --- a/util/cbfstool/bpdt_formats/Makefile.inc +++ b/util/cbfstool/bpdt_formats/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only
bpdt_formats_obj += bpdt_1_6.o bpdt_formats_obj += bpdt_1_7.o diff --git a/util/cbfstool/fpt_formats/Makefile.inc b/util/cbfstool/fpt_formats/Makefile.inc index 865eaed..11cb30d 100644 --- a/util/cbfstool/fpt_formats/Makefile.inc +++ b/util/cbfstool/fpt_formats/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only
fpt_formats_obj += fpt_hdr_20.o fpt_formats_obj += fpt_hdr_21.o diff --git a/util/cbfstool/lz4/Makefile b/util/cbfstool/lz4/Makefile index 931da35..4506267 100644 --- a/util/cbfstool/lz4/Makefile +++ b/util/cbfstool/lz4/Makefile @@ -1,30 +1,9 @@ +## SPDX-License-Identifier: BSD-2-Clause # ################################################################ # LZ4 - Makefile # Copyright (C) Yann Collet 2011-2015 # All rights reserved. # -# BSD license -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# * 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. -# # You can contact the author at : # - LZ4 source repository : https://github.com/Cyan4973/lz4 # - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c diff --git a/util/cbfstool/lz4/lib/Makefile b/util/cbfstool/lz4/lib/Makefile index 12a741d..ed59577 100644 --- a/util/cbfstool/lz4/lib/Makefile +++ b/util/cbfstool/lz4/lib/Makefile @@ -1,30 +1,9 @@ +## SPDX-License-Identifier: BSD-2-Clause # ################################################################ # LZ4 library - Makefile # Copyright (C) Yann Collet 2011-2015 # All rights reserved. # -# BSD license -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# * 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. -# # You can contact the author at : # - LZ4 source repository : https://github.com/Cyan4973/lz4 # - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile index cb552dd..06ec91c 100644 --- a/util/crossgcc/Makefile +++ b/util/crossgcc/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only # if no architecture is specified, set a default BUILD_PLATFORM ?= i386-elf DEST ?= $(CURDIR)/xgcc diff --git a/util/futility/Makefile b/util/futility/Makefile index 2eaab3e..6901948 100644 --- a/util/futility/Makefile +++ b/util/futility/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only top ?= $(abspath ../..) objutil ?= $(top)/util RM ?= rm diff --git a/util/futility/Makefile.inc b/util/futility/Makefile.inc index 1033fc5..a7bcee5 100644 --- a/util/futility/Makefile.inc +++ b/util/futility/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only additional-dirs += $(objutil)/futility
VBOOT_FUTILITY = $(VBOOT_HOST_BUILD)/futility/futility diff --git a/util/fuzz-tests/Makefile b/util/fuzz-tests/Makefile index e97643f..641f0f4 100644 --- a/util/fuzz-tests/Makefile +++ b/util/fuzz-tests/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only all: afl-gcc -g -m32 -I ../../src/lib -o jpeg-test jpeg-test.c ../../src/lib/jpeg.c
diff --git a/util/intelp2m/Makefile b/util/intelp2m/Makefile index 1d9ba70..2731bc7 100644 --- a/util/intelp2m/Makefile +++ b/util/intelp2m/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only # simple makefile for the project
OUTPUT_DIR = generate diff --git a/util/kbc1126/Makefile b/util/kbc1126/Makefile index 4826874..5b62878 100644 --- a/util/kbc1126/Makefile +++ b/util/kbc1126/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only obj = kbc1126_ec_dump kbc1126_ec_insert HOSTCC := $(if $(shell type gcc 2>/dev/null),gcc,cc)
diff --git a/util/lint/Makefile b/util/lint/Makefile index 1a4fec8..29f6683 100644 --- a/util/lint/Makefile +++ b/util/lint/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only sort: sort-spelling.txt
sort-%: % diff --git a/util/marvell/Makefile.inc b/util/marvell/Makefile.inc index 08dbf72..d58c9d8 100644 --- a/util/marvell/Makefile.inc +++ b/util/marvell/Makefile.inc @@ -1 +1,2 @@ +## SPDX-License-Identifier: GPL-2.0-only subdirs-$(CONFIG_SOC_MARVELL_ARMADA38X) += doimage_mv diff --git a/util/marvell/doimage_mv/Makefile.inc b/util/marvell/doimage_mv/Makefile.inc index 83665df..4020166 100644 --- a/util/marvell/doimage_mv/Makefile.inc +++ b/util/marvell/doimage_mv/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only DOIMAGE_FOLDER = marvell/doimage_mv DOIMAGE_BINARY = doimage
diff --git a/util/msrtool/Makefile.in b/util/msrtool/Makefile.in index 7c5966c..326dda3 100644 --- a/util/msrtool/Makefile.in +++ b/util/msrtool/Makefile.in @@ -1,15 +1,6 @@ +## SPDX-License-Identifier: GPL-2.0-only # Makefile for msrtool # -# -# 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. -#
PROGRAM = msrtool
diff --git a/util/nvidia/Makefile.inc b/util/nvidia/Makefile.inc index 1894fad..04199d0 100644 --- a/util/nvidia/Makefile.inc +++ b/util/nvidia/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only # copied from cbootimage/src/Makefile.am CBOOTIMAGE_RAW_SRCS:= \ cbootimage.c \ diff --git a/util/post/Makefile b/util/post/Makefile index 0941cde..e292a73 100644 --- a/util/post/Makefile +++ b/util/post/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only all: $(CC) post.c -o post clean: diff --git a/util/sconfig/Makefile.inc b/util/sconfig/Makefile.inc index b821f06..c3da29d 100644 --- a/util/sconfig/Makefile.inc +++ b/util/sconfig/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only sconfigobj := sconfigobj += lex.yy.o sconfigobj += sconfig.tab.o diff --git a/util/spd_tools/Makefile b/util/spd_tools/Makefile index 3aad91c..5b23c32 100644 --- a/util/spd_tools/Makefile +++ b/util/spd_tools/Makefile @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only SPD_GEN = bin/spd_gen PART_ID_GEN = bin/part_id_gen
diff --git a/util/supermicro/Makefile.inc b/util/supermicro/Makefile.inc index 316cb48..7d295a0 100644 --- a/util/supermicro/Makefile.inc +++ b/util/supermicro/Makefile.inc @@ -1,3 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only TOOLCPPFLAGS += -include $(top)/src/commonlib/bsd/include/commonlib/bsd/compiler.h
SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo