summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/archive/Makefile1
-rw-r--r--util/bincfg/Makefile1
-rw-r--r--util/bincfg/Makefile.inc1
-rw-r--r--util/bucts/Makefile1
-rw-r--r--util/cbfstool/Makefile.inc1
-rw-r--r--util/cbfstool/bpdt_formats/Makefile.inc1
-rw-r--r--util/cbfstool/fpt_formats/Makefile.inc1
-rw-r--r--util/cbfstool/lz4/Makefile23
-rw-r--r--util/cbfstool/lz4/lib/Makefile23
-rw-r--r--util/crossgcc/Makefile1
-rw-r--r--util/futility/Makefile1
-rw-r--r--util/futility/Makefile.inc1
-rw-r--r--util/fuzz-tests/Makefile1
-rw-r--r--util/intelp2m/Makefile1
-rw-r--r--util/kbc1126/Makefile1
-rw-r--r--util/lint/Makefile1
-rw-r--r--util/marvell/Makefile.inc1
-rw-r--r--util/marvell/doimage_mv/Makefile.inc1
-rw-r--r--util/msrtool/Makefile.in11
-rw-r--r--util/nvidia/Makefile.inc1
-rw-r--r--util/post/Makefile1
-rw-r--r--util/sconfig/Makefile.inc1
-rw-r--r--util/spd_tools/Makefile1
-rw-r--r--util/supermicro/Makefile.inc1
24 files changed, 24 insertions, 54 deletions
diff --git a/util/archive/Makefile b/util/archive/Makefile
index d4b58f765f..2de6a6294a 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 ca375a5c13..dbcbc7711c 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 81c6af63b2..0f5f442fd1 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 98f731449e..d32258d1ec 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 a60cee1e27..8428f8a328 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 c676489e9f..a3be46be5d 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 865eaed5cd..11cb30d274 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 931da35d95..4506267ebf 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 12a741d147..ed5957704f 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 cb552dd084..06ec91c493 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 2eaab3eaa5..6901948fa0 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 1033fc5ace..a7bcee50d3 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 e97643f333..641f0f418c 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 1d9ba70ce3..2731bc7a46 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 48268747d6..5b62878e5c 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 1a4fec8c90..29f6683867 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 08dbf72c77..d58c9d83ba 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 83665df010..4020166261 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 7c5966c532..326dda309f 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 1894fadc2b..04199d062e 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 0941cde0a1..e292a73429 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 b821f06f11..c3da29d199 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 3aad91c976..5b23c32ea8 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 316cb48864..7d295a0205 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