Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
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 pgeorgi@google.com --- M util/acpi/acpidump-all M util/amdfwtool/amdfwtool.c M util/archive/archive.c M util/archive/archive.h M util/bincfg/bincfg.h M util/bincfg/bincfg.l M util/bincfg/bincfg.y M util/bucts/bucts.c M util/cbfstool/amdcompress.c M util/cbfstool/cbfs-mkpayload.c M util/cbfstool/cbfs-mkstage.c M util/cbfstool/cbfs-payload-linux.c M util/cbfstool/cbfs.h M util/cbfstool/cbfs_image.c M util/cbfstool/cbfs_image.h M util/cbfstool/cbfs_sections.c M util/cbfstool/cbfs_sections.h M util/cbfstool/cbfscomptool.c M util/cbfstool/cbfstool.c M util/cbfstool/coff.h M util/cbfstool/common.c M util/cbfstool/common.h M util/cbfstool/compress.c M util/cbfstool/console/console.h M util/cbfstool/elfheaders.c M util/cbfstool/elfparsing.h M util/cbfstool/fit.c M util/cbfstool/fit.h M util/cbfstool/flashmap_tests.c M util/cbfstool/fmap_from_fmd.c M util/cbfstool/fmap_from_fmd.h M util/cbfstool/fmaptool.c M util/cbfstool/fmd.c M util/cbfstool/fmd.h M util/cbfstool/fmd_parser.y M util/cbfstool/fmd_scanner.l M util/cbfstool/fv.h M util/cbfstool/ifittool.c M util/cbfstool/ifwitool.c M util/cbfstool/linux.h M util/cbfstool/linux_trampoline.S M util/cbfstool/linux_trampoline.h M util/cbfstool/option.h M util/cbfstool/partitioned_file.c M util/cbfstool/partitioned_file.h M util/cbfstool/rmodtool.c M util/cbfstool/rmodule.c M util/cbfstool/rmodule.h M util/cbfstool/xdr.c M util/cbmem/Makefile M util/cbmem/cbmem.c M util/chromeos/crosfirmware.sh M util/chromeos/extract_blobs.sh M util/chromeos/gen_test_hwid.sh M util/crossgcc/Makefile.inc M util/crossgcc/buildgcc M util/docker/Makefile M util/docker/coreboot.org-status/kconfig2html M util/docker/coreboot.org-status/run.sh M util/dtd_parser/dtd_parser.py M util/ectool/Makefile M util/find_usbdebug/find_usbdebug.sh M util/fuzz-tests/jpeg-test.c M util/genbuild_h/genbuild_h.sh M util/gitconfig/gitconfig.sh M util/gitconfig/pre-commit M util/ifdtool/Makefile M util/ifdtool/ifdtool.c M util/ifdtool/ifdtool.h M util/intelmetool/intelmetool.h M util/inteltool/amb.c M util/inteltool/cpu.c M util/inteltool/gfx.c M util/inteltool/gpio.c M util/inteltool/gpio_groups.c M util/inteltool/inteltool.c M util/inteltool/inteltool.h M util/inteltool/lpc.c M util/inteltool/memory.c M util/inteltool/pcie.c M util/inteltool/pcr.c M util/inteltool/pcr.h M util/inteltool/powermgt.c M util/inteltool/rootcmplx.c M util/intelvbttool/Makefile M util/intelvbttool/intelvbttool.c M util/kbc1126/kbc1126_ec_dump.c M util/kbc1126/kbc1126_ec_insert.c M util/kconfig/toada.c M util/lint/checkpatch_json.py M util/lint/kconfig_lint M util/lint/lint M util/lint/lint-000-license-headers M util/lint/lint-001-no-global-config-in-romstage M util/lint/lint-007-checkpatch M util/lint/lint-008-kconfig M util/lint/lint-014-qualified-types M util/lint/lint-extended-007-checkpatch M util/lint/lint-extended-015-final-newlines M util/lint/lint-stable-003-whitespace M util/lint/lint-stable-004-style-labels M util/lint/lint-stable-008-kconfig M util/lint/lint-stable-009-old-licenses M util/lint/lint-stable-010-asm-syntax M util/lint/lint-stable-016-non-ascii M util/lint/lint-stable-017-configs M util/lint/lint-stable-018-symlinks M util/lint/lint-stable-019-header-files M util/lint/lint-stable-021-coreboot-lowercase M util/lint/lint-stable-022-clang-format M util/lint/lint-stable-023-filenames M util/mainboard/google/hatch/template/Makefile.inc M util/mainboard/google/volteer/template/Makefile.inc M util/mainboard/google/zork/template/Makefile.inc M util/mma/mma_get_result.sh M util/mma/mma_setup_test.sh M util/mtkheader/gen-bl-img.py M util/nvramtool/Makefile M util/nvramtool/Makefile.inc M util/nvramtool/cbfs.c M util/pmh7tool/Makefile M util/pmh7tool/pmh7tool.c M util/pmh7tool/pmh7tool.h M util/post/post.c M util/release/genrelnotes M util/release/gerrit_stats.pl M util/riscv/sifive-gpt.py M util/sconfig/main.c M util/sconfig/sconfig.h M util/sconfig/sconfig.l M util/sconfig/sconfig.tab.c_shipped M util/sconfig/sconfig.y M util/scripts/cross-repo-cherrypick M util/scripts/decode_spd.sh M util/scripts/dts-to-fmd.sh M util/scripts/gerrit-rebase M util/scripts/maintainers.go M util/scripts/update_submodules M util/showdevicetree/showdt.c M util/superiotool/ali.c M util/superiotool/amd.c M util/superiotool/aspeed.c M util/superiotool/exar.c M util/superiotool/fintek.c M util/superiotool/infineon.c M util/superiotool/ite.c M util/superiotool/nsc.c M util/superiotool/nuvoton.c M util/superiotool/pci.c M util/superiotool/serverengines.c M util/superiotool/smsc.c M util/superiotool/superiotool.c M util/superiotool/superiotool.h M util/superiotool/via.c M util/superiotool/winbond.c M util/supermicro/smcbiosinfo/smcbiosinfo.c M util/testing/Makefile.inc M util/uio_usbdebug/console/printk.c M util/uio_usbdebug/drivers/usb/pci_ehci.c M util/uio_usbdebug/include/device/device.h M util/uio_usbdebug/uio_usbdebug.c M util/uio_usbdebug/uio_usbdebug_intel.c M util/vgabios/Makefile M util/vgabios/include/arch/byteorder.h M util/vgabios/include/config.h M util/vgabios/include/console/console.h M util/vgabios/include/stdtypes.h M util/vgabios/pci-userspace.c M util/vgabios/pci-userspace.h M util/vgabios/testbios.c M util/vgabios/testbios.h M util/x86/x86_page_tables.go M util/xcompile/xcompile 173 files changed, 198 insertions(+), 1,674 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/41177/1
diff --git a/util/acpi/acpidump-all b/util/acpi/acpidump-all index 29bf254..c42ee4a 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 bb4266d..e344852 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 384a980..82a2f390 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 <endian.h> diff --git a/util/archive/archive.h b/util/archive/archive.h index c7fe53f..c726bb7 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 1f2d270..c3eec10 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 5f9a2c9..ca93547 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 <stdio.h> diff --git a/util/bincfg/bincfg.y b/util/bincfg/bincfg.y index 5c65d75..0aaf13a 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 <stdio.h> diff --git a/util/bucts/bucts.c b/util/bucts/bucts.c index f932e5b..a89456c 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 <getopt.h> #include <stdio.h> diff --git a/util/cbfstool/amdcompress.c b/util/cbfstool/amdcompress.c index a42cfc2..b4e10a2 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfs-mkpayload.c b/util/cbfstool/cbfs-mkpayload.c index c063190..86aa8e5 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfs-mkstage.c b/util/cbfstool/cbfs-mkstage.c index 3f6b026..bfdffbf 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 <inttypes.h> #include <stdio.h> diff --git a/util/cbfstool/cbfs-payload-linux.c b/util/cbfstool/cbfs-payload-linux.c index 2b5a4b9..706f3a0 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index 11e80c4..421f0bc 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 a0b2a82..a042f0d 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 <inttypes.h> #include <libgen.h> diff --git a/util/cbfstool/cbfs_image.h b/util/cbfstool/cbfs_image.h index fa460f1..c57a153 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 2107534..e0314ca 100644 --- a/util/cbfstool/cbfs_sections.c +++ b/util/cbfstool/cbfs_sections.c @@ -1,14 +1,5 @@ /* fmap_sections.c, 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 c968a68..d7b0173 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 b50d4ef..3ea87ad 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 18d507c..3990087 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/coff.h b/util/cbfstool/coff.h index da0ea17..1035e84 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 2de67dc..e2ed38f 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index 94c1a98..7dbc1f5 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 b92da0e..f926db5 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 <string.h> #include <stdio.h> diff --git a/util/cbfstool/console/console.h b/util/cbfstool/console/console.h index 9c393f1..e2cf277 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 216e277..3a53735 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/elfparsing.h b/util/cbfstool/elfparsing.h index 1cc6eb2..d207f45 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 f358720..44573ca 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 <inttypes.h> #include <stdint.h> diff --git a/util/cbfstool/fit.h b/util/cbfstool/fit.h index feec0cf..d900cf5 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 d6483db..0ed3fc9 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 1773050..051914d 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 8464aa5..cb727e7 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 3b10f79..aace5ae 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 5d990ca..f699745 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 8a9e151..8dfcb3c 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 b10835e..a29c9d6 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 525fe6f..9d05c80 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 8a6031d..bf4284e 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 3a9c37e..7e99d4f 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/ifwitool.c b/util/cbfstool/ifwitool.c index 591f588..8eda4c7 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 <commonlib/endian.h> #include <getopt.h> diff --git a/util/cbfstool/linux.h b/util/cbfstool/linux.h index c8281f7..fcf77a5 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 fd21475..f1619cf 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 dcdcf08..af77d7c 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 1342383..c49bf57 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 917341c..b6d4f1b 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 75d51e0..24c267e 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 90af3af5..c4256e8 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/rmodule.c b/util/cbfstool/rmodule.c index 800a85b..429bbf3 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 <inttypes.h> #include <stdio.h> diff --git a/util/cbfstool/rmodule.h b/util/cbfstool/rmodule.h index 7b29194..a62562b 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 d7bcb32..6a83bee 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbmem/Makefile b/util/cbmem/Makefile index 5cc55a3..f0f474e 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 54642da..f493585 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 <inttypes.h> #include <stdio.h> diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh index 0dcb449..40cef3a 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 ca5c932..9aa7baa 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 6e7cdee..21aed18 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 c6e468b..a078e00 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 2e35462..8770e02 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 c3b8fd6..6d320e1 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 45f429a..78f3519 100755 --- a/util/docker/coreboot.org-status/kconfig2html +++ b/util/docker/coreboot.org-status/kconfig2html @@ -3,15 +3,7 @@ # kconfig2wiki - Kconfig to MediaWiki converter for # https://www.coreboot.org/coreboot_Options # -# 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 8f48f87..46cebbc 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 d00d521..4f4d290 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 c2ba763..75504c7 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 28d02ad..ec81dd3 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 82d6d5c..cdd93e9 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 <stdlib.h> #include <stdio.h> diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index e770425..bdd962c 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 e287658..f86b2b4 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 2dcdcb1..3b04b59 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 8ebc667..d70080d 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 08a65b3..fcc760e 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 <unistd.h> #include <stdlib.h> diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index 0b81260..5af98cf 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 <stdint.h> #include <stdbool.h> diff --git a/util/intelmetool/intelmetool.h b/util/intelmetool/intelmetool.h index f3dbcee..06df5f7 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 67b5d8f..961c0ab 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 <stddef.h> #include <stdio.h> diff --git a/util/inteltool/cpu.c b/util/inteltool/cpu.c index f142455..284e90b 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 <fcntl.h> #include <unistd.h> diff --git a/util/inteltool/gfx.c b/util/inteltool/gfx.c index e19f58b..bd85fae 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/gpio.c b/util/inteltool/gpio.c index 6928764..911ec3c 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 <stdio.h> #include "inteltool.h" diff --git a/util/inteltool/gpio_groups.c b/util/inteltool/gpio_groups.c index 6f65f6d..4d34160 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index 12f8c6a..04e05dd 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/inteltool.h b/util/inteltool/inteltool.h index ba46887..b314fe4 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 068ad03..2d3c91c 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/memory.c b/util/inteltool/memory.c index 59b94ff..1bd127b 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 <stdio.h> diff --git a/util/inteltool/pcie.c b/util/inteltool/pcie.c index 837afdd..e5828cc 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/pcr.c b/util/inteltool/pcr.c index 231a61d..c520518 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/pcr.h b/util/inteltool/pcr.h index 69826c3..a84cd71 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 a7a2035..2f44e1d 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/rootcmplx.c b/util/inteltool/rootcmplx.c index 6758c66..490897f 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 <stdio.h> #include <stdlib.h> diff --git a/util/intelvbttool/Makefile b/util/intelvbttool/Makefile index 34f4254..853ac33 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 b98d6e4..7d23c86 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 <stdio.h> #include <sys/mman.h> diff --git a/util/kbc1126/kbc1126_ec_dump.c b/util/kbc1126/kbc1126_ec_dump.c index a96464a..f1aaf21 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 <assert.h> #include <stdio.h> diff --git a/util/kbc1126/kbc1126_ec_insert.c b/util/kbc1126/kbc1126_ec_insert.c index cc86b77..92a2505 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 <stdio.h> #include <stdlib.h> diff --git a/util/kconfig/toada.c b/util/kconfig/toada.c index 9db4dc7..7741934 100644 --- a/util/kconfig/toada.c +++ b/util/kconfig/toada.c @@ -1,15 +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; 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 <ctype.h> #include <stdio.h> diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py index 827d2f5..7da213c 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 bdf9b8b..cd4c9a2 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 fcce45f..1420b41 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 080e6de..05476e8 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 29c9db1..79293eb 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 77c3907..a56c62b 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 79f7146..948031a 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 7c0409c..4a56dd6 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 80c1af5..aa16caf 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 4e72995..67aa27e 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 7943fcc..1710083 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 c952b91..21aa69d 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 778a7a5..34dec46 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 369d393..1835a35 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 d532c5d..5f02ff5 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 a9967ca..5bbafbb 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 01d32b1..1221672 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 eddcb05..c9aa356 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 6940227..8114931 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 6c6a56b..f9444ce 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 fb9388b..439af55 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 6332d2e..b864ab9 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 38cf728..c444209 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 38cf728..c444209 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/zork/template/Makefile.inc b/util/mainboard/google/zork/template/Makefile.inc index 38cf728..c444209 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 890ee74..48f5360 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 a53905b..9680d2e 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 656b976..473d2a4 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 c210234..25962ef 100644 --- a/util/nvramtool/Makefile +++ b/util/nvramtool/Makefile @@ -4,15 +4,7 @@ ## (C) 2005-2008 coresystems GmbH ## written by Stefan Reinauer stepan@coresystems.de ## -## 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 6974289..00e5efa 100644 --- a/util/nvramtool/Makefile.inc +++ b/util/nvramtool/Makefile.inc @@ -5,15 +5,7 @@ ## written by Stefan Reinauer stepan@coresystems.de ## (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 86b5f59..7677633 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 <winsock.h> diff --git a/util/pmh7tool/Makefile b/util/pmh7tool/Makefile index 8572e00..9b3921a 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 908abf3..dc9df2d 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 <stdio.h> #include <stdlib.h> diff --git a/util/pmh7tool/pmh7tool.h b/util/pmh7tool/pmh7tool.h index 34ccbc9..54fdaaf 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 ef76916..791e039 100644 --- a/util/post/post.c +++ b/util/post/post.c @@ -1,14 +1,5 @@ /* - * 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 <errno.h> #include <limits.h> diff --git a/util/release/genrelnotes b/util/release/genrelnotes index e972b40..26cf280 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 9e2e71a..e21877f 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 c651f02..e3d7ceb 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 036c59c..b0c5338 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 <ctype.h> /* 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 9f6e01c..a960b7f 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 <stdio.h> #include <stdlib.h> diff --git a/util/sconfig/sconfig.l b/util/sconfig/sconfig.l index 0c30d2c..9fd0cec 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 f0233a5..fb7e3f7 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 ef3e160..597e309 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 1f1931b..3fbc46f 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 9ab9fa3..8ce28af 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 cff44e0..5c37726 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 8374913..9e4c791 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 34841b3..459c030 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 cf0bdbd..993f58e 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 d8a5e62..961a69d 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 <stdio.h> /* 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 c1344d9..8f0e5f9 100644 --- a/util/superiotool/ali.c +++ b/util/superiotool/ali.c @@ -1,15 +1,6 @@ /* 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 6a379cb..2057ec2 100644 --- a/util/superiotool/amd.c +++ b/util/superiotool/amd.c @@ -1,15 +1,6 @@ /* 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 977e181..7e4c5b1 100644 --- a/util/superiotool/aspeed.c +++ b/util/superiotool/aspeed.c @@ -1,15 +1,6 @@ /* 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 27060f4..85b8cf8 100644 --- a/util/superiotool/exar.c +++ b/util/superiotool/exar.c @@ -1,15 +1,6 @@ /* 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 48cb890..b2fc77f 100644 --- a/util/superiotool/fintek.c +++ b/util/superiotool/fintek.c @@ -1,15 +1,6 @@ /* 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 8e73d33..e74e505 100644 --- a/util/superiotool/infineon.c +++ b/util/superiotool/infineon.c @@ -1,15 +1,6 @@ /* 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 9d9e0e4..7dc594f 100644 --- a/util/superiotool/ite.c +++ b/util/superiotool/ite.c @@ -1,15 +1,6 @@ /* 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 444267d..7cc50cc 100644 --- a/util/superiotool/nsc.c +++ b/util/superiotool/nsc.c @@ -1,15 +1,6 @@ /* 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 c00ef49..01f9173 100644 --- a/util/superiotool/nuvoton.c +++ b/util/superiotool/nuvoton.c @@ -1,15 +1,6 @@ /* 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 1e0c9c1..658de04 100644 --- a/util/superiotool/pci.c +++ b/util/superiotool/pci.c @@ -1,15 +1,6 @@ /* 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 c24cecf..bee6f37 100644 --- a/util/superiotool/serverengines.c +++ b/util/superiotool/serverengines.c @@ -1,15 +1,6 @@ /* 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 60d02b8..7982a16 100644 --- a/util/superiotool/smsc.c +++ b/util/superiotool/smsc.c @@ -1,15 +1,6 @@ /* 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 c5fa20d..c6bf4fa 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c @@ -1,15 +1,6 @@ /* 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 fb6be38..060102b 100644 --- a/util/superiotool/superiotool.h +++ b/util/superiotool/superiotool.h @@ -1,15 +1,6 @@ /* 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 374d4db..c552328 100644 --- a/util/superiotool/via.c +++ b/util/superiotool/via.c @@ -1,15 +1,6 @@ /* 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 b2ae178..3f8e63a 100644 --- a/util/superiotool/winbond.c +++ b/util/superiotool/winbond.c @@ -1,15 +1,6 @@ /* 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 2213b0e..d7a6a30 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 <stdio.h> #include <string.h> diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc index bf096d3..80e7fa9 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 a3f6dde..4d0e652 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 <stdio.h> #include <stdarg.h> diff --git a/util/uio_usbdebug/drivers/usb/pci_ehci.c b/util/uio_usbdebug/drivers/usb/pci_ehci.c index fc8b3fa..305c339 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 <device/pci_ehci.h>
diff --git a/util/uio_usbdebug/include/device/device.h b/util/uio_usbdebug/include/device/device.h index 51c1c71..2548961 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 e530700..54b0119 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 <stdio.h> #include <sys/stat.h> diff --git a/util/uio_usbdebug/uio_usbdebug_intel.c b/util/uio_usbdebug/uio_usbdebug_intel.c index bf91660..2497f6c 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 <arch/io.h> #include <device/device.h> diff --git a/util/vgabios/Makefile b/util/vgabios/Makefile index 203b07c..dec3c9b 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 b0b354a..754ff75 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 35b69a1..1b336a1 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 2858d1d..49a201f 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 c31cb35..022a1b6 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 2a57f48..3091590 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 <stdio.h> #include <pci/pci.h> diff --git a/util/vgabios/pci-userspace.h b/util/vgabios/pci-userspace.h index 4fe933a..aeeb344 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 1c6192c..7080c50 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 <stdio.h> #include <stdlib.h> diff --git a/util/vgabios/testbios.h b/util/vgabios/testbios.h index ef46d60..c97298c 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 34959fa..25b7eb7 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 0ffcf0a..53a72de 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]
Hello Philipp Hug, Martin Roth, Stefan Reinauer, Christian Walter, ron minnich, Felix Held,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/41177
to look at the new patch set (#2).
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
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 pgeorgi@google.com --- M util/acpi/acpidump-all M util/amdfwtool/amdfwtool.c M util/archive/archive.c M util/archive/archive.h M util/bincfg/bincfg.h M util/bincfg/bincfg.l M util/bincfg/bincfg.y M util/bucts/bucts.c M util/cbfstool/amdcompress.c M util/cbfstool/cbfs-mkpayload.c M util/cbfstool/cbfs-mkstage.c M util/cbfstool/cbfs-payload-linux.c M util/cbfstool/cbfs.h M util/cbfstool/cbfs_image.c M util/cbfstool/cbfs_image.h M util/cbfstool/cbfs_sections.c M util/cbfstool/cbfs_sections.h M util/cbfstool/cbfscomptool.c M util/cbfstool/cbfstool.c M util/cbfstool/coff.h M util/cbfstool/common.c M util/cbfstool/common.h M util/cbfstool/compress.c M util/cbfstool/console/console.h M util/cbfstool/elfheaders.c M util/cbfstool/elfparsing.h M util/cbfstool/fit.c M util/cbfstool/fit.h M util/cbfstool/flashmap_tests.c M util/cbfstool/fmap_from_fmd.c M util/cbfstool/fmap_from_fmd.h M util/cbfstool/fmaptool.c M util/cbfstool/fmd.c M util/cbfstool/fmd.h M util/cbfstool/fmd_parser.y M util/cbfstool/fmd_scanner.l M util/cbfstool/fv.h M util/cbfstool/ifittool.c M util/cbfstool/ifwitool.c M util/cbfstool/linux.h M util/cbfstool/linux_trampoline.S M util/cbfstool/linux_trampoline.h M util/cbfstool/option.h M util/cbfstool/partitioned_file.c M util/cbfstool/partitioned_file.h M util/cbfstool/rmodtool.c M util/cbfstool/rmodule.c M util/cbfstool/rmodule.h M util/cbfstool/xdr.c M util/cbmem/Makefile M util/cbmem/cbmem.c M util/chromeos/crosfirmware.sh M util/chromeos/extract_blobs.sh M util/chromeos/gen_test_hwid.sh M util/crossgcc/Makefile.inc M util/crossgcc/buildgcc M util/docker/Makefile M util/docker/coreboot.org-status/kconfig2html M util/docker/coreboot.org-status/run.sh M util/dtd_parser/dtd_parser.py M util/ectool/Makefile M util/find_usbdebug/find_usbdebug.sh M util/fuzz-tests/jpeg-test.c M util/genbuild_h/genbuild_h.sh M util/gitconfig/gitconfig.sh M util/gitconfig/pre-commit M util/ifdtool/Makefile M util/ifdtool/ifdtool.c M util/ifdtool/ifdtool.h M util/intelmetool/intelmetool.c M util/intelmetool/intelmetool.h M util/inteltool/amb.c M util/inteltool/cpu.c M util/inteltool/gfx.c M util/inteltool/gpio.c M util/inteltool/gpio_groups.c M util/inteltool/inteltool.c M util/inteltool/inteltool.h M util/inteltool/lpc.c M util/inteltool/memory.c M util/inteltool/pcie.c M util/inteltool/pcr.c M util/inteltool/pcr.h M util/inteltool/powermgt.c M util/inteltool/rootcmplx.c M util/intelvbttool/Makefile M util/intelvbttool/intelvbttool.c M util/kbc1126/kbc1126_ec_dump.c M util/kbc1126/kbc1126_ec_insert.c M util/kconfig/toada.c M util/lint/checkpatch_json.py M util/lint/kconfig_lint M util/lint/lint M util/lint/lint-000-license-headers M util/lint/lint-001-no-global-config-in-romstage M util/lint/lint-007-checkpatch M util/lint/lint-008-kconfig M util/lint/lint-014-qualified-types M util/lint/lint-extended-007-checkpatch M util/lint/lint-extended-015-final-newlines M util/lint/lint-stable-003-whitespace M util/lint/lint-stable-004-style-labels M util/lint/lint-stable-008-kconfig M util/lint/lint-stable-009-old-licenses M util/lint/lint-stable-010-asm-syntax M util/lint/lint-stable-016-non-ascii M util/lint/lint-stable-017-configs M util/lint/lint-stable-018-symlinks M util/lint/lint-stable-019-header-files M util/lint/lint-stable-021-coreboot-lowercase M util/lint/lint-stable-022-clang-format M util/lint/lint-stable-023-filenames M util/mainboard/google/hatch/template/Makefile.inc M util/mainboard/google/volteer/template/Makefile.inc M util/mainboard/google/volteer/template/include/variant/ec.h M util/mainboard/google/zork/template/Makefile.inc M util/mma/mma_get_result.sh M util/mma/mma_setup_test.sh M util/mtkheader/gen-bl-img.py M util/nvramtool/Makefile M util/nvramtool/Makefile.inc M util/nvramtool/cbfs.c M util/pmh7tool/Makefile M util/pmh7tool/pmh7tool.c M util/pmh7tool/pmh7tool.h M util/post/post.c M util/release/genrelnotes M util/release/gerrit_stats.pl M util/riscv/sifive-gpt.py M util/sconfig/main.c M util/sconfig/sconfig.h M util/sconfig/sconfig.l M util/sconfig/sconfig.tab.c_shipped M util/sconfig/sconfig.y M util/scripts/cross-repo-cherrypick M util/scripts/decode_spd.sh M util/scripts/dts-to-fmd.sh M util/scripts/gerrit-rebase M util/scripts/maintainers.go M util/scripts/update_submodules M util/showdevicetree/showdt.c M util/superiotool/ali.c M util/superiotool/amd.c M util/superiotool/aspeed.c M util/superiotool/exar.c M util/superiotool/fintek.c M util/superiotool/infineon.c M util/superiotool/ite.c M util/superiotool/nsc.c M util/superiotool/nuvoton.c M util/superiotool/pci.c M util/superiotool/serverengines.c M util/superiotool/smsc.c M util/superiotool/superiotool.c M util/superiotool/superiotool.h M util/superiotool/via.c M util/superiotool/winbond.c M util/supermicro/smcbiosinfo/smcbiosinfo.c M util/testing/Makefile.inc M util/uio_usbdebug/console/printk.c M util/uio_usbdebug/drivers/usb/pci_ehci.c M util/uio_usbdebug/include/device/device.h M util/uio_usbdebug/uio_usbdebug.c M util/uio_usbdebug/uio_usbdebug_intel.c M util/vgabios/Makefile M util/vgabios/include/arch/byteorder.h M util/vgabios/include/config.h M util/vgabios/include/console/console.h M util/vgabios/include/stdtypes.h M util/vgabios/pci-userspace.c M util/vgabios/pci-userspace.h M util/vgabios/testbios.c M util/vgabios/testbios.h M util/x86/x86_page_tables.go M util/xcompile/xcompile 175 files changed, 200 insertions(+), 1,697 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/41177/2
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
Patch Set 2: Code-Review+2
Maxim Polyakov has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/41177/2/util/superiotool/amd.c File util/superiotool/amd.c:
https://review.coreboot.org/c/coreboot/+/41177/2/util/superiotool/amd.c@2 PS2, Line 2: /* : * /* not nice
Hello build bot (Jenkins), Philipp Hug, Martin Roth, Stefan Reinauer, Christian Walter, ron minnich, HAOUAS Elyes, Felix Held,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/41177
to look at the new patch set (#3).
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
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 pgeorgi@google.com --- M util/acpi/acpidump-all M util/amdfwtool/amdfwtool.c M util/archive/archive.c M util/archive/archive.h M util/bincfg/bincfg.h M util/bincfg/bincfg.l M util/bincfg/bincfg.y M util/bucts/bucts.c M util/cbfstool/amdcompress.c M util/cbfstool/cbfs-mkpayload.c M util/cbfstool/cbfs-mkstage.c M util/cbfstool/cbfs-payload-linux.c M util/cbfstool/cbfs.h M util/cbfstool/cbfs_image.c M util/cbfstool/cbfs_image.h M util/cbfstool/cbfs_sections.c M util/cbfstool/cbfs_sections.h M util/cbfstool/cbfscomptool.c M util/cbfstool/cbfstool.c M util/cbfstool/coff.h M util/cbfstool/common.c M util/cbfstool/common.h M util/cbfstool/compress.c M util/cbfstool/console/console.h M util/cbfstool/elfheaders.c M util/cbfstool/elfparsing.h M util/cbfstool/fit.c M util/cbfstool/fit.h M util/cbfstool/flashmap_tests.c M util/cbfstool/fmap_from_fmd.c M util/cbfstool/fmap_from_fmd.h M util/cbfstool/fmaptool.c M util/cbfstool/fmd.c M util/cbfstool/fmd.h M util/cbfstool/fmd_parser.y M util/cbfstool/fmd_scanner.l M util/cbfstool/fv.h M util/cbfstool/ifittool.c M util/cbfstool/ifwitool.c M util/cbfstool/linux.h M util/cbfstool/linux_trampoline.S M util/cbfstool/linux_trampoline.h M util/cbfstool/option.h M util/cbfstool/partitioned_file.c M util/cbfstool/partitioned_file.h M util/cbfstool/rmodtool.c M util/cbfstool/rmodule.c M util/cbfstool/rmodule.h M util/cbfstool/xdr.c M util/cbmem/Makefile M util/cbmem/cbmem.c M util/chromeos/crosfirmware.sh M util/chromeos/extract_blobs.sh M util/chromeos/gen_test_hwid.sh M util/crossgcc/Makefile.inc M util/crossgcc/buildgcc M util/docker/Makefile M util/docker/coreboot.org-status/kconfig2html M util/docker/coreboot.org-status/run.sh M util/dtd_parser/dtd_parser.py M util/ectool/Makefile M util/find_usbdebug/find_usbdebug.sh M util/fuzz-tests/jpeg-test.c M util/genbuild_h/genbuild_h.sh M util/gitconfig/gitconfig.sh M util/gitconfig/pre-commit M util/ifdtool/Makefile M util/ifdtool/ifdtool.c M util/ifdtool/ifdtool.h M util/intelmetool/intelmetool.c M util/intelmetool/intelmetool.h M util/inteltool/amb.c M util/inteltool/cpu.c M util/inteltool/gfx.c M util/inteltool/gpio.c M util/inteltool/gpio_groups.c M util/inteltool/inteltool.c M util/inteltool/inteltool.h M util/inteltool/lpc.c M util/inteltool/memory.c M util/inteltool/pcie.c M util/inteltool/pcr.c M util/inteltool/pcr.h M util/inteltool/powermgt.c M util/inteltool/rootcmplx.c M util/intelvbttool/Makefile M util/intelvbttool/intelvbttool.c M util/kbc1126/kbc1126_ec_dump.c M util/kbc1126/kbc1126_ec_insert.c M util/kconfig/toada.c M util/lint/checkpatch_json.py M util/lint/kconfig_lint M util/lint/lint M util/lint/lint-000-license-headers M util/lint/lint-001-no-global-config-in-romstage M util/lint/lint-007-checkpatch M util/lint/lint-008-kconfig M util/lint/lint-014-qualified-types M util/lint/lint-extended-007-checkpatch M util/lint/lint-extended-015-final-newlines M util/lint/lint-stable-003-whitespace M util/lint/lint-stable-004-style-labels M util/lint/lint-stable-008-kconfig M util/lint/lint-stable-009-old-licenses M util/lint/lint-stable-010-asm-syntax M util/lint/lint-stable-016-non-ascii M util/lint/lint-stable-017-configs M util/lint/lint-stable-018-symlinks M util/lint/lint-stable-019-header-files M util/lint/lint-stable-021-coreboot-lowercase M util/lint/lint-stable-022-clang-format M util/lint/lint-stable-023-filenames M util/mainboard/google/hatch/template/Makefile.inc M util/mainboard/google/volteer/template/Makefile.inc M util/mainboard/google/volteer/template/include/variant/ec.h M util/mainboard/google/zork/template/Makefile.inc M util/mma/mma_get_result.sh M util/mma/mma_setup_test.sh M util/mtkheader/gen-bl-img.py M util/nvramtool/Makefile M util/nvramtool/Makefile.inc M util/nvramtool/cbfs.c M util/pmh7tool/Makefile M util/pmh7tool/pmh7tool.c M util/pmh7tool/pmh7tool.h M util/post/post.c M util/release/genrelnotes M util/release/gerrit_stats.pl M util/riscv/sifive-gpt.py M util/sconfig/main.c M util/sconfig/sconfig.h M util/sconfig/sconfig.l M util/sconfig/sconfig.tab.c_shipped M util/sconfig/sconfig.y M util/scripts/cross-repo-cherrypick M util/scripts/decode_spd.sh M util/scripts/dts-to-fmd.sh M util/scripts/gerrit-rebase M util/scripts/maintainers.go M util/scripts/update_submodules M util/showdevicetree/showdt.c M util/superiotool/ali.c M util/superiotool/amd.c M util/superiotool/aspeed.c M util/superiotool/exar.c M util/superiotool/fintek.c M util/superiotool/infineon.c M util/superiotool/ite.c M util/superiotool/nsc.c M util/superiotool/nuvoton.c M util/superiotool/pci.c M util/superiotool/serverengines.c M util/superiotool/smsc.c M util/superiotool/superiotool.c M util/superiotool/superiotool.h M util/superiotool/via.c M util/superiotool/winbond.c M util/supermicro/smcbiosinfo/smcbiosinfo.c M util/testing/Makefile.inc M util/uio_usbdebug/console/printk.c M util/uio_usbdebug/drivers/usb/pci_ehci.c M util/uio_usbdebug/include/device/device.h M util/uio_usbdebug/uio_usbdebug.c M util/uio_usbdebug/uio_usbdebug_intel.c M util/vgabios/Makefile M util/vgabios/include/arch/byteorder.h M util/vgabios/include/config.h M util/vgabios/include/console/console.h M util/vgabios/include/stdtypes.h M util/vgabios/pci-userspace.c M util/vgabios/pci-userspace.h M util/vgabios/testbios.c M util/vgabios/testbios.h M util/x86/x86_page_tables.go M util/xcompile/xcompile 175 files changed, 200 insertions(+), 1,698 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/41177/3
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/41177/2/util/superiotool/amd.c File util/superiotool/amd.c:
https://review.coreboot.org/c/coreboot/+/41177/2/util/superiotool/amd.c@2 PS2, Line 2: /* : * /*
not nice
Done
HAOUAS Elyes has uploaded a new patch set (#4) to the change originally created by Patrick Georgi. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
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 pgeorgi@google.com Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M util/acpi/acpidump-all M util/amdfwtool/amdfwtool.c M util/archive/archive.c M util/archive/archive.h M util/bincfg/bincfg.h M util/bincfg/bincfg.l M util/bincfg/bincfg.y M util/bucts/bucts.c M util/cbfstool/amdcompress.c M util/cbfstool/cbfs-mkpayload.c M util/cbfstool/cbfs-mkstage.c M util/cbfstool/cbfs-payload-linux.c M util/cbfstool/cbfs.h M util/cbfstool/cbfs_image.c M util/cbfstool/cbfs_image.h M util/cbfstool/cbfs_sections.c M util/cbfstool/cbfs_sections.h M util/cbfstool/cbfscomptool.c M util/cbfstool/cbfstool.c M util/cbfstool/coff.h M util/cbfstool/common.c M util/cbfstool/common.h M util/cbfstool/compress.c M util/cbfstool/console/console.h M util/cbfstool/elfheaders.c M util/cbfstool/elfparsing.h M util/cbfstool/fit.c M util/cbfstool/fit.h M util/cbfstool/flashmap_tests.c M util/cbfstool/fmap_from_fmd.c M util/cbfstool/fmap_from_fmd.h M util/cbfstool/fmaptool.c M util/cbfstool/fmd.c M util/cbfstool/fmd.h M util/cbfstool/fmd_parser.y M util/cbfstool/fmd_scanner.l M util/cbfstool/fv.h M util/cbfstool/ifittool.c M util/cbfstool/ifwitool.c M util/cbfstool/linux.h M util/cbfstool/linux_trampoline.S M util/cbfstool/linux_trampoline.h M util/cbfstool/option.h M util/cbfstool/partitioned_file.c M util/cbfstool/partitioned_file.h M util/cbfstool/rmodtool.c M util/cbfstool/rmodule.c M util/cbfstool/rmodule.h M util/cbfstool/xdr.c M util/cbmem/Makefile M util/cbmem/cbmem.c M util/chromeos/crosfirmware.sh M util/chromeos/extract_blobs.sh M util/chromeos/gen_test_hwid.sh M util/crossgcc/Makefile.inc M util/crossgcc/buildgcc M util/docker/Makefile M util/docker/coreboot.org-status/kconfig2html M util/docker/coreboot.org-status/run.sh M util/dtd_parser/dtd_parser.py M util/ectool/Makefile M util/find_usbdebug/find_usbdebug.sh M util/fuzz-tests/jpeg-test.c M util/genbuild_h/genbuild_h.sh M util/gitconfig/gitconfig.sh M util/gitconfig/pre-commit M util/ifdtool/Makefile M util/ifdtool/ifdtool.c M util/ifdtool/ifdtool.h M util/intelmetool/intelmetool.c M util/intelmetool/intelmetool.h M util/inteltool/amb.c M util/inteltool/cpu.c M util/inteltool/gfx.c M util/inteltool/gpio.c M util/inteltool/gpio_groups.c M util/inteltool/inteltool.c M util/inteltool/inteltool.h M util/inteltool/lpc.c M util/inteltool/memory.c M util/inteltool/pcie.c M util/inteltool/pcr.c M util/inteltool/pcr.h M util/inteltool/powermgt.c M util/inteltool/rootcmplx.c M util/intelvbttool/Makefile M util/intelvbttool/intelvbttool.c M util/kbc1126/kbc1126_ec_dump.c M util/kbc1126/kbc1126_ec_insert.c M util/kconfig/toada.c M util/lint/checkpatch_json.py M util/lint/kconfig_lint M util/lint/lint M util/lint/lint-000-license-headers M util/lint/lint-001-no-global-config-in-romstage M util/lint/lint-007-checkpatch M util/lint/lint-008-kconfig M util/lint/lint-014-qualified-types M util/lint/lint-extended-007-checkpatch M util/lint/lint-extended-015-final-newlines M util/lint/lint-stable-003-whitespace M util/lint/lint-stable-004-style-labels M util/lint/lint-stable-008-kconfig M util/lint/lint-stable-009-old-licenses M util/lint/lint-stable-010-asm-syntax M util/lint/lint-stable-016-non-ascii M util/lint/lint-stable-017-configs M util/lint/lint-stable-018-symlinks M util/lint/lint-stable-019-header-files M util/lint/lint-stable-021-coreboot-lowercase M util/lint/lint-stable-022-clang-format M util/lint/lint-stable-023-filenames M util/mainboard/google/hatch/template/Makefile.inc M util/mainboard/google/volteer/template/Makefile.inc M util/mainboard/google/volteer/template/include/variant/ec.h M util/mainboard/google/zork/template/Makefile.inc M util/mma/mma_get_result.sh M util/mma/mma_setup_test.sh M util/mtkheader/gen-bl-img.py M util/nvramtool/Makefile M util/nvramtool/Makefile.inc M util/nvramtool/cbfs.c M util/pmh7tool/Makefile M util/pmh7tool/pmh7tool.c M util/pmh7tool/pmh7tool.h M util/post/post.c M util/release/genrelnotes M util/release/gerrit_stats.pl M util/riscv/sifive-gpt.py M util/sconfig/main.c M util/sconfig/sconfig.h M util/sconfig/sconfig.l M util/sconfig/sconfig.tab.c_shipped M util/sconfig/sconfig.y M util/scripts/cross-repo-cherrypick M util/scripts/decode_spd.sh M util/scripts/dts-to-fmd.sh M util/scripts/gerrit-rebase M util/scripts/maintainers.go M util/scripts/update_submodules M util/showdevicetree/showdt.c M util/superiotool/ali.c M util/superiotool/amd.c M util/superiotool/aspeed.c M util/superiotool/exar.c M util/superiotool/fintek.c M util/superiotool/infineon.c M util/superiotool/ite.c M util/superiotool/nsc.c M util/superiotool/nuvoton.c M util/superiotool/pci.c M util/superiotool/serverengines.c M util/superiotool/smsc.c M util/superiotool/superiotool.c M util/superiotool/superiotool.h M util/superiotool/via.c M util/superiotool/winbond.c M util/supermicro/smcbiosinfo/smcbiosinfo.c M util/testing/Makefile.inc M util/uio_usbdebug/console/printk.c M util/uio_usbdebug/drivers/usb/pci_ehci.c M util/uio_usbdebug/include/device/device.h M util/uio_usbdebug/uio_usbdebug.c M util/uio_usbdebug/uio_usbdebug_intel.c M util/vgabios/Makefile M util/vgabios/include/arch/byteorder.h M util/vgabios/include/config.h M util/vgabios/include/console/console.h M util/vgabios/include/stdtypes.h M util/vgabios/pci-userspace.c M util/vgabios/pci-userspace.h M util/vgabios/testbios.c M util/vgabios/testbios.h M util/x86/x86_page_tables.go M util/xcompile/xcompile 175 files changed, 200 insertions(+), 1,715 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/41177/4
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
Patch Set 4: Code-Review+2
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
Patch Set 4: Code-Review+2
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/41177 )
Change subject: util/: Replace GPLv2 boiler plate with SPDX header ......................................................................
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 pgeorgi@google.com Signed-off-by: Elyes HAOUAS ehaouas@noos.fr Reviewed-on: https://review.coreboot.org/c/coreboot/+/41177 Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M util/acpi/acpidump-all M util/amdfwtool/amdfwtool.c M util/archive/archive.c M util/archive/archive.h M util/bincfg/bincfg.h M util/bincfg/bincfg.l M util/bincfg/bincfg.y M util/bucts/bucts.c M util/cbfstool/amdcompress.c M util/cbfstool/cbfs-mkpayload.c M util/cbfstool/cbfs-mkstage.c M util/cbfstool/cbfs-payload-linux.c M util/cbfstool/cbfs.h M util/cbfstool/cbfs_image.c M util/cbfstool/cbfs_image.h M util/cbfstool/cbfs_sections.c M util/cbfstool/cbfs_sections.h M util/cbfstool/cbfscomptool.c M util/cbfstool/cbfstool.c M util/cbfstool/coff.h M util/cbfstool/common.c M util/cbfstool/common.h M util/cbfstool/compress.c M util/cbfstool/console/console.h M util/cbfstool/elfheaders.c M util/cbfstool/elfparsing.h M util/cbfstool/fit.c M util/cbfstool/fit.h M util/cbfstool/flashmap_tests.c M util/cbfstool/fmap_from_fmd.c M util/cbfstool/fmap_from_fmd.h M util/cbfstool/fmaptool.c M util/cbfstool/fmd.c M util/cbfstool/fmd.h M util/cbfstool/fmd_parser.y M util/cbfstool/fmd_scanner.l M util/cbfstool/fv.h M util/cbfstool/ifittool.c M util/cbfstool/ifwitool.c M util/cbfstool/linux.h M util/cbfstool/linux_trampoline.S M util/cbfstool/linux_trampoline.h M util/cbfstool/option.h M util/cbfstool/partitioned_file.c M util/cbfstool/partitioned_file.h M util/cbfstool/rmodtool.c M util/cbfstool/rmodule.c M util/cbfstool/rmodule.h M util/cbfstool/xdr.c M util/cbmem/Makefile M util/cbmem/cbmem.c M util/chromeos/crosfirmware.sh M util/chromeos/extract_blobs.sh M util/chromeos/gen_test_hwid.sh M util/crossgcc/Makefile.inc M util/crossgcc/buildgcc M util/docker/Makefile M util/docker/coreboot.org-status/kconfig2html M util/docker/coreboot.org-status/run.sh M util/dtd_parser/dtd_parser.py M util/ectool/Makefile M util/find_usbdebug/find_usbdebug.sh M util/fuzz-tests/jpeg-test.c M util/genbuild_h/genbuild_h.sh M util/gitconfig/gitconfig.sh M util/gitconfig/pre-commit M util/ifdtool/Makefile M util/ifdtool/ifdtool.c M util/ifdtool/ifdtool.h M util/intelmetool/intelmetool.c M util/intelmetool/intelmetool.h M util/inteltool/amb.c M util/inteltool/cpu.c M util/inteltool/gfx.c M util/inteltool/gpio.c M util/inteltool/gpio_groups.c M util/inteltool/inteltool.c M util/inteltool/inteltool.h M util/inteltool/lpc.c M util/inteltool/memory.c M util/inteltool/pcie.c M util/inteltool/pcr.c M util/inteltool/pcr.h M util/inteltool/powermgt.c M util/inteltool/rootcmplx.c M util/intelvbttool/Makefile M util/intelvbttool/intelvbttool.c M util/kbc1126/kbc1126_ec_dump.c M util/kbc1126/kbc1126_ec_insert.c M util/kconfig/toada.c M util/lint/checkpatch_json.py M util/lint/kconfig_lint M util/lint/lint M util/lint/lint-000-license-headers M util/lint/lint-001-no-global-config-in-romstage M util/lint/lint-007-checkpatch M util/lint/lint-008-kconfig M util/lint/lint-014-qualified-types M util/lint/lint-extended-007-checkpatch M util/lint/lint-extended-015-final-newlines M util/lint/lint-stable-003-whitespace M util/lint/lint-stable-004-style-labels M util/lint/lint-stable-008-kconfig M util/lint/lint-stable-009-old-licenses M util/lint/lint-stable-010-asm-syntax M util/lint/lint-stable-016-non-ascii M util/lint/lint-stable-017-configs M util/lint/lint-stable-018-symlinks M util/lint/lint-stable-019-header-files M util/lint/lint-stable-021-coreboot-lowercase M util/lint/lint-stable-022-clang-format M util/lint/lint-stable-023-filenames M util/mainboard/google/hatch/template/Makefile.inc M util/mainboard/google/volteer/template/Makefile.inc M util/mainboard/google/volteer/template/include/variant/ec.h M util/mainboard/google/zork/template/Makefile.inc M util/mma/mma_get_result.sh M util/mma/mma_setup_test.sh M util/mtkheader/gen-bl-img.py M util/nvramtool/Makefile M util/nvramtool/Makefile.inc M util/nvramtool/cbfs.c M util/pmh7tool/Makefile M util/pmh7tool/pmh7tool.c M util/pmh7tool/pmh7tool.h M util/post/post.c M util/release/genrelnotes M util/release/gerrit_stats.pl M util/riscv/sifive-gpt.py M util/sconfig/main.c M util/sconfig/sconfig.h M util/sconfig/sconfig.l M util/sconfig/sconfig.tab.c_shipped M util/sconfig/sconfig.y M util/scripts/cross-repo-cherrypick M util/scripts/decode_spd.sh M util/scripts/dts-to-fmd.sh M util/scripts/gerrit-rebase M util/scripts/maintainers.go M util/scripts/update_submodules M util/showdevicetree/showdt.c M util/superiotool/ali.c M util/superiotool/amd.c M util/superiotool/aspeed.c M util/superiotool/exar.c M util/superiotool/fintek.c M util/superiotool/infineon.c M util/superiotool/ite.c M util/superiotool/nsc.c M util/superiotool/nuvoton.c M util/superiotool/pci.c M util/superiotool/serverengines.c M util/superiotool/smsc.c M util/superiotool/superiotool.c M util/superiotool/superiotool.h M util/superiotool/via.c M util/superiotool/winbond.c M util/supermicro/smcbiosinfo/smcbiosinfo.c M util/testing/Makefile.inc M util/uio_usbdebug/console/printk.c M util/uio_usbdebug/drivers/usb/pci_ehci.c M util/uio_usbdebug/include/device/device.h M util/uio_usbdebug/uio_usbdebug.c M util/uio_usbdebug/uio_usbdebug_intel.c M util/vgabios/Makefile M util/vgabios/include/arch/byteorder.h M util/vgabios/include/config.h M util/vgabios/include/console/console.h M util/vgabios/include/stdtypes.h M util/vgabios/pci-userspace.c M util/vgabios/pci-userspace.h M util/vgabios/testbios.c M util/vgabios/testbios.h M util/x86/x86_page_tables.go M util/xcompile/xcompile 175 files changed, 200 insertions(+), 1,715 deletions(-)
Approvals: build bot (Jenkins): Verified Patrick Georgi: Looks good to me, approved HAOUAS Elyes: Looks good to me, approved
diff --git a/util/acpi/acpidump-all b/util/acpi/acpidump-all index 29bf254..c42ee4a 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 bb4266d..e344852 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 384a980..82a2f390 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 <endian.h> diff --git a/util/archive/archive.h b/util/archive/archive.h index c7fe53f..c726bb7 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 1f2d270..c3eec10 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 5f9a2c9..ca93547 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 <stdio.h> diff --git a/util/bincfg/bincfg.y b/util/bincfg/bincfg.y index 5c65d75..0aaf13a 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 <stdio.h> diff --git a/util/bucts/bucts.c b/util/bucts/bucts.c index f932e5b..a89456c 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 <getopt.h> #include <stdio.h> diff --git a/util/cbfstool/amdcompress.c b/util/cbfstool/amdcompress.c index a42cfc2..b4e10a2 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfs-mkpayload.c b/util/cbfstool/cbfs-mkpayload.c index c063190..86aa8e5 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfs-mkstage.c b/util/cbfstool/cbfs-mkstage.c index 3f6b026..bfdffbf 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 <inttypes.h> #include <stdio.h> diff --git a/util/cbfstool/cbfs-payload-linux.c b/util/cbfstool/cbfs-payload-linux.c index 2b5a4b9..706f3a0 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index 11e80c4..421f0bc 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 a0b2a82..a042f0d 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 <inttypes.h> #include <libgen.h> diff --git a/util/cbfstool/cbfs_image.h b/util/cbfstool/cbfs_image.h index fa460f1..c57a153 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 c5f016f..a8560dc 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 c968a68..d7b0173 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 b50d4ef..3ea87ad 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 1421c8e..4ec8c90 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/coff.h b/util/cbfstool/coff.h index da0ea17..1035e84 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 2de67dc..e2ed38f 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index 94c1a98..7dbc1f5 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 b92da0e..f926db5 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 <string.h> #include <stdio.h> diff --git a/util/cbfstool/console/console.h b/util/cbfstool/console/console.h index 9c393f1..e2cf277 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 216e277..3a53735 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/elfparsing.h b/util/cbfstool/elfparsing.h index 1cc6eb2..d207f45 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 f358720..44573ca 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 <inttypes.h> #include <stdint.h> diff --git a/util/cbfstool/fit.h b/util/cbfstool/fit.h index feec0cf..d900cf5 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 d6483db..0ed3fc9 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 1773050..051914d 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 8464aa5..cb727e7 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 3b10f79..aace5ae 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 5d990ca..f699745 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 8a9e151..8dfcb3c 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 b10835e..a29c9d6 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 525fe6f..9d05c80 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 8a6031d..bf4284e 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 3a9c37e..7e99d4f 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/ifwitool.c b/util/cbfstool/ifwitool.c index 591f588..8eda4c7 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 <commonlib/endian.h> #include <getopt.h> diff --git a/util/cbfstool/linux.h b/util/cbfstool/linux.h index c8281f7..fcf77a5 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 fd21475..f1619cf 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 dcdcf08..af77d7c 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 1342383..c49bf57 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 917341c..b6d4f1b 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 75d51e0..24c267e 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 90af3af5..c4256e8 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbfstool/rmodule.c b/util/cbfstool/rmodule.c index 800a85b..429bbf3 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 <inttypes.h> #include <stdio.h> diff --git a/util/cbfstool/rmodule.h b/util/cbfstool/rmodule.h index 7b29194..a62562b 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 d7bcb32..6a83bee 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 <stdio.h> #include <stdlib.h> diff --git a/util/cbmem/Makefile b/util/cbmem/Makefile index 5cc55a3..f0f474e 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 54642da..f493585 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 <inttypes.h> #include <stdio.h> diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh index 0dcb449..40cef3a 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 ca5c932..9aa7baa 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 6e7cdee..21aed18 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 c6e468b..a078e00 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 2e35462..8770e02 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 c3b8fd6..6d320e1 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 250b345..3c1efc1 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 8f48f87..46cebbc 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 d00d521..4f4d290 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 c2ba763..75504c7 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 28d02ad..ec81dd3 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 82d6d5c..cdd93e9 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 <stdlib.h> #include <stdio.h> diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index e770425..bdd962c 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 e287658..f86b2b4 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 2dcdcb1..3b04b59 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 8ebc667..d70080d 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 08a65b3..fcc760e 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 <unistd.h> #include <stdlib.h> diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index 0b81260..5af98cf 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 <stdint.h> #include <stdbool.h> diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c index 5d85238..426fa97 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 <stdio.h> #include <inttypes.h> diff --git a/util/intelmetool/intelmetool.h b/util/intelmetool/intelmetool.h index f3dbcee..06df5f7 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 67b5d8f..961c0ab 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 <stddef.h> #include <stdio.h> diff --git a/util/inteltool/cpu.c b/util/inteltool/cpu.c index f142455..284e90b 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 <fcntl.h> #include <unistd.h> diff --git a/util/inteltool/gfx.c b/util/inteltool/gfx.c index e19f58b..bd85fae 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/gpio.c b/util/inteltool/gpio.c index 6928764..911ec3c 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 <stdio.h> #include "inteltool.h" diff --git a/util/inteltool/gpio_groups.c b/util/inteltool/gpio_groups.c index 6f65f6d..4d34160 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index 12f8c6a..04e05dd 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/inteltool.h b/util/inteltool/inteltool.h index ba46887..b314fe4 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 068ad03..2d3c91c 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/memory.c b/util/inteltool/memory.c index 59b94ff..1bd127b 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 <stdio.h> diff --git a/util/inteltool/pcie.c b/util/inteltool/pcie.c index 837afdd..e5828cc 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/pcr.c b/util/inteltool/pcr.c index 231a61d..c520518 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/pcr.h b/util/inteltool/pcr.h index 69826c3..a84cd71 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 a7a2035..2f44e1d 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 <stdio.h> #include <stdlib.h> diff --git a/util/inteltool/rootcmplx.c b/util/inteltool/rootcmplx.c index 6758c66..490897f 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 <stdio.h> #include <stdlib.h> diff --git a/util/intelvbttool/Makefile b/util/intelvbttool/Makefile index 34f4254..853ac33 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 b98d6e4..7d23c86 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 <stdio.h> #include <sys/mman.h> diff --git a/util/kbc1126/kbc1126_ec_dump.c b/util/kbc1126/kbc1126_ec_dump.c index a96464a..f1aaf21 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 <assert.h> #include <stdio.h> diff --git a/util/kbc1126/kbc1126_ec_insert.c b/util/kbc1126/kbc1126_ec_insert.c index cc86b77..92a2505 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 <stdio.h> #include <stdlib.h> diff --git a/util/kconfig/toada.c b/util/kconfig/toada.c index 9db4dc7..1717fd0 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 <ctype.h> #include <stdio.h> diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py index 827d2f5..7da213c 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 bdf9b8b..cd4c9a2 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 fcce45f..1420b41 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 080e6de..05476e8 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 29c9db1..79293eb 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 77c3907..a56c62b 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 79f7146..948031a 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 7c0409c..4a56dd6 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 80c1af5..aa16caf 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 4e72995..67aa27e 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 7943fcc..1710083 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 c952b91..21aa69d 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 778a7a5..34dec46 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 369d393..1835a35 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 d532c5d..5f02ff5 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 a9967ca..5bbafbb 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 01d32b1..1221672 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 eddcb05..c9aa356 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 6940227..8114931 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 6c6a56b..f9444ce 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 fb9388b..439af55 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 6332d2e..b864ab9 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 38cf728..c444209 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 38cf728..c444209 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 e6c68af..55314d3 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 38cf728..c444209 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 890ee74..48f5360 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 a53905b..9680d2e 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 656b976..473d2a4 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 c210234..25962ef 100644 --- a/util/nvramtool/Makefile +++ b/util/nvramtool/Makefile @@ -4,15 +4,7 @@ ## (C) 2005-2008 coresystems GmbH ## written by Stefan Reinauer stepan@coresystems.de ## -## 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 6974289..00e5efa 100644 --- a/util/nvramtool/Makefile.inc +++ b/util/nvramtool/Makefile.inc @@ -5,15 +5,7 @@ ## written by Stefan Reinauer stepan@coresystems.de ## (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 86b5f59..7677633 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 <winsock.h> diff --git a/util/pmh7tool/Makefile b/util/pmh7tool/Makefile index 8572e00..9b3921a 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 908abf3..dc9df2d 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 <stdio.h> #include <stdlib.h> diff --git a/util/pmh7tool/pmh7tool.h b/util/pmh7tool/pmh7tool.h index 34ccbc9..54fdaaf 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 ef76916..8578d04 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 <errno.h> #include <limits.h> diff --git a/util/release/genrelnotes b/util/release/genrelnotes index e972b40..26cf280 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 9e2e71a..e21877f 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 c651f02..e3d7ceb 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 036c59c..b0c5338 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 <ctype.h> /* 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 9f6e01c..a960b7f 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 <stdio.h> #include <stdlib.h> diff --git a/util/sconfig/sconfig.l b/util/sconfig/sconfig.l index 0c30d2c..9fd0cec 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 f0233a5..fb7e3f7 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 ef3e160..597e309 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 1f1931b..3fbc46f 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 9ab9fa3..8ce28af 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 cff44e0..5c37726 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 8374913..9e4c791 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 34841b3..459c030 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 cf0bdbd..993f58e 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 d8a5e62..961a69d 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 <stdio.h> /* 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 c1344d9..0442062 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 6a379cb..1831b1f 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 977e181..4e9d684 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 27060f4..430d6ba 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 48cb890..1402d48 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 8e73d33..b11db76 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 9d9e0e4..00eceed 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 444267d..9159876 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 c00ef49..e6dc9f7 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 1e0c9c1..0ca2887 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 c24cecf..f2ac9c5 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 60d02b8..3a5147f 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 c5fa20d..e93e926 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 fb6be38..74e9aa8 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 374d4db..8853462 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 b2ae178..fe5bbad 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 2213b0e..d7a6a30 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 <stdio.h> #include <string.h> diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc index bf096d3..80e7fa9 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 a3f6dde..4d0e652 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 <stdio.h> #include <stdarg.h> diff --git a/util/uio_usbdebug/drivers/usb/pci_ehci.c b/util/uio_usbdebug/drivers/usb/pci_ehci.c index fc8b3fa..305c339 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 <device/pci_ehci.h>
diff --git a/util/uio_usbdebug/include/device/device.h b/util/uio_usbdebug/include/device/device.h index 51c1c71..2548961 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 e530700..54b0119 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 <stdio.h> #include <sys/stat.h> diff --git a/util/uio_usbdebug/uio_usbdebug_intel.c b/util/uio_usbdebug/uio_usbdebug_intel.c index bf91660..2497f6c 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 <arch/io.h> #include <device/device.h> diff --git a/util/vgabios/Makefile b/util/vgabios/Makefile index 203b07c..dec3c9b 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 b0b354a..754ff75 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 35b69a1..1b336a1 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 2858d1d..49a201f 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 c31cb35..022a1b6 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 2a57f48..3091590 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 <stdio.h> #include <pci/pci.h> diff --git a/util/vgabios/pci-userspace.h b/util/vgabios/pci-userspace.h index 4fe933a..aeeb344 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 1c6192c..7080c50 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 <stdio.h> #include <stdlib.h> diff --git a/util/vgabios/testbios.h b/util/vgabios/testbios.h index ef46d60..c97298c 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 34959fa..25b7eb7 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 0ffcf0a..53a72de 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]