mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] Add SPDX License identifier for files originating from LiMon
@ 2023-07-27 10:10 Sascha Hauer
  2023-07-27 10:10 ` [PATCH 2/2] test/self/mmu.c: Fix typo in SPDX License Identifier Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2023-07-27 10:10 UTC (permalink / raw)
  To: Barebox List; +Cc: Oliver Fendt

The header of some LiMon imported files reference a License file which
does not exist in barebox.
These files were originally licensed under GPLv2 as can be seen in this
U-Boot commit:

| commit 2ea9103924048637d28baf0f7b1dd410f6704c32
| Author: Wolfgang Denk <wd@denx.de>
| Date:   Tue Sep 30 10:44:01 2014 +0200
|
|     SPDX License cleanup for LiMon imported files
|
|     A number of network related files were imported from the LiMon
|     project; these contain a somewhat unclear license statement:
|
|             Copyright 1994 - 2000 Neil Russell.
|             (See License)
|
|     I analyzed the source code of LiMon v1.4.2 which was used for this
|     import.  It does not contain any "License" file, but the top level
|     directory contains a file "COPYING", which turns out to be GPL v2
|     of June 1991.  So it is legitimate to conclude that the LiMon derived
|     files are also to be released under GPLv2.  Mark them as such.

Based on this commit add the correct SPDX License identifier. While at it
drop the reference to the non-existing License file and also remove the
long unmaintained file history.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported-by: Oliver Fendt <ofendt@googlemail.com>
---
 include/net.h | 11 ++++-------
 net/dhcp.c    | 13 +++++++------
 2 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/include/net.h b/include/net.h
index b7cbab7d72..b5a5e1b616 100644
--- a/include/net.h
+++ b/include/net.h
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+// SPDX-FileCopyrightText: 1994-2000 Neil Russell
 /*
- *	LiMon Monitor (LiMon) - Network.
+ * net.h - barebox networking support
  *
- *	Copyright 1994 - 2000 Neil Russell.
- *	(See License)
- *
- *
- * History
- *	9/16/00	  bor  adapted to TQM823L/STK8xxL board, RARP/TFTP boot added
+ * based on U-Boot (LiMon) code
  */
 
 #ifndef __NET_H__
diff --git a/net/dhcp.c b/net/dhcp.c
index d28c37c693..93738e5a6b 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -1,11 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+// SPDX-FileCopyrightText: 1994, 1995, 2000 Neil Russell
+// SPDX-FileCopyrightText: 2000 Roland Borde
+// SPDX-FileCopyrightText: 2000 Paolo Scaffardi
+// SPDX-FileCopyrightText: 2000-2004 Wolfgang Denk, wd@denx.de
 /*
- *	Based on LiMon - BOOTP.
+ * dhcp.c - barebox dhcp support
  *
- *	Copyright 1994, 1995, 2000 Neil Russell.
- *	(See License)
- *	Copyright 2000 Roland Borde
- *	Copyright 2000 Paolo Scaffardi
- *	Copyright 2000-2004 Wolfgang Denk, wd@denx.de
+ * based on U-Boot (LiMon) code
  */
 
 #include <common.h>
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 2/2] test/self/mmu.c: Fix typo in SPDX License Identifier
  2023-07-27 10:10 [PATCH 1/2] Add SPDX License identifier for files originating from LiMon Sascha Hauer
@ 2023-07-27 10:10 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-07-27 10:10 UTC (permalink / raw)
  To: Barebox List; +Cc: Oliver Fendt

Fix a typo.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported-by: Oliver Fendt <ofendt@googlemail.com>
---
 test/self/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/self/mmu.c b/test/self/mmu.c
index 5e630e708f..4ca10affdd 100644
--- a/test/self/mmu.c
+++ b/test/self/mmu.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0-onl
+// SPDX-License-Identifier: GPL-2.0-only
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-27 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27 10:10 [PATCH 1/2] Add SPDX License identifier for files originating from LiMon Sascha Hauer
2023-07-27 10:10 ` [PATCH 2/2] test/self/mmu.c: Fix typo in SPDX License Identifier Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox