summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-04-02 23:48:09 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-04-04 01:14:11 +0000
commitb706ab379f808ca9b15d39c0c81a49ecb768c36d (patch)
tree87c8d18836268066ed77286405f4253a9ae33fe9
parentd61350c403f90ee11c179fece04f68e6c34e1555 (diff)
downloadcoreboot-b706ab379f808ca9b15d39c0c81a49ecb768c36d.tar.xz
src/console: Use SPDX for GPL-2.0-only files
Done with sed and God Lines. Only done for C-like code for now. Change-Id: Ib8a40e5633faf840e19a35bcdc8edc7e7cdd0ad9 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40048 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--src/console/console.c14
-rw-r--r--src/console/die.c15
-rw-r--r--src/console/init.c15
-rw-r--r--src/console/post.c15
-rw-r--r--src/console/printk.c14
-rw-r--r--src/console/vsprintf.c15
-rw-r--r--src/console/vtxprintf.c14
7 files changed, 16 insertions, 86 deletions
diff --git a/src/console/console.c b/src/console/console.c
index a36cb96ed1..e7d74b61b9 100644
--- a/src/console/console.c
+++ b/src/console/console.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; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty 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 is part of the coreboot project. */
#include <console/cbmem_console.h>
#include <console/ne2k.h>
diff --git a/src/console/die.c b/src/console/die.c
index e57c4e4bf2..0d26dfe0c4 100644
--- a/src/console/die.c
+++ b/src/console/die.c
@@ -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-only */
+/* This file is part of the coreboot project. */
#include <console/console.h>
#include <halt.h>
diff --git a/src/console/init.c b/src/console/init.c
index 911dbd0546..80bdb24c4b 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -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-only */
+/* This file is part of the coreboot project. */
#include <commonlib/helpers.h>
#include <console/console.h>
diff --git a/src/console/post.c b/src/console/post.c
index 6265770b37..7d6a8ff028 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -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-only */
+/* This file is part of the coreboot project. */
#include <stdint.h>
#include <console/console.h>
diff --git a/src/console/printk.c b/src/console/printk.c
index 3ef28f32be..bbe028b66e 100644
--- a/src/console/printk.c
+++ b/src/console/printk.c
@@ -1,15 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
/*
- * 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.
- *
* blatantly copied from linux/kernel/printk.c
*/
diff --git a/src/console/vsprintf.c b/src/console/vsprintf.c
index 78bc09f5a7..bdc7244afb 100644
--- a/src/console/vsprintf.c
+++ b/src/console/vsprintf.c
@@ -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-only */
+/* This file is part of the coreboot project. */
#include <console/vtxprintf.h>
#include <string.h>
diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c
index 4045543839..6801a970eb 100644
--- a/src/console/vtxprintf.c
+++ b/src/console/vtxprintf.c
@@ -1,15 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
/*
- * 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.
- *
* vtxprintf.c, originally from linux/lib/vsprintf.c
*/