From 7333a116b3812bb67b8fbab0d5cd95d6cd60fe9f Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 8 May 2020 20:48:04 +0200 Subject: util/: Replace GPLv2 boiler plate with SPDX header Used commands: perl -i -p0e 's|\/\*[\s*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-only */|' $(cat filelist) perl -i -p0e 's|This[\s*]*program[\s*]*is[\s*]*free[\s*]*software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*either[\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License,[\s*]*or[\s*]*.at[\s*]*your[\s*]*option.*[\s*]*any[\s*]*later[\s*]*version.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-or-later */|' $(cat filelist) perl -i -p0e 's|\/\*[\s*]*.*This[\s*#]*program[\s*#]*is[\s*#]*free[\s*#]*software[;:,][\s*#]*you[\s*#]*can[\s*#]*redistribute[\s*#]*it[\s*#]*and/or[\s*#]*modify[\s*#]*it[\s*#]*under[\s*#]*the[\s*#]*terms[\s*#]*of[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*as[\s*#]*published[\s*#]*by[\s*#]*the[\s*#]*Free[\s*#]*Software[\s*#]*Foundation[;:,][\s*#]*either[\s*#]*version[\s*#]*3[\s*#]*of[\s*#]*the[\s*#]*License[;:,][\s*#]*or[\s*#]*.at[\s*#]*your[\s*#]*option.*[\s*#]*any[\s*#]*later[\s*#]*version.[\s*#]*This[\s*#]*program[\s*#]*is[\s*#]*distributed[\s*#]*in[\s*#]*the[\s*#]*hope[\s*#]*that[\s*#]*it[\s*#]*will[\s*#]*be[\s*#]*useful[;:,][\s*#]*but[\s*#]*WITHOUT[\s*#]*ANY[\s*#]*WARRANTY[;:,][\s*#]*without[\s*#]*even[\s*#]*the[\s*#]*implied[\s*#]*warranty[\s*#]*of[\s*#]*MERCHANTABILITY[\s*#]*or[\s*#]*FITNESS[\s*#]*FOR[\s*#]*A[\s*#]*PARTICULAR[\s*#]*PURPOSE.[\s*#]*See[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*for[\s*#]*more[\s*#]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-3.0-or-later */|' $(cat filelist) perl -i -p0e 's|(\#\#*)[\w]*.*is free software[:;][\#\s]*you[\#\s]*can[\#\s]*redistribute[\#\s]*it[\#\s]*and\/or[\#\s]*modify[\#\s]*it[\s\#]*under[\s \#]*the[\s\#]*terms[\s\#]*of[\s\#]*the[\s\#]*GNU[\s\#]*General[\s\#]*Public[\s\#]*License[\s\#]*as[\s\#]*published[\s\#]*by[\s\#]*the[\s\#]*Free[\s\#]*Software[\s\#]*Foundation[;,][\s\#]*version[\s\#]*2[\s\#]*of[\s\#]*the[\s\#]*License.*[\s\#]*This[\s\#]*program[\s\#]*is[\s\#]*distributed[\s\#]*in[\s\#]*the[\s\#]*hope[\s\#]*that[\s\#]*it[\s\#]*will[\#\s]*be[\#\s]*useful,[\#\s]*but[\#\s]*WITHOUT[\#\s]*ANY[\#\s]*WARRANTY;[\#\s]*without[\#\s]*even[\#\s]*the[\#\s]*implied[\#\s]*warranty[\#\s]*of[\#\s]*MERCHANTABILITY[\#\s]*or[\#\s]*FITNESS[\#\s]*FOR[\#\s]*A[\#\s]*PARTICULAR[\#\s]*PURPOSE.[\#\s]*See[\#\s]*the[\#\s]*GNU[\#\s]*General[\#\s]*Public[\#\s]*License[\#\s]*for[\#\s]*more[\#\s]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist) perl -i -p0e 's|(\#\#*)[\w*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist) Change-Id: I1008a63b804f355a916221ac994701d7584f60ff Signed-off-by: Patrick Georgi Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/41177 Tested-by: build bot (Jenkins) --- util/acpi/acpidump-all | 10 +--------- util/amdfwtool/amdfwtool.c | 11 +---------- util/archive/archive.c | 11 +---------- util/archive/archive.h | 11 +---------- util/bincfg/bincfg.h | 12 +----------- util/bincfg/bincfg.l | 12 +----------- util/bincfg/bincfg.y | 12 +----------- util/bucts/bucts.c | 11 +---------- util/cbfstool/amdcompress.c | 11 +---------- util/cbfstool/cbfs-mkpayload.c | 11 +---------- util/cbfstool/cbfs-mkstage.c | 11 +---------- util/cbfstool/cbfs-payload-linux.c | 11 +---------- util/cbfstool/cbfs.h | 11 +---------- util/cbfstool/cbfs_image.c | 11 +---------- util/cbfstool/cbfs_image.h | 11 +---------- util/cbfstool/cbfs_sections.c | 11 +---------- util/cbfstool/cbfs_sections.h | 11 +---------- util/cbfstool/cbfscomptool.c | 11 +---------- util/cbfstool/cbfstool.c | 11 +---------- util/cbfstool/coff.h | 11 +---------- util/cbfstool/common.c | 11 +---------- util/cbfstool/common.h | 11 +---------- util/cbfstool/compress.c | 11 +---------- util/cbfstool/console/console.h | 11 +---------- util/cbfstool/elfheaders.c | 11 +---------- util/cbfstool/elfparsing.h | 11 +---------- util/cbfstool/fit.c | 11 +---------- util/cbfstool/fit.h | 11 +---------- util/cbfstool/flashmap_tests.c | 11 +---------- util/cbfstool/fmap_from_fmd.c | 11 +---------- util/cbfstool/fmap_from_fmd.h | 11 +---------- util/cbfstool/fmaptool.c | 11 +---------- util/cbfstool/fmd.c | 11 +---------- util/cbfstool/fmd.h | 11 +---------- util/cbfstool/fmd_parser.y | 11 +---------- util/cbfstool/fmd_scanner.l | 11 +---------- util/cbfstool/fv.h | 11 +---------- util/cbfstool/ifittool.c | 11 +---------- util/cbfstool/ifwitool.c | 11 +---------- util/cbfstool/linux.h | 11 +---------- util/cbfstool/linux_trampoline.S | 11 +---------- util/cbfstool/linux_trampoline.h | 11 +---------- util/cbfstool/option.h | 11 +---------- util/cbfstool/partitioned_file.c | 11 +---------- util/cbfstool/partitioned_file.h | 11 +---------- util/cbfstool/rmodtool.c | 11 +---------- util/cbfstool/rmodule.c | 11 +---------- util/cbfstool/rmodule.h | 11 +---------- util/cbfstool/xdr.c | 11 +---------- util/cbmem/Makefile | 10 +--------- util/cbmem/cbmem.c | 11 +---------- util/chromeos/crosfirmware.sh | 10 +--------- util/chromeos/extract_blobs.sh | 10 +--------- util/chromeos/gen_test_hwid.sh | 9 +-------- util/crossgcc/Makefile.inc | 10 +--------- util/crossgcc/buildgcc | 10 +--------- util/docker/Makefile | 11 ++--------- util/docker/coreboot.org-status/kconfig2html | 10 +--------- util/docker/coreboot.org-status/run.sh | 10 ++-------- util/dtd_parser/dtd_parser.py | 10 +--------- util/ectool/Makefile | 10 +--------- util/find_usbdebug/find_usbdebug.sh | 9 +-------- util/fuzz-tests/jpeg-test.c | 11 +---------- util/genbuild_h/genbuild_h.sh | 10 +--------- util/gitconfig/gitconfig.sh | 10 +--------- util/gitconfig/pre-commit | 10 +--------- util/ifdtool/Makefile | 10 +--------- util/ifdtool/ifdtool.c | 11 +---------- util/ifdtool/ifdtool.h | 11 +---------- util/intelmetool/intelmetool.c | 12 +----------- util/intelmetool/intelmetool.h | 11 +---------- util/inteltool/amb.c | 11 +---------- util/inteltool/cpu.c | 11 +---------- util/inteltool/gfx.c | 11 +---------- util/inteltool/gpio.c | 11 +---------- util/inteltool/gpio_groups.c | 11 +---------- util/inteltool/inteltool.c | 11 +---------- util/inteltool/inteltool.h | 11 +---------- util/inteltool/lpc.c | 11 +---------- util/inteltool/memory.c | 11 +---------- util/inteltool/pcie.c | 11 +---------- util/inteltool/pcr.c | 11 +---------- util/inteltool/pcr.h | 11 +---------- util/inteltool/powermgt.c | 11 +---------- util/inteltool/rootcmplx.c | 11 +---------- util/intelvbttool/Makefile | 10 +--------- util/intelvbttool/intelvbttool.c | 11 +---------- util/kbc1126/kbc1126_ec_dump.c | 11 +---------- util/kbc1126/kbc1126_ec_insert.c | 11 +---------- util/kconfig/toada.c | 12 +----------- util/lint/checkpatch_json.py | 10 +--------- util/lint/kconfig_lint | 11 ++--------- util/lint/lint | 11 ++--------- util/lint/lint-000-license-headers | 12 ++---------- util/lint/lint-001-no-global-config-in-romstage | 11 ++--------- util/lint/lint-007-checkpatch | 11 ++--------- util/lint/lint-008-kconfig | 11 ++--------- util/lint/lint-014-qualified-types | 11 ++--------- util/lint/lint-extended-007-checkpatch | 12 ++---------- util/lint/lint-extended-015-final-newlines | 11 ++--------- util/lint/lint-stable-003-whitespace | 11 ++--------- util/lint/lint-stable-004-style-labels | 11 ++--------- util/lint/lint-stable-008-kconfig | 11 ++--------- util/lint/lint-stable-009-old-licenses | 12 ++---------- util/lint/lint-stable-010-asm-syntax | 11 ++--------- util/lint/lint-stable-016-non-ascii | 11 ++--------- util/lint/lint-stable-017-configs | 11 ++--------- util/lint/lint-stable-018-symlinks | 11 ++--------- util/lint/lint-stable-019-header-files | 11 ++--------- util/lint/lint-stable-021-coreboot-lowercase | 11 ++--------- util/lint/lint-stable-022-clang-format | 12 ++---------- util/lint/lint-stable-023-filenames | 11 ++--------- util/mainboard/google/hatch/template/Makefile.inc | 10 +--------- util/mainboard/google/volteer/template/Makefile.inc | 10 +--------- util/mainboard/google/volteer/template/include/variant/ec.h | 13 +------------ util/mainboard/google/zork/template/Makefile.inc | 10 +--------- util/mma/mma_get_result.sh | 10 +--------- util/mma/mma_setup_test.sh | 10 +--------- util/mtkheader/gen-bl-img.py | 11 +---------- util/nvramtool/Makefile | 10 +--------- util/nvramtool/Makefile.inc | 10 +--------- util/nvramtool/cbfs.c | 11 +---------- util/pmh7tool/Makefile | 10 +--------- util/pmh7tool/pmh7tool.c | 11 +---------- util/pmh7tool/pmh7tool.h | 11 +---------- util/post/post.c | 12 +----------- util/release/genrelnotes | 10 +--------- util/release/gerrit_stats.pl | 10 +--------- util/riscv/sifive-gpt.py | 9 +-------- util/sconfig/main.c | 11 +---------- util/sconfig/sconfig.h | 11 +---------- util/sconfig/sconfig.l | 11 +---------- util/sconfig/sconfig.tab.c_shipped | 11 +---------- util/sconfig/sconfig.y | 11 +---------- util/scripts/cross-repo-cherrypick | 10 +--------- util/scripts/decode_spd.sh | 12 ++---------- util/scripts/dts-to-fmd.sh | 10 ++-------- util/scripts/gerrit-rebase | 9 +-------- util/scripts/maintainers.go | 11 +---------- util/scripts/update_submodules | 10 +--------- util/showdevicetree/showdt.c | 11 +---------- util/superiotool/ali.c | 12 +----------- util/superiotool/amd.c | 12 +----------- util/superiotool/aspeed.c | 12 +----------- util/superiotool/exar.c | 12 +----------- util/superiotool/fintek.c | 12 +----------- util/superiotool/infineon.c | 12 +----------- util/superiotool/ite.c | 12 +----------- util/superiotool/nsc.c | 12 +----------- util/superiotool/nuvoton.c | 12 +----------- util/superiotool/pci.c | 12 +----------- util/superiotool/serverengines.c | 12 +----------- util/superiotool/smsc.c | 12 +----------- util/superiotool/superiotool.c | 12 +----------- util/superiotool/superiotool.h | 12 +----------- util/superiotool/via.c | 12 +----------- util/superiotool/winbond.c | 12 +----------- util/supermicro/smcbiosinfo/smcbiosinfo.c | 11 +---------- util/testing/Makefile.inc | 10 +--------- util/uio_usbdebug/console/printk.c | 11 +---------- util/uio_usbdebug/drivers/usb/pci_ehci.c | 11 +---------- util/uio_usbdebug/include/device/device.h | 11 +---------- util/uio_usbdebug/uio_usbdebug.c | 11 +---------- util/uio_usbdebug/uio_usbdebug_intel.c | 11 +---------- util/vgabios/Makefile | 11 +---------- util/vgabios/include/arch/byteorder.h | 11 +---------- util/vgabios/include/config.h | 11 +---------- util/vgabios/include/console/console.h | 11 +---------- util/vgabios/include/stdtypes.h | 11 +---------- util/vgabios/pci-userspace.c | 11 +---------- util/vgabios/pci-userspace.h | 11 +---------- util/vgabios/testbios.c | 11 +---------- util/vgabios/testbios.h | 11 +---------- util/x86/x86_page_tables.go | 11 +---------- util/xcompile/xcompile | 10 +--------- 175 files changed, 200 insertions(+), 1715 deletions(-) diff --git a/util/acpi/acpidump-all b/util/acpi/acpidump-all index 29bf254ff7..c42ee4a616 100755 --- a/util/acpi/acpidump-all +++ b/util/acpi/acpidump-all @@ -1,14 +1,6 @@ #!/usr/bin/env bash # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only rm -rf out mkdir out diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index bb4266d486..e344852815 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * ROMSIG At ROMBASE + 0x20000: diff --git a/util/archive/archive.c b/util/archive/archive.c index 384a98025f..82a2f39062 100644 --- a/util/archive/archive.c +++ b/util/archive/archive.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "archive.h" #include diff --git a/util/archive/archive.h b/util/archive/archive.h index c7fe53f659..c726bb7a5b 100644 --- a/util/archive/archive.h +++ b/util/archive/archive.h @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ARCHIVE_H #define __ARCHIVE_H diff --git a/util/bincfg/bincfg.h b/util/bincfg/bincfg.h index 1f2d270bc8..c3eec105df 100644 --- a/util/bincfg/bincfg.h +++ b/util/bincfg/bincfg.h @@ -1,15 +1,5 @@ /* bincfg - Compiler/Decompiler for data blobs with specs */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-3.0-or-later */ #ifndef __BINCFG_H #define __BINCFG_H diff --git a/util/bincfg/bincfg.l b/util/bincfg/bincfg.l index 5f9a2c93d0..ca93547648 100644 --- a/util/bincfg/bincfg.l +++ b/util/bincfg/bincfg.l @@ -1,15 +1,5 @@ /* bincfg - Compiler/Decompiler for data blobs with specs */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-3.0-or-later */ %{ #include diff --git a/util/bincfg/bincfg.y b/util/bincfg/bincfg.y index 5c65d75cfe..0aaf13af28 100644 --- a/util/bincfg/bincfg.y +++ b/util/bincfg/bincfg.y @@ -1,15 +1,5 @@ /* bincfg - Compiler/Decompiler for data blobs with specs */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-3.0-or-later */ %{ #include diff --git a/util/bucts/bucts.c b/util/bucts/bucts.c index f932e5b4ab..a89456c3e6 100644 --- a/util/bucts/bucts.c +++ b/util/bucts/bucts.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/amdcompress.c b/util/cbfstool/amdcompress.c index a42cfc2504..b4e10a2c0e 100644 --- a/util/cbfstool/amdcompress.c +++ b/util/cbfstool/amdcompress.c @@ -1,14 +1,5 @@ /* AMD Family 17h and later BIOS compressor */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/cbfs-mkpayload.c b/util/cbfstool/cbfs-mkpayload.c index c06319088c..86aa8e54a3 100644 --- a/util/cbfstool/cbfs-mkpayload.c +++ b/util/cbfstool/cbfs-mkpayload.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/cbfs-mkstage.c b/util/cbfstool/cbfs-mkstage.c index 3f6b0268c5..bfdffbfeea 100644 --- a/util/cbfstool/cbfs-mkstage.c +++ b/util/cbfstool/cbfs-mkstage.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/cbfs-payload-linux.c b/util/cbfstool/cbfs-payload-linux.c index 2b5a4b9e70..706f3a0253 100644 --- a/util/cbfstool/cbfs-payload-linux.c +++ b/util/cbfstool/cbfs-payload-linux.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index 11e80c43d7..421f0bc703 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __CBFS_H #define __CBFS_H diff --git a/util/cbfstool/cbfs_image.c b/util/cbfstool/cbfs_image.c index a0b2a82d8e..a042f0dac8 100644 --- a/util/cbfstool/cbfs_image.c +++ b/util/cbfstool/cbfs_image.c @@ -1,14 +1,5 @@ /* CBFS Image Manipulation */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/cbfs_image.h b/util/cbfstool/cbfs_image.h index fa460f1ba1..c57a153d99 100644 --- a/util/cbfstool/cbfs_image.h +++ b/util/cbfstool/cbfs_image.h @@ -1,14 +1,5 @@ /* CBFS Image Manipulation */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __CBFS_IMAGE_H #define __CBFS_IMAGE_H diff --git a/util/cbfstool/cbfs_sections.c b/util/cbfstool/cbfs_sections.c index c5f016f08a..a8560dc560 100644 --- a/util/cbfstool/cbfs_sections.c +++ b/util/cbfstool/cbfs_sections.c @@ -1,14 +1,5 @@ /* track which sections of the image will contain CBFSes */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "cbfs_sections.h" #include "common.h" diff --git a/util/cbfstool/cbfs_sections.h b/util/cbfstool/cbfs_sections.h index c968a68d8b..d7b0173c0b 100644 --- a/util/cbfstool/cbfs_sections.h +++ b/util/cbfstool/cbfs_sections.h @@ -1,14 +1,5 @@ /* fmap_sections.h, track which sections of the image will contain CBFSes */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef CBFS_SECTIONS_H_ #define CBFS_SECTIONS_H_ diff --git a/util/cbfstool/cbfscomptool.c b/util/cbfstool/cbfscomptool.c index b50d4efafc..3ea87ad449 100644 --- a/util/cbfstool/cbfscomptool.c +++ b/util/cbfstool/cbfscomptool.c @@ -1,14 +1,5 @@ /* cbfs-compression-tool, CLI utility for dealing with CBFS compressed data */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 1421c8ec3e..4ec8c904e5 100644 --- a/util/cbfstool/cbfstool.c +++ b/util/cbfstool/cbfstool.c @@ -1,14 +1,5 @@ /* cbfstool, CLI utility for CBFS file manipulation */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/coff.h b/util/cbfstool/coff.h index da0ea17379..1035e84ece 100644 --- a/util/cbfstool/coff.h +++ b/util/cbfstool/coff.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #define DOS_MAGIC 0x5a4d typedef struct { diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index 2de67dcf7b..e2ed38ffc4 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -1,14 +1,5 @@ /* common utility functions for cbfstool */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index 94c1a98028..7dbc1f575d 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __CBFSTOOL_COMMON_H #define __CBFSTOOL_COMMON_H diff --git a/util/cbfstool/compress.c b/util/cbfstool/compress.c index b92da0eac3..f926db510c 100644 --- a/util/cbfstool/compress.c +++ b/util/cbfstool/compress.c @@ -1,14 +1,5 @@ /* compression handling for cbfstool */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/console/console.h b/util/cbfstool/console/console.h index 9c393f13d5..e2cf277a20 100644 --- a/util/cbfstool/console/console.h +++ b/util/cbfstool/console/console.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _CBFSTOOL_CONSOLE_H_ #define _CBFSTOOL_CONSOLE_H_ diff --git a/util/cbfstool/elfheaders.c b/util/cbfstool/elfheaders.c index 216e2778ee..3a53735382 100644 --- a/util/cbfstool/elfheaders.c +++ b/util/cbfstool/elfheaders.c @@ -1,14 +1,5 @@ /* elf header parsing */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/elfparsing.h b/util/cbfstool/elfparsing.h index 1cc6eb2c33..d207f45fc4 100644 --- a/util/cbfstool/elfparsing.h +++ b/util/cbfstool/elfparsing.h @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef ELFPARSING_H #define ELFPARSING_H diff --git a/util/cbfstool/fit.c b/util/cbfstool/fit.c index f35872022f..44573cadee 100644 --- a/util/cbfstool/fit.c +++ b/util/cbfstool/fit.c @@ -1,14 +1,5 @@ /* Firmware Interface Table support */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/fit.h b/util/cbfstool/fit.h index feec0cf28a..d900cf51d4 100644 --- a/util/cbfstool/fit.h +++ b/util/cbfstool/fit.h @@ -1,14 +1,5 @@ /* Firmware Interface Table support */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __CBFSTOOL_FIT_H #define __CBFSTOOL_FIT_H diff --git a/util/cbfstool/flashmap_tests.c b/util/cbfstool/flashmap_tests.c index d6483dbaf4..0ed3fc936e 100644 --- a/util/cbfstool/flashmap_tests.c +++ b/util/cbfstool/flashmap_tests.c @@ -1,14 +1,5 @@ /* fmap_from_fmd.c, simple launcher for fmap library unit test suite */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "flashmap/fmap.h" diff --git a/util/cbfstool/fmap_from_fmd.c b/util/cbfstool/fmap_from_fmd.c index 1773050125..051914d94b 100644 --- a/util/cbfstool/fmap_from_fmd.c +++ b/util/cbfstool/fmap_from_fmd.c @@ -1,14 +1,5 @@ /* fmap_from_fmd.c, tool to distill flashmap descriptors into raw FMAP sections */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "fmap_from_fmd.h" diff --git a/util/cbfstool/fmap_from_fmd.h b/util/cbfstool/fmap_from_fmd.h index 8464aa5497..cb727e76b0 100644 --- a/util/cbfstool/fmap_from_fmd.h +++ b/util/cbfstool/fmap_from_fmd.h @@ -1,14 +1,5 @@ /* fmap_from_fmd.h, tool to distill flashmap descriptors into raw FMAP sections */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef FMAP_FROM_FMD_H_ #define FMAP_FROM_FMD_H_ diff --git a/util/cbfstool/fmaptool.c b/util/cbfstool/fmaptool.c index 3b10f79e5b..aace5aea33 100644 --- a/util/cbfstool/fmaptool.c +++ b/util/cbfstool/fmaptool.c @@ -1,14 +1,5 @@ /* fmaptool, CLI utility for converting plaintext fmd files into fmap blobs */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "common.h" #include "cbfs_sections.h" diff --git a/util/cbfstool/fmd.c b/util/cbfstool/fmd.c index 5d990cad7f..f6997452a8 100644 --- a/util/cbfstool/fmd.c +++ b/util/cbfstool/fmd.c @@ -1,14 +1,5 @@ /* fmd.c, parser frontend and utility functions for flashmap descriptor language */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "fmd.h" diff --git a/util/cbfstool/fmd.h b/util/cbfstool/fmd.h index 8a9e1518cb..8dfcb3c964 100644 --- a/util/cbfstool/fmd.h +++ b/util/cbfstool/fmd.h @@ -1,14 +1,5 @@ /* parser frontend and utility functions for flashmap descriptor language */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef FMD_H_ #define FMD_H_ diff --git a/util/cbfstool/fmd_parser.y b/util/cbfstool/fmd_parser.y index b10835e895..a29c9d64ac 100644 --- a/util/cbfstool/fmd_parser.y +++ b/util/cbfstool/fmd_parser.y @@ -1,14 +1,5 @@ /* parser generator for flashmap descriptor language */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ %{ #include "fmd_scanner.h" diff --git a/util/cbfstool/fmd_scanner.l b/util/cbfstool/fmd_scanner.l index 525fe6f743..9d05c80d26 100644 --- a/util/cbfstool/fmd_scanner.l +++ b/util/cbfstool/fmd_scanner.l @@ -1,14 +1,5 @@ /* scanner generator for flashmap descriptor language */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ %{ #include "fmd_parser.h" diff --git a/util/cbfstool/fv.h b/util/cbfstool/fv.h index 8a6031d9c8..bf4284e5c7 100644 --- a/util/cbfstool/fv.h +++ b/util/cbfstool/fv.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #define FV_SIGNATURE 0x4856465f typedef struct { diff --git a/util/cbfstool/ifittool.c b/util/cbfstool/ifittool.c index 3a9c37e097..7e99d4fd43 100644 --- a/util/cbfstool/ifittool.c +++ b/util/cbfstool/ifittool.c @@ -1,14 +1,5 @@ /* cbfstool, CLI utility for creating rmodules */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/ifwitool.c b/util/cbfstool/ifwitool.c index 591f588c59..8eda4c77b1 100644 --- a/util/cbfstool/ifwitool.c +++ b/util/cbfstool/ifwitool.c @@ -1,14 +1,5 @@ /* ifwitool, CLI utility for IFWI manipulation */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/linux.h b/util/cbfstool/linux.h index c8281f752c..fcf77a5e55 100644 --- a/util/cbfstool/linux.h +++ b/util/cbfstool/linux.h @@ -1,14 +1,5 @@ /* This file is part of coreboot */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * Linux/i386 loader diff --git a/util/cbfstool/linux_trampoline.S b/util/cbfstool/linux_trampoline.S index fd21475bbe..f1619cfb17 100644 --- a/util/cbfstool/linux_trampoline.S +++ b/util/cbfstool/linux_trampoline.S @@ -1,14 +1,5 @@ /* linux_trampoline */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ /* NOTE: THIS CODE MUST REMAIN POSITION INDEPENDENT * IT SHOULDN'T USE THE STACK diff --git a/util/cbfstool/linux_trampoline.h b/util/cbfstool/linux_trampoline.h index dcdcf081a4..af77d7cccd 100644 --- a/util/cbfstool/linux_trampoline.h +++ b/util/cbfstool/linux_trampoline.h @@ -1,14 +1,5 @@ /* This file is part of coreboot */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * This file contains #define constants used by both the Linux diff --git a/util/cbfstool/option.h b/util/cbfstool/option.h index 134238374c..c49bf57668 100644 --- a/util/cbfstool/option.h +++ b/util/cbfstool/option.h @@ -1,14 +1,5 @@ /* unsigned OPTION type */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef OPTION_H_ #define OPTION_H_ diff --git a/util/cbfstool/partitioned_file.c b/util/cbfstool/partitioned_file.c index 917341c1f9..b6d4f1b808 100644 --- a/util/cbfstool/partitioned_file.c +++ b/util/cbfstool/partitioned_file.c @@ -1,14 +1,5 @@ /* read and write binary file "partitions" described by FMAP */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "partitioned_file.h" diff --git a/util/cbfstool/partitioned_file.h b/util/cbfstool/partitioned_file.h index 75d51e062f..24c267ed18 100644 --- a/util/cbfstool/partitioned_file.h +++ b/util/cbfstool/partitioned_file.h @@ -1,14 +1,5 @@ /* read and write binary file "partitions" described by FMAP */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef PARITITONED_FILE_H_ #define PARITITONED_FILE_H_ diff --git a/util/cbfstool/rmodtool.c b/util/cbfstool/rmodtool.c index 90af3af545..c4256e86c8 100644 --- a/util/cbfstool/rmodtool.c +++ b/util/cbfstool/rmodtool.c @@ -1,14 +1,5 @@ /* CLI utility for creating rmodules */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/rmodule.c b/util/cbfstool/rmodule.c index 800a85b9d8..429bbf37fb 100644 --- a/util/cbfstool/rmodule.c +++ b/util/cbfstool/rmodule.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbfstool/rmodule.h b/util/cbfstool/rmodule.h index 7b29194295..a62562b98f 100644 --- a/util/cbfstool/rmodule.h +++ b/util/cbfstool/rmodule.h @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef TOOL_RMODULE_H #define TOOL_RMODULE_H diff --git a/util/cbfstool/xdr.c b/util/cbfstool/xdr.c index d7bcb32c17..6a83beef78 100644 --- a/util/cbfstool/xdr.c +++ b/util/cbfstool/xdr.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/cbmem/Makefile b/util/cbmem/Makefile index 5cc55a3a60..f0f474ef65 100644 --- a/util/cbmem/Makefile +++ b/util/cbmem/Makefile @@ -1,14 +1,6 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only PROGRAM = cbmem ROOT = ../../src diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index 54642da99c..f49358560d 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh index 0dcb449cab..40cef3a383 100755 --- a/util/chromeos/crosfirmware.sh +++ b/util/chromeos/crosfirmware.sh @@ -1,15 +1,7 @@ #!/usr/bin/env bash # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only # On some systems, `parted` and `debugfs` are located in /sbin. export PATH="$PATH:/sbin" diff --git a/util/chromeos/extract_blobs.sh b/util/chromeos/extract_blobs.sh index ca5c932a11..9aa7baa944 100755 --- a/util/chromeos/extract_blobs.sh +++ b/util/chromeos/extract_blobs.sh @@ -1,15 +1,7 @@ #!/usr/bin/env bash # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only set -x diff --git a/util/chromeos/gen_test_hwid.sh b/util/chromeos/gen_test_hwid.sh index 6e7cdeebb5..21aed18f1a 100755 --- a/util/chromeos/gen_test_hwid.sh +++ b/util/chromeos/gen_test_hwid.sh @@ -1,14 +1,7 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. +# SPDX-License-Identifier: GPL-2.0-only main() { if [ "$#" != 1 ]; then diff --git a/util/crossgcc/Makefile.inc b/util/crossgcc/Makefile.inc index c6e468b887..a078e002be 100644 --- a/util/crossgcc/Makefile.inc +++ b/util/crossgcc/Makefile.inc @@ -1,14 +1,6 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only TOOLCHAIN_ARCHES := i386 x64 arm aarch64 riscv ppc64 nds32le diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 2e354627cb..8770e02813 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -12,15 +12,7 @@ # This is used for all of our color printing. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only cd "$(dirname "$0")" || exit 1 diff --git a/util/docker/Makefile b/util/docker/Makefile index c3b8fd65f8..6d320e1c46 100644 --- a/util/docker/Makefile +++ b/util/docker/Makefile @@ -1,14 +1,7 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only + export top=$(abspath $(CURDIR)/../..) export crossgcc_version=$(shell $(top)/util/crossgcc/buildgcc --version | grep 'cross toolchain' | sed 's/^.*\sv//' | sed 's/\s.*$$//') export DOCKER:=$(shell $(SHELL) -c "command -v docker") diff --git a/util/docker/coreboot.org-status/kconfig2html b/util/docker/coreboot.org-status/kconfig2html index 250b3452cf..3c1efc1b6a 100755 --- a/util/docker/coreboot.org-status/kconfig2html +++ b/util/docker/coreboot.org-status/kconfig2html @@ -4,15 +4,7 @@ # https://www.coreboot.org/coreboot_Options # based on http://landley.net/kdocs/make/menuconfig2html.py # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only import glob diff --git a/util/docker/coreboot.org-status/run.sh b/util/docker/coreboot.org-status/run.sh index 8f48f87b35..46cebbcefd 100755 --- a/util/docker/coreboot.org-status/run.sh +++ b/util/docker/coreboot.org-status/run.sh @@ -1,14 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. +# SPDX-License-Identifier: GPL-2.0-only + set -e # This script is the entry point for this container and expects two git diff --git a/util/dtd_parser/dtd_parser.py b/util/dtd_parser/dtd_parser.py index d00d52128c..4f4d290ca5 100755 --- a/util/dtd_parser/dtd_parser.py +++ b/util/dtd_parser/dtd_parser.py @@ -1,15 +1,7 @@ #!/usr/bin/env python2 # dtd_parser.py - DTD structure parser # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only ''' DTD string parser/generator. diff --git a/util/ectool/Makefile b/util/ectool/Makefile index c2ba7639b7..75504c73b6 100644 --- a/util/ectool/Makefile +++ b/util/ectool/Makefile @@ -1,12 +1,4 @@ -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only CC = gcc CFLAGS = -O2 -Wall -Wextra diff --git a/util/find_usbdebug/find_usbdebug.sh b/util/find_usbdebug/find_usbdebug.sh index 28d02ad2b0..ec81dd34dc 100755 --- a/util/find_usbdebug/find_usbdebug.sh +++ b/util/find_usbdebug/find_usbdebug.sh @@ -1,13 +1,6 @@ #!/bin/bash -# 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. +# SPDX-License-Identifier: GPL-2.0-only LANG=C # Some tools emit errors that don't matter (bugs in lspci/PCI firmware and lsusb). diff --git a/util/fuzz-tests/jpeg-test.c b/util/fuzz-tests/jpeg-test.c index 82d6d5cdd3..cdd93e9d90 100644 --- a/util/fuzz-tests/jpeg-test.c +++ b/util/fuzz-tests/jpeg-test.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index e770425489..bdd962c108 100755 --- a/util/genbuild_h/genbuild_h.sh +++ b/util/genbuild_h/genbuild_h.sh @@ -1,15 +1,7 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only DATE="" GITREV="" diff --git a/util/gitconfig/gitconfig.sh b/util/gitconfig/gitconfig.sh index e287658a47..f86b2b41c5 100755 --- a/util/gitconfig/gitconfig.sh +++ b/util/gitconfig/gitconfig.sh @@ -1,15 +1,7 @@ #!/usr/bin/env bash ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only # In the hooks, use the same `make` tool as used when running `make gitconfig`, # e.g. `remake gitconfig` will set `remake` to be run by the hooks. diff --git a/util/gitconfig/pre-commit b/util/gitconfig/pre-commit index 2dcdcb1930..3b04b59607 100755 --- a/util/gitconfig/pre-commit +++ b/util/gitconfig/pre-commit @@ -1,15 +1,7 @@ #!/bin/sh ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only set -e # -o errexit set -u # -o nounset diff --git a/util/ifdtool/Makefile b/util/ifdtool/Makefile index 8ebc6672ac..d70080d551 100644 --- a/util/ifdtool/Makefile +++ b/util/ifdtool/Makefile @@ -1,14 +1,6 @@ # ifdtool - dump Intel Firmware Descriptor information # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only PROGRAM = ifdtool diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 08a65b3ff5..fcc760e807 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -1,14 +1,5 @@ /* ifdtool - dump Intel Firmware Descriptor information */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index 0b81260006..5af98cf2ce 100644 --- a/util/ifdtool/ifdtool.h +++ b/util/ifdtool/ifdtool.h @@ -1,14 +1,5 @@ /* ifdtool - dump Intel Firmware Descriptor information */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c index 5d8523881f..426fa97756 100644 --- a/util/intelmetool/intelmetool.c +++ b/util/intelmetool/intelmetool.c @@ -1,15 +1,5 @@ /* intelmetool Dump interesting things about Management Engine even if hidden */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include #include diff --git a/util/intelmetool/intelmetool.h b/util/intelmetool/intelmetool.h index f3dbcee189..06df5f7b92 100644 --- a/util/intelmetool/intelmetool.h +++ b/util/intelmetool/intelmetool.h @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #define ME_NOT_PRESENT 0 #define ME_FOUND_NOTHING 1 diff --git a/util/inteltool/amb.c b/util/inteltool/amb.c index 67b5d8f814..961c0abf36 100644 --- a/util/inteltool/amb.c +++ b/util/inteltool/amb.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/cpu.c b/util/inteltool/cpu.c index f142455809..284e90b50e 100644 --- a/util/inteltool/cpu.c +++ b/util/inteltool/cpu.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/gfx.c b/util/inteltool/gfx.c index e19f58ba5a..bd85fae2aa 100644 --- a/util/inteltool/gfx.c +++ b/util/inteltool/gfx.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/gpio.c b/util/inteltool/gpio.c index 692876445a..911ec3ca27 100644 --- a/util/inteltool/gpio.c +++ b/util/inteltool/gpio.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include "inteltool.h" diff --git a/util/inteltool/gpio_groups.c b/util/inteltool/gpio_groups.c index 6f65f6d74f..4d341600ed 100644 --- a/util/inteltool/gpio_groups.c +++ b/util/inteltool/gpio_groups.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index 12f8c6af68..04e05dddae 100644 --- a/util/inteltool/inteltool.c +++ b/util/inteltool/inteltool.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/inteltool.h b/util/inteltool/inteltool.h index ba46887d9a..b314fe4de8 100644 --- a/util/inteltool/inteltool.h +++ b/util/inteltool/inteltool.h @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef INTELTOOL_H #define INTELTOOL_H 1 diff --git a/util/inteltool/lpc.c b/util/inteltool/lpc.c index 068ad037b6..2d3c91c704 100644 --- a/util/inteltool/lpc.c +++ b/util/inteltool/lpc.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/memory.c b/util/inteltool/memory.c index 59b94ff050..1bd127be99 100644 --- a/util/inteltool/memory.c +++ b/util/inteltool/memory.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include diff --git a/util/inteltool/pcie.c b/util/inteltool/pcie.c index 837afdd82f..e5828ccfbe 100644 --- a/util/inteltool/pcie.c +++ b/util/inteltool/pcie.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/pcr.c b/util/inteltool/pcr.c index 231a61db7d..c520518705 100644 --- a/util/inteltool/pcr.c +++ b/util/inteltool/pcr.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/pcr.h b/util/inteltool/pcr.h index 69826c3f29..a84cd71e3f 100644 --- a/util/inteltool/pcr.h +++ b/util/inteltool/pcr.h @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef INTELTOOL_PCR_H #define INTELTOOL_PCR_H 1 diff --git a/util/inteltool/powermgt.c b/util/inteltool/powermgt.c index a7a2035b00..2f44e1d28d 100644 --- a/util/inteltool/powermgt.c +++ b/util/inteltool/powermgt.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/inteltool/rootcmplx.c b/util/inteltool/rootcmplx.c index 6758c669ff..490897f938 100644 --- a/util/inteltool/rootcmplx.c +++ b/util/inteltool/rootcmplx.c @@ -1,14 +1,5 @@ /* inteltool - dump all registers on an Intel CPU + chipset based system */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/intelvbttool/Makefile b/util/intelvbttool/Makefile index 34f4254833..853ac3376b 100644 --- a/util/intelvbttool/Makefile +++ b/util/intelvbttool/Makefile @@ -1,14 +1,6 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only PROGRAM = intelvbttool CC ?= gcc diff --git a/util/intelvbttool/intelvbttool.c b/util/intelvbttool/intelvbttool.c index b98d6e4408..7d23c86c17 100644 --- a/util/intelvbttool/intelvbttool.c +++ b/util/intelvbttool/intelvbttool.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/kbc1126/kbc1126_ec_dump.c b/util/kbc1126/kbc1126_ec_dump.c index a96464a76f..f1aaf21040 100644 --- a/util/kbc1126/kbc1126_ec_dump.c +++ b/util/kbc1126/kbc1126_ec_dump.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/kbc1126/kbc1126_ec_insert.c b/util/kbc1126/kbc1126_ec_insert.c index cc86b773d4..92a2505d3e 100644 --- a/util/kbc1126/kbc1126_ec_insert.c +++ b/util/kbc1126/kbc1126_ec_insert.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/kconfig/toada.c b/util/kconfig/toada.c index 9db4dc71ff..1717fd040f 100644 --- a/util/kconfig/toada.c +++ b/util/kconfig/toada.c @@ -1,15 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include #include diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py index 827d2f5361..7da213c7d0 100755 --- a/util/lint/checkpatch_json.py +++ b/util/lint/checkpatch_json.py @@ -1,13 +1,5 @@ #!/usr/bin/env python2 -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only """ This utilty generate json output to post comment in gerrit. diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint index bdf9b8bb16..cd4c9a2f3b 100755 --- a/util/lint/kconfig_lint +++ b/util/lint/kconfig_lint @@ -1,15 +1,8 @@ #!/usr/bin/env perl # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # perltidy -l=123 package kconfig_lint; diff --git a/util/lint/lint b/util/lint/lint index fcce45f985..1420b41a1c 100755 --- a/util/lint/lint +++ b/util/lint/lint @@ -2,15 +2,8 @@ # # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + #set -x # uncomment for debug usage () { diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers index 080e6de99c..05476e87cd 100755 --- a/util/lint/lint-000-license-headers +++ b/util/lint/lint-000-license-headers @@ -1,16 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check that files in have valid license headers # $1 is an optional command line parameter containing directories to check diff --git a/util/lint/lint-001-no-global-config-in-romstage b/util/lint/lint-001-no-global-config-in-romstage index 29c9db1067..79293ebfff 100755 --- a/util/lint/lint-001-no-global-config-in-romstage +++ b/util/lint/lint-001-no-global-config-in-romstage @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check that no symbol #defined in any romstage.c is used elsewhere DEFINES=`grep "#define" src/mainboard/*/*/romstage.c |sed 's,.*#define[\t ]\([^\t ]*\)[\t ].*,\1,' | grep -v "(" | sort -u` diff --git a/util/lint/lint-007-checkpatch b/util/lint/lint-007-checkpatch index 77c3907b20..a56c62b94b 100755 --- a/util/lint/lint-007-checkpatch +++ b/util/lint/lint-007-checkpatch @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Checkpatch on .c, .h, & Kconfig files in the tree LC_ALL=C export LC_ALL diff --git a/util/lint/lint-008-kconfig b/util/lint/lint-008-kconfig index 79f7146957..948031a34c 100755 --- a/util/lint/lint-008-kconfig +++ b/util/lint/lint-008-kconfig @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: check Kconfig files for warnings and errors LC_ALL=C export LC_ALL diff --git a/util/lint/lint-014-qualified-types b/util/lint/lint-014-qualified-types index 7c0409c808..4a56dd6deb 100755 --- a/util/lint/lint-014-qualified-types +++ b/util/lint/lint-014-qualified-types @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check that variables have fully qualified types LC_ALL=C export LC_ALL diff --git a/util/lint/lint-extended-007-checkpatch b/util/lint/lint-extended-007-checkpatch index 80c1af5d1d..aa16caf2d6 100755 --- a/util/lint/lint-extended-007-checkpatch +++ b/util/lint/lint-extended-007-checkpatch @@ -1,16 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Run checkpatch on directories that are known good PIDS="" diff --git a/util/lint/lint-extended-015-final-newlines b/util/lint/lint-extended-015-final-newlines index 4e72995a46..67aa27ee92 100755 --- a/util/lint/lint-extended-015-final-newlines +++ b/util/lint/lint-extended-015-final-newlines @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check that files end with a single newline LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-003-whitespace b/util/lint/lint-stable-003-whitespace index 7943fcc411..1710083a6b 100755 --- a/util/lint/lint-stable-003-whitespace +++ b/util/lint/lint-stable-003-whitespace @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check for superfluous whitespace in the tree LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-004-style-labels b/util/lint/lint-stable-004-style-labels index c952b9102b..21aa69d873 100755 --- a/util/lint/lint-stable-004-style-labels +++ b/util/lint/lint-stable-004-style-labels @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check that C labels begin at start-of-line LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-008-kconfig b/util/lint/lint-stable-008-kconfig index 778a7a57a8..34dec465c8 100755 --- a/util/lint/lint-stable-008-kconfig +++ b/util/lint/lint-stable-008-kconfig @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: check Kconfig files for errors LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-009-old-licenses b/util/lint/lint-stable-009-old-licenses index 369d3936f1..1835a35e14 100755 --- a/util/lint/lint-stable-009-old-licenses +++ b/util/lint/lint-stable-009-old-licenses @@ -1,16 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: verify that files don't have the old style header # regex list of files and directories to exclude from the search diff --git a/util/lint/lint-stable-010-asm-syntax b/util/lint/lint-stable-010-asm-syntax index d532c5d28c..5f02ff567e 100755 --- a/util/lint/lint-stable-010-asm-syntax +++ b/util/lint/lint-stable-010-asm-syntax @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check that we use a single assembler syntax LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-016-non-ascii b/util/lint/lint-stable-016-non-ascii index a9967cab2c..5bbafbbab2 100755 --- a/util/lint/lint-stable-016-non-ascii +++ b/util/lint/lint-stable-016-non-ascii @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check for non-ASCII and unprintable characters LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-017-configs b/util/lint/lint-stable-017-configs index 01d32b1280..1221672f6f 100755 --- a/util/lint/lint-stable-017-configs +++ b/util/lint/lint-stable-017-configs @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check that saved config files are miniconfigs LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-018-symlinks b/util/lint/lint-stable-018-symlinks index eddcb0579c..c9aa356f5c 100755 --- a/util/lint/lint-stable-018-symlinks +++ b/util/lint/lint-stable-018-symlinks @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Report any symbolic links LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-019-header-files b/util/lint/lint-stable-019-header-files index 6940227c07..8114931b29 100755 --- a/util/lint/lint-stable-019-header-files +++ b/util/lint/lint-stable-019-header-files @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check for auto-included headers LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-021-coreboot-lowercase b/util/lint/lint-stable-021-coreboot-lowercase index 6c6a56b60a..f9444cec90 100755 --- a/util/lint/lint-stable-021-coreboot-lowercase +++ b/util/lint/lint-stable-021-coreboot-lowercase @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Verify that the word 'coreboot' is lowercase LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-022-clang-format b/util/lint/lint-stable-022-clang-format index fb9388b67a..439af55a87 100755 --- a/util/lint/lint-stable-022-clang-format +++ b/util/lint/lint-stable-022-clang-format @@ -1,16 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Run clang-format on white-listed directories LC_ALL=C export LC_ALL diff --git a/util/lint/lint-stable-023-filenames b/util/lint/lint-stable-023-filenames index 6332d2e9a2..b864ab9866 100755 --- a/util/lint/lint-stable-023-filenames +++ b/util/lint/lint-stable-023-filenames @@ -1,15 +1,8 @@ #!/bin/sh # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only + # DESCR: Check for illegal characters in filename LC_ALL=C export LC_ALL diff --git a/util/mainboard/google/hatch/template/Makefile.inc b/util/mainboard/google/hatch/template/Makefile.inc index 38cf728d8f..c4442094e4 100644 --- a/util/mainboard/google/hatch/template/Makefile.inc +++ b/util/mainboard/google/hatch/template/Makefile.inc @@ -1,13 +1,5 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only SPD_SOURCES = diff --git a/util/mainboard/google/volteer/template/Makefile.inc b/util/mainboard/google/volteer/template/Makefile.inc index 38cf728d8f..c4442094e4 100644 --- a/util/mainboard/google/volteer/template/Makefile.inc +++ b/util/mainboard/google/volteer/template/Makefile.inc @@ -1,13 +1,5 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only SPD_SOURCES = diff --git a/util/mainboard/google/volteer/template/include/variant/ec.h b/util/mainboard/google/volteer/template/include/variant/ec.h index e6c68afc10..55314d3b7d 100644 --- a/util/mainboard/google/volteer/template/include/variant/ec.h +++ b/util/mainboard/google/volteer/template/include/variant/ec.h @@ -1,16 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - * - * SPDX-License-Identifier: GPL-2.0-or-later - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __VARIANT_EC_H__ #define __VARIANT_EC_H__ diff --git a/util/mainboard/google/zork/template/Makefile.inc b/util/mainboard/google/zork/template/Makefile.inc index 38cf728d8f..c4442094e4 100644 --- a/util/mainboard/google/zork/template/Makefile.inc +++ b/util/mainboard/google/zork/template/Makefile.inc @@ -1,13 +1,5 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only SPD_SOURCES = diff --git a/util/mma/mma_get_result.sh b/util/mma/mma_get_result.sh index 890ee74193..48f5360ed3 100755 --- a/util/mma/mma_get_result.sh +++ b/util/mma/mma_get_result.sh @@ -1,15 +1,7 @@ #!/usr/bin/env bash # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only mma_results_op_bin="${1}" mma_results_op_bin_tmp="${mma_results_op_bin}".tmp diff --git a/util/mma/mma_setup_test.sh b/util/mma/mma_setup_test.sh index a53905b5aa..9680d2e8c6 100755 --- a/util/mma/mma_setup_test.sh +++ b/util/mma/mma_setup_test.sh @@ -1,15 +1,7 @@ #!/usr/bin/env bash # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only file_type_mma="mma" flashrom_temp_image=/tmp/flash_image_mma.bin diff --git a/util/mtkheader/gen-bl-img.py b/util/mtkheader/gen-bl-img.py index 656b976223..473d2a403d 100755 --- a/util/mtkheader/gen-bl-img.py +++ b/util/mtkheader/gen-bl-img.py @@ -1,16 +1,7 @@ #!/usr/bin/env python2 # This file is part of the coreboot project. # -# 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. -# - +# SPDX-License-Identifier: GPL-2.0-only import struct import sys diff --git a/util/nvramtool/Makefile b/util/nvramtool/Makefile index c210234dbc..25962ef1d9 100644 --- a/util/nvramtool/Makefile +++ b/util/nvramtool/Makefile @@ -4,15 +4,7 @@ ## (C) 2005-2008 coresystems GmbH ## written by Stefan Reinauer ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only PROGRAM = nvramtool diff --git a/util/nvramtool/Makefile.inc b/util/nvramtool/Makefile.inc index 697428906e..00e5efa995 100644 --- a/util/nvramtool/Makefile.inc +++ b/util/nvramtool/Makefile.inc @@ -5,15 +5,7 @@ ## written by Stefan Reinauer ## (C) 2012 secunet Security Networks AG ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only OS_ARCH = $(shell uname) NVRAMTOOLFLAGS := -I$(top)/util/nvramtool diff --git a/util/nvramtool/cbfs.c b/util/nvramtool/cbfs.c index 86b5f5984d..7677633474 100644 --- a/util/nvramtool/cbfs.c +++ b/util/nvramtool/cbfs.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifdef __MINGW32__ #include diff --git a/util/pmh7tool/Makefile b/util/pmh7tool/Makefile index 8572e00e51..9b3921aac2 100644 --- a/util/pmh7tool/Makefile +++ b/util/pmh7tool/Makefile @@ -1,12 +1,4 @@ -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only CC = gcc CFLAGS = -O2 -Wall -Wextra -Werror diff --git a/util/pmh7tool/pmh7tool.c b/util/pmh7tool/pmh7tool.c index 908abf394b..dc9df2d274 100644 --- a/util/pmh7tool/pmh7tool.c +++ b/util/pmh7tool/pmh7tool.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/pmh7tool/pmh7tool.h b/util/pmh7tool/pmh7tool.h index 34ccbc9f01..54fdaaf75e 100644 --- a/util/pmh7tool/pmh7tool.h +++ b/util/pmh7tool/pmh7tool.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef PMH7TOOL_H #define PMH7TOOL_H diff --git a/util/post/post.c b/util/post/post.c index ef769161b1..8578d04899 100644 --- a/util/post/post.c +++ b/util/post/post.c @@ -1,14 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include #include diff --git a/util/release/genrelnotes b/util/release/genrelnotes index e972b40e4c..26cf280b79 100755 --- a/util/release/genrelnotes +++ b/util/release/genrelnotes @@ -1,15 +1,7 @@ #!/usr/bin/env bash # This file is part of the coreboot project. # -# 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. - +# SPDX-License-Identifier: GPL-2.0-only # This script creates a list of commits between two releases, broken out into # fairly inexact categories, based on the directories that files are in. If diff --git a/util/release/gerrit_stats.pl b/util/release/gerrit_stats.pl index 9e2e71a260..e21877ff23 100755 --- a/util/release/gerrit_stats.pl +++ b/util/release/gerrit_stats.pl @@ -1,15 +1,7 @@ #!/usr/bin/perl # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only package gerrit_stats; diff --git a/util/riscv/sifive-gpt.py b/util/riscv/sifive-gpt.py index c651f021a9..e3d7ceb42b 100755 --- a/util/riscv/sifive-gpt.py +++ b/util/riscv/sifive-gpt.py @@ -1,14 +1,7 @@ #!/usr/bin/env python3 # This file is part of the coreboot project. # -# 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. +# SPDX-License-Identifier: GPL-2.0-only import sys, os, struct, uuid, zlib, io diff --git a/util/sconfig/main.c b/util/sconfig/main.c index 036c59ce57..b0c53385c6 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -1,14 +1,5 @@ /* sconfig, coreboot device tree compiler */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include /* stat.h needs to be included before commonlib/helpers.h to avoid errors.*/ diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h index 9f6e01c9e8..a960b7f055 100644 --- a/util/sconfig/sconfig.h +++ b/util/sconfig/sconfig.h @@ -1,14 +1,5 @@ /* sconfig, coreboot device tree compiler */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/sconfig/sconfig.l b/util/sconfig/sconfig.l index 0c30d2cb70..9fd0cec0e9 100755 --- a/util/sconfig/sconfig.l +++ b/util/sconfig/sconfig.l @@ -1,15 +1,6 @@ %{ /* sconfig, coreboot device tree compiler */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "sconfig.tab.h" diff --git a/util/sconfig/sconfig.tab.c_shipped b/util/sconfig/sconfig.tab.c_shipped index f0233a500c..fb7e3f710f 100644 --- a/util/sconfig/sconfig.tab.c_shipped +++ b/util/sconfig/sconfig.tab.c_shipped @@ -68,16 +68,7 @@ /* First part of user prologue. */ /* sconfig, coreboot device tree compiler */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "sconfig.h" diff --git a/util/sconfig/sconfig.y b/util/sconfig/sconfig.y index ef3e160c1b..597e309a42 100755 --- a/util/sconfig/sconfig.y +++ b/util/sconfig/sconfig.y @@ -1,15 +1,6 @@ %{ /* sconfig, coreboot device tree compiler */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "sconfig.h" diff --git a/util/scripts/cross-repo-cherrypick b/util/scripts/cross-repo-cherrypick index 1f1931b35b..3fbc46faed 100755 --- a/util/scripts/cross-repo-cherrypick +++ b/util/scripts/cross-repo-cherrypick @@ -1,15 +1,7 @@ #!/bin/sh # cross-repo-cherrypick - rebase helper script # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only # Adapt to your remote branch: BRANCH="origin/master" diff --git a/util/scripts/decode_spd.sh b/util/scripts/decode_spd.sh index 9ab9fa30cf..8ce28af18e 100755 --- a/util/scripts/decode_spd.sh +++ b/util/scripts/decode_spd.sh @@ -2,16 +2,8 @@ # # This file is part of the coreboot project. # -# 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. -# -# +# SPDX-License-Identifier: GPL-2.0-only + # Parses spd hex files and outputs the contents in various formats # # diff --git a/util/scripts/dts-to-fmd.sh b/util/scripts/dts-to-fmd.sh index cff44e0ca7..5c3772697b 100755 --- a/util/scripts/dts-to-fmd.sh +++ b/util/scripts/dts-to-fmd.sh @@ -1,12 +1,6 @@ #!/usr/bin/env bash -# 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. +# SPDX-License-Identifier: GPL-2.0-only + # converts a depthcharge fmap.dts into an fmaptool compatible .fmd format # requires fdt utilities (dtc, fdtget) # diff --git a/util/scripts/gerrit-rebase b/util/scripts/gerrit-rebase index 83749137c3..9e4c791076 100755 --- a/util/scripts/gerrit-rebase +++ b/util/scripts/gerrit-rebase @@ -1,12 +1,5 @@ #!/usr/bin/env bash -# 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. +# SPDX-License-Identifier: GPL-2.0-only # $0 from-branch to-branch # diff --git a/util/scripts/maintainers.go b/util/scripts/maintainers.go index 34841b3955..459c030d13 100644 --- a/util/scripts/maintainers.go +++ b/util/scripts/maintainers.go @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ package main diff --git a/util/scripts/update_submodules b/util/scripts/update_submodules index cf0bdbd88f..993f58ef0b 100755 --- a/util/scripts/update_submodules +++ b/util/scripts/update_submodules @@ -1,15 +1,7 @@ #!/usr/bin/env bash # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only # Description: # Check all submodules for updates. If there are more than a minimum diff --git a/util/showdevicetree/showdt.c b/util/showdevicetree/showdt.c index d8a5e62b8f..961a69d9a3 100644 --- a/util/showdevicetree/showdt.c +++ b/util/showdevicetree/showdt.c @@ -1,14 +1,5 @@ /* Compile and dump the device tree */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include /* you can't include string.h due to conflicts with coreboot prototypes. */ void *memcpy(void *m1, void *m2, size_t s); diff --git a/util/superiotool/ali.c b/util/superiotool/ali.c index c1344d91b6..0442062636 100644 --- a/util/superiotool/ali.c +++ b/util/superiotool/ali.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/amd.c b/util/superiotool/amd.c index 6a379cb951..1831b1fa2c 100644 --- a/util/superiotool/amd.c +++ b/util/superiotool/amd.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/aspeed.c b/util/superiotool/aspeed.c index 977e1817ab..4e9d684c9d 100644 --- a/util/superiotool/aspeed.c +++ b/util/superiotool/aspeed.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/exar.c b/util/superiotool/exar.c index 27060f40c4..430d6ba32a 100644 --- a/util/superiotool/exar.c +++ b/util/superiotool/exar.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/fintek.c b/util/superiotool/fintek.c index 48cb89061e..1402d480a0 100644 --- a/util/superiotool/fintek.c +++ b/util/superiotool/fintek.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/infineon.c b/util/superiotool/infineon.c index 8e73d33748..b11db76e2d 100644 --- a/util/superiotool/infineon.c +++ b/util/superiotool/infineon.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/ite.c b/util/superiotool/ite.c index 9d9e0e4adb..00eceed9f8 100644 --- a/util/superiotool/ite.c +++ b/util/superiotool/ite.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/nsc.c b/util/superiotool/nsc.c index 444267d4f9..9159876b51 100644 --- a/util/superiotool/nsc.c +++ b/util/superiotool/nsc.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/nuvoton.c b/util/superiotool/nuvoton.c index c00ef49077..e6dc9f793b 100644 --- a/util/superiotool/nuvoton.c +++ b/util/superiotool/nuvoton.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/pci.c b/util/superiotool/pci.c index 1e0c9c1779..0ca2887801 100644 --- a/util/superiotool/pci.c +++ b/util/superiotool/pci.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/serverengines.c b/util/superiotool/serverengines.c index c24cecf5fc..f2ac9c5794 100644 --- a/util/superiotool/serverengines.c +++ b/util/superiotool/serverengines.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/smsc.c b/util/superiotool/smsc.c index 60d02b8cad..3a5147f664 100644 --- a/util/superiotool/smsc.c +++ b/util/superiotool/smsc.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c index c5fa20d190..e93e9261c6 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h index fb6be382a6..74e9aa86e2 100644 --- a/util/superiotool/superiotool.h +++ b/util/superiotool/superiotool.h @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef SUPERIOTOOL_H #define SUPERIOTOOL_H diff --git a/util/superiotool/via.c b/util/superiotool/via.c index 374d4db933..8853462ca4 100644 --- a/util/superiotool/via.c +++ b/util/superiotool/via.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/superiotool/winbond.c b/util/superiotool/winbond.c index b2ae178998..fe5bbadb63 100644 --- a/util/superiotool/winbond.c +++ b/util/superiotool/winbond.c @@ -1,15 +1,5 @@ /* This file is part of the superiotool project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "superiotool.h" diff --git a/util/supermicro/smcbiosinfo/smcbiosinfo.c b/util/supermicro/smcbiosinfo/smcbiosinfo.c index 2213b0e9a1..d7a6a301df 100644 --- a/util/supermicro/smcbiosinfo/smcbiosinfo.c +++ b/util/supermicro/smcbiosinfo/smcbiosinfo.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc index bf096d3565..80e7fa902d 100644 --- a/util/testing/Makefile.inc +++ b/util/testing/Makefile.inc @@ -1,15 +1,7 @@ ## ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only test-help help:: @echo '*** coreboot test targets ***' diff --git a/util/uio_usbdebug/console/printk.c b/util/uio_usbdebug/console/printk.c index a3f6dde223..4d0e652d1f 100644 --- a/util/uio_usbdebug/console/printk.c +++ b/util/uio_usbdebug/console/printk.c @@ -1,14 +1,5 @@ /* This file is part of uio_usbdebug */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/uio_usbdebug/drivers/usb/pci_ehci.c b/util/uio_usbdebug/drivers/usb/pci_ehci.c index fc8b3fad46..305c3398f5 100644 --- a/util/uio_usbdebug/drivers/usb/pci_ehci.c +++ b/util/uio_usbdebug/drivers/usb/pci_ehci.c @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include diff --git a/util/uio_usbdebug/include/device/device.h b/util/uio_usbdebug/include/device/device.h index 51c1c7132f..25489614e5 100644 --- a/util/uio_usbdebug/include/device/device.h +++ b/util/uio_usbdebug/include/device/device.h @@ -1,13 +1,4 @@ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _DEVICE_DEVICE_H diff --git a/util/uio_usbdebug/uio_usbdebug.c b/util/uio_usbdebug/uio_usbdebug.c index e530700ae7..54b011990c 100644 --- a/util/uio_usbdebug/uio_usbdebug.c +++ b/util/uio_usbdebug/uio_usbdebug.c @@ -1,14 +1,5 @@ /* uio_usbdebug - Run coreboot's usbdebug driver in userspace */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/uio_usbdebug/uio_usbdebug_intel.c b/util/uio_usbdebug/uio_usbdebug_intel.c index bf91660e72..2497f6cb9e 100644 --- a/util/uio_usbdebug/uio_usbdebug_intel.c +++ b/util/uio_usbdebug/uio_usbdebug_intel.c @@ -1,14 +1,5 @@ /* This file is part of uio_usbdebug */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/vgabios/Makefile b/util/vgabios/Makefile index 203b07cdd3..dec3c9b438 100644 --- a/util/vgabios/Makefile +++ b/util/vgabios/Makefile @@ -1,16 +1,7 @@ ## This file is part of the coreboot project. ## -## 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. -## +## SPDX-License-Identifier: GPL-2.0-only -# # NOTE: You need to add your libpci.a version to CFLAGS below if # pci-userspace.c does not build. # diff --git a/util/vgabios/include/arch/byteorder.h b/util/vgabios/include/arch/byteorder.h index b0b354aafd..754ff754a9 100644 --- a/util/vgabios/include/arch/byteorder.h +++ b/util/vgabios/include/arch/byteorder.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _BYTEORDER_H #define _BYTEORDER_H diff --git a/util/vgabios/include/config.h b/util/vgabios/include/config.h index 35b69a150e..1b336a1bac 100644 --- a/util/vgabios/include/config.h +++ b/util/vgabios/include/config.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #define CONFIG_PCI_OPTION_ROM_RUN_YABEL 1 #define CONFIG_YABEL_PCI_ACCESS_OTHER_DEVICES 0 diff --git a/util/vgabios/include/console/console.h b/util/vgabios/include/console/console.h index 2858d1dbf6..49a201fab8 100644 --- a/util/vgabios/include/console/console.h +++ b/util/vgabios/include/console/console.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _CONSOLE_CONSOLE_H #define _CONSOLE_CONSOLE_H diff --git a/util/vgabios/include/stdtypes.h b/util/vgabios/include/stdtypes.h index c31cb35f12..022a1b6854 100644 --- a/util/vgabios/include/stdtypes.h +++ b/util/vgabios/include/stdtypes.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _STDTYPES_H #define _STDTYPES_H diff --git a/util/vgabios/pci-userspace.c b/util/vgabios/pci-userspace.c index 2a57f48766..3091590b44 100644 --- a/util/vgabios/pci-userspace.c +++ b/util/vgabios/pci-userspace.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/vgabios/pci-userspace.h b/util/vgabios/pci-userspace.h index 4fe933af37..aeeb344a50 100644 --- a/util/vgabios/pci-userspace.h +++ b/util/vgabios/pci-userspace.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __PCI_USERSPACE_H__ #define __PCI_USERSPACE_H__ diff --git a/util/vgabios/testbios.c b/util/vgabios/testbios.c index 1c6192c71b..7080c50bf6 100644 --- a/util/vgabios/testbios.c +++ b/util/vgabios/testbios.c @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/vgabios/testbios.h b/util/vgabios/testbios.h index ef46d60645..c97298c959 100644 --- a/util/vgabios/testbios.h +++ b/util/vgabios/testbios.h @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __TESTBIOS_H__ #define __TESTBIOS_H__ diff --git a/util/x86/x86_page_tables.go b/util/x86/x86_page_tables.go index 34959fae83..25b7eb7303 100644 --- a/util/x86/x86_page_tables.go +++ b/util/x86/x86_page_tables.go @@ -1,14 +1,5 @@ /* This file is part of the coreboot project. */ -/* - * 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. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ package main diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 0ffcf0aa53..53a72de9fd 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -1,15 +1,7 @@ #!/usr/bin/env bash # This file is part of the coreboot project. # -# 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. -# +# SPDX-License-Identifier: GPL-2.0-only # Usage: [--debug] [path to xgcc/bin directory] -- cgit v1.2.3