From ac9590395e0404e1fa1199643a1b28b228f992e5 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 5 May 2020 22:49:26 +0200 Subject: treewide: replace GPLv2 long form headers with SPDX header This replaces GPLv2-or-later and GPLv2-only long form text with the short SPDX identifiers. Commands used: perl -i -p0e 's|/\*[*\n\t ]*This program is free software[:;].*you.*can.*redistribute.*it.*and/or.*modify.*it.*under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*as.*published.*by.*the.*Free.*Software.*Foundation[;,].*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.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-or-later */|s' $(cat filelist) perl -i -p0e 's|/\*[*\n\t ]*This program is free software[:;].*you.*can.*redistribute.*it.*and/or.*modify.*it.*under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*as.*published.*by.*the.*Free.*Software.*Foundation[;,].*version.*2.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist) perl -i -p0e 's|/\*[*\n\t ]*This program is free software[:;].*you.*can.*redistribute.*it.*and/or.*modify.*it.*under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*version.*2.*as.*published.*by.*the.*Free.*Software.*Foundation[.;,].+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist) perl -i -p0e 's|/\*[*\n\t ]*This software is licensed under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*version.*2.*as.*published.*by.*the.*Free.*Software.*Foundation,.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist) Change-Id: I7a746088a35633c11fc7ebe86006e96458a1abf8 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/41066 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks Reviewed-by: HAOUAS Elyes --- util/msrtool/cs5536.c | 11 +---------- util/msrtool/darwin.c | 12 +----------- util/msrtool/freebsd.c | 12 +----------- util/msrtool/geodegx2.c | 12 +----------- util/msrtool/geodelx.c | 12 +----------- util/msrtool/intel_atom.c | 12 +----------- util/msrtool/intel_core1.c | 12 +----------- util/msrtool/intel_core2_early.c | 12 +----------- util/msrtool/intel_core2_later.c | 12 +----------- util/msrtool/intel_nehalem.c | 12 +----------- util/msrtool/intel_pentium3.c | 12 +----------- util/msrtool/intel_pentium3_early.c | 12 +----------- util/msrtool/intel_pentium4_early.c | 12 +----------- util/msrtool/intel_pentium4_later.c | 12 +----------- util/msrtool/intel_pentium_d.c | 12 +----------- util/msrtool/k8.c | 12 +----------- util/msrtool/linux.c | 12 +----------- util/msrtool/msrtool.c | 12 +----------- util/msrtool/msrtool.h | 12 +----------- util/msrtool/msrutils.c | 12 +----------- util/msrtool/sys.c | 12 +----------- util/msrtool/via_c7.c | 12 +----------- 22 files changed, 22 insertions(+), 241 deletions(-) (limited to 'util/msrtool') diff --git a/util/msrtool/cs5536.c b/util/msrtool/cs5536.c index 3d035000a36b..ce28c4d65523 100644 --- a/util/msrtool/cs5536.c +++ b/util/msrtool/cs5536.c @@ -1,14 +1,5 @@ /* This file is part of msrtool. */ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/darwin.c b/util/msrtool/darwin.c index efa37fce79d9..a362086ffda5 100644 --- a/util/msrtool/darwin.c +++ b/util/msrtool/darwin.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/msrtool/freebsd.c b/util/msrtool/freebsd.c index 40cd9a16d706..1ea4eef1ba1e 100644 --- a/util/msrtool/freebsd.c +++ b/util/msrtool/freebsd.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/msrtool/geodegx2.c b/util/msrtool/geodegx2.c index d6a845fc125b..6f6b982430be 100644 --- a/util/msrtool/geodegx2.c +++ b/util/msrtool/geodegx2.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/geodelx.c b/util/msrtool/geodelx.c index bac8ec1a8223..aa6f8a7efdc2 100644 --- a/util/msrtool/geodelx.c +++ b/util/msrtool/geodelx.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_atom.c b/util/msrtool/intel_atom.c index ac63a2615f8a..3e58d949aa5c 100644 --- a/util/msrtool/intel_atom.c +++ b/util/msrtool/intel_atom.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_core1.c b/util/msrtool/intel_core1.c index fcb3a916594d..7f8717ee5eb9 100644 --- a/util/msrtool/intel_core1.c +++ b/util/msrtool/intel_core1.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_core2_early.c b/util/msrtool/intel_core2_early.c index ea35ac4b047b..4d265311ba36 100644 --- a/util/msrtool/intel_core2_early.c +++ b/util/msrtool/intel_core2_early.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_core2_later.c b/util/msrtool/intel_core2_later.c index 7e1cdfd9c6cd..ef7cfc5dbfa7 100644 --- a/util/msrtool/intel_core2_later.c +++ b/util/msrtool/intel_core2_later.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_nehalem.c b/util/msrtool/intel_nehalem.c index 3f472e8f6ff9..21d8f310e34c 100644 --- a/util/msrtool/intel_nehalem.c +++ b/util/msrtool/intel_nehalem.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_pentium3.c b/util/msrtool/intel_pentium3.c index aedc4402cfe3..d51d46c742f0 100644 --- a/util/msrtool/intel_pentium3.c +++ b/util/msrtool/intel_pentium3.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_pentium3_early.c b/util/msrtool/intel_pentium3_early.c index 676f134c412b..50cfa24ab721 100644 --- a/util/msrtool/intel_pentium3_early.c +++ b/util/msrtool/intel_pentium3_early.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_pentium4_early.c b/util/msrtool/intel_pentium4_early.c index 249cac813643..ac5a1b0bcb8c 100644 --- a/util/msrtool/intel_pentium4_early.c +++ b/util/msrtool/intel_pentium4_early.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_pentium4_later.c b/util/msrtool/intel_pentium4_later.c index 0b51707d1925..0795ed2a9eb9 100644 --- a/util/msrtool/intel_pentium4_later.c +++ b/util/msrtool/intel_pentium4_later.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/intel_pentium_d.c b/util/msrtool/intel_pentium_d.c index 28b544bb0125..f58e5d66fd72 100644 --- a/util/msrtool/intel_pentium_d.c +++ b/util/msrtool/intel_pentium_d.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/k8.c b/util/msrtool/k8.c index 96aa6c5dfeb0..405945d96389 100644 --- a/util/msrtool/k8.c +++ b/util/msrtool/k8.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" diff --git a/util/msrtool/linux.c b/util/msrtool/linux.c index ccf8dbd0e050..428f14030ce0 100644 --- a/util/msrtool/linux.c +++ b/util/msrtool/linux.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/msrtool/msrtool.c b/util/msrtool/msrtool.c index 13586d8c7899..b4d721a28f81 100644 --- a/util/msrtool/msrtool.c +++ b/util/msrtool/msrtool.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/msrtool/msrtool.h b/util/msrtool/msrtool.h index f6ba66829b15..d1f2eb9a8271 100644 --- a/util/msrtool/msrtool.h +++ b/util/msrtool/msrtool.h @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef MSRTOOL_H #define MSRTOOL_H diff --git a/util/msrtool/msrutils.c b/util/msrtool/msrutils.c index 82199a8f8066..58330ff98f70 100644 --- a/util/msrtool/msrutils.c +++ b/util/msrtool/msrutils.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include #include diff --git a/util/msrtool/sys.c b/util/msrtool/sys.c index f79391d4346b..f32246ed3492 100644 --- a/util/msrtool/sys.c +++ b/util/msrtool/sys.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include diff --git a/util/msrtool/via_c7.c b/util/msrtool/via_c7.c index 99397981514c..779144ee15df 100644 --- a/util/msrtool/via_c7.c +++ b/util/msrtool/via_c7.c @@ -1,15 +1,5 @@ /* This file is part of msrtool. */ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "msrtool.h" -- cgit v1.2.3