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>
This commit is contained in:
Martin Roth
2022-10-28 22:38:44 -06:00
committed by Felix Held
parent 74a4dca481
commit adaab4a97e
24 changed files with 24 additions and 54 deletions

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
PROGRAM = archive PROGRAM = archive
HOSTCC ?= gcc HOSTCC ?= gcc
WERROR=-Werror WERROR=-Werror

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
CC = gcc CC = gcc
YACC = bison YACC = bison
LEX = flex LEX = flex

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
bincfg_obj := bincfg.lex.o bincfg.tab.o bincfg_obj := bincfg.lex.o bincfg.tab.o
BINCFG_FLAGS += -I$(top)/util/bincfg -I$(objutil)/bincfg BINCFG_FLAGS += -I$(top)/util/bincfg -I$(objutil)/bincfg

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
CC:=gcc CC:=gcc
OBJ:=bucts.o OBJ:=bucts.o
TARGET=bucts TARGET=bucts

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
compressionobj := compressionobj :=
compressionobj += compress.o compressionobj += compress.o
# LZ4 # LZ4

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
bpdt_formats_obj += bpdt_1_6.o bpdt_formats_obj += bpdt_1_6.o
bpdt_formats_obj += bpdt_1_7.o bpdt_formats_obj += bpdt_1_7.o

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
fpt_formats_obj += fpt_hdr_20.o fpt_formats_obj += fpt_hdr_20.o
fpt_formats_obj += fpt_hdr_21.o fpt_formats_obj += fpt_hdr_21.o

View File

@ -1,30 +1,9 @@
## SPDX-License-Identifier: BSD-2-Clause
# ################################################################ # ################################################################
# LZ4 - Makefile # LZ4 - Makefile
# Copyright (C) Yann Collet 2011-2015 # Copyright (C) Yann Collet 2011-2015
# All rights reserved. # 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 : # You can contact the author at :
# - LZ4 source repository : https://github.com/Cyan4973/lz4 # - LZ4 source repository : https://github.com/Cyan4973/lz4
# - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c # - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c

View File

@ -1,30 +1,9 @@
## SPDX-License-Identifier: BSD-2-Clause
# ################################################################ # ################################################################
# LZ4 library - Makefile # LZ4 library - Makefile
# Copyright (C) Yann Collet 2011-2015 # Copyright (C) Yann Collet 2011-2015
# All rights reserved. # 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 : # You can contact the author at :
# - LZ4 source repository : https://github.com/Cyan4973/lz4 # - LZ4 source repository : https://github.com/Cyan4973/lz4
# - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c # - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
# if no architecture is specified, set a default # if no architecture is specified, set a default
BUILD_PLATFORM ?= i386-elf BUILD_PLATFORM ?= i386-elf
DEST ?= $(CURDIR)/xgcc DEST ?= $(CURDIR)/xgcc

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
top ?= $(abspath ../..) top ?= $(abspath ../..)
objutil ?= $(top)/util objutil ?= $(top)/util
RM ?= rm RM ?= rm

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
additional-dirs += $(objutil)/futility additional-dirs += $(objutil)/futility
VBOOT_FUTILITY = $(VBOOT_HOST_BUILD)/futility/futility VBOOT_FUTILITY = $(VBOOT_HOST_BUILD)/futility/futility

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
all: all:
afl-gcc -g -m32 -I ../../src/lib -o jpeg-test jpeg-test.c ../../src/lib/jpeg.c afl-gcc -g -m32 -I ../../src/lib -o jpeg-test jpeg-test.c ../../src/lib/jpeg.c

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
# simple makefile for the project # simple makefile for the project
OUTPUT_DIR = generate OUTPUT_DIR = generate

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
obj = kbc1126_ec_dump kbc1126_ec_insert obj = kbc1126_ec_dump kbc1126_ec_insert
HOSTCC := $(if $(shell type gcc 2>/dev/null),gcc,cc) HOSTCC := $(if $(shell type gcc 2>/dev/null),gcc,cc)

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
sort: sort-spelling.txt sort: sort-spelling.txt
sort-%: % sort-%: %

View File

@ -1 +1,2 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-$(CONFIG_SOC_MARVELL_ARMADA38X) += doimage_mv subdirs-$(CONFIG_SOC_MARVELL_ARMADA38X) += doimage_mv

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
DOIMAGE_FOLDER = marvell/doimage_mv DOIMAGE_FOLDER = marvell/doimage_mv
DOIMAGE_BINARY = doimage DOIMAGE_BINARY = doimage

View File

@ -1,15 +1,6 @@
## SPDX-License-Identifier: GPL-2.0-only
# Makefile for msrtool # 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 PROGRAM = msrtool

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
# copied from cbootimage/src/Makefile.am # copied from cbootimage/src/Makefile.am
CBOOTIMAGE_RAW_SRCS:= \ CBOOTIMAGE_RAW_SRCS:= \
cbootimage.c \ cbootimage.c \

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
all: all:
$(CC) post.c -o post $(CC) post.c -o post
clean: clean:

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
sconfigobj := sconfigobj :=
sconfigobj += lex.yy.o sconfigobj += lex.yy.o
sconfigobj += sconfig.tab.o sconfigobj += sconfig.tab.o

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
SPD_GEN = bin/spd_gen SPD_GEN = bin/spd_gen
PART_ID_GEN = bin/part_id_gen PART_ID_GEN = bin/part_id_gen

View File

@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-only
TOOLCPPFLAGS += -include $(top)/src/commonlib/bsd/include/commonlib/bsd/compiler.h TOOLCPPFLAGS += -include $(top)/src/commonlib/bsd/include/commonlib/bsd/compiler.h
SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo