[PATCH 10/30] efi: use SPDX-License-Identifier where appropriate

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Nov 22 00:47:12 PST 2021


Couple of files lack an explicit embedded license or cotnain
boilerplate. Replace with the appropriate SPDX-License-Identifier.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 common/efi/devicepath.c    |  2 ++
 common/efi/guid.c          |  2 ++
 common/efi/payload/image.c | 11 +----------
 common/efi/payload/init.c  | 11 +----------
 include/efi/debug_ll.h     |  1 +
 include/efi/efi-device.h   |  1 +
 include/efi/efi.h          |  1 +
 7 files changed, 9 insertions(+), 20 deletions(-)

diff --git a/common/efi/devicepath.c b/common/efi/devicepath.c
index f17b9294cc1b..6341ca005ba5 100644
--- a/common/efi/devicepath.c
+++ b/common/efi/devicepath.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
 #include <common.h>
 #include <efi.h>
 #include <malloc.h>
diff --git a/common/efi/guid.c b/common/efi/guid.c
index fbe96ecd048c..f1a918f91e19 100644
--- a/common/efi/guid.c
+++ b/common/efi/guid.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
 #include <common.h>
 #include <efi.h>
 
diff --git a/common/efi/payload/image.c b/common/efi/payload/image.c
index 3c55a457eae3..53b444eef60f 100644
--- a/common/efi/payload/image.c
+++ b/common/efi/payload/image.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * image.c - barebox EFI payload support
  *
  * Copyright (c) 2014 Sascha Hauer <s.hauer at pengutronix.de>, Pengutronix
- *
- * 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 WITHANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 #include <clock.h>
diff --git a/common/efi/payload/init.c b/common/efi/payload/init.c
index 88d0bfa939ec..0e672a6b56d2 100644
--- a/common/efi/payload/init.c
+++ b/common/efi/payload/init.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * init.c - barebox EFI payload support
  *
  * Copyright (c) 2014 Sascha Hauer <s.hauer at pengutronix.de>, Pengutronix
- *
- * 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 WITHANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 #include <linux/linkage.h>
diff --git a/include/efi/debug_ll.h b/include/efi/debug_ll.h
index 4ca72de312af..905f1c43cd23 100644
--- a/include/efi/debug_ll.h
+++ b/include/efi/debug_ll.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MACH_DEBUG_LL_H__
 #define __MACH_DEBUG_LL_H__
 
diff --git a/include/efi/efi-device.h b/include/efi/efi-device.h
index 5ec59a8a2ddd..cd8a374c32fe 100644
--- a/include/efi/efi-device.h
+++ b/include/efi/efi-device.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __EFI_EFI_DEVICE_H
 #define __EFI_EFI_DEVICE_H
 
diff --git a/include/efi/efi.h b/include/efi/efi.h
index 648afb9ec5a7..c7679b4b8f28 100644
--- a/include/efi/efi.h
+++ b/include/efi/efi.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MACH_EFI_H
 #define __MACH_EFI_H
 
-- 
2.30.2




More information about the barebox mailing list