mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier
@ 2020-11-26 17:55 Ahmad Fatoum
  2020-11-26 17:55 ` [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0 Ahmad Fatoum
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Ahmad Fatoum @ 2020-11-26 17:55 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, ukl, rhi

s/Identifer/Identifier/

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2: no change
---
 arch/arm/dts/at91-sama5d27_giantboard.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/dts/at91-sama5d27_giantboard.dts b/arch/arm/dts/at91-sama5d27_giantboard.dts
index 2ba3ff217101..99fc5a8d4dd3 100644
--- a/arch/arm/dts/at91-sama5d27_giantboard.dts
+++ b/arch/arm/dts/at91-sama5d27_giantboard.dts
@@ -1,4 +1,4 @@
-// SPDX-License-Identifer: GPL-2.0-or-later OR X11
+// SPDX-License-Identifier: GPL-2.0-or-later OR X11
 /*
  * at91-sama5d27_giantboard.dts - Device Tree file for SAMA5D27 Giant Board
  *
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0
  2020-11-26 17:55 [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier Ahmad Fatoum
@ 2020-11-26 17:55 ` Ahmad Fatoum
  2020-11-26 19:43   ` Uwe Kleine-König
  2020-11-29 20:08   ` Roland Hieber
  2020-11-26 17:55 ` [PATCH v2 3/4] LICENSES: exceptions: factor out eCos-exception-2.0 for GPL Ahmad Fatoum
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 11+ messages in thread
From: Ahmad Fatoum @ 2020-11-26 17:55 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, ukl, rhi

Apparently, the file should be GPL-2.0-only without exceptions:

On 24.11.20 09:44, Sascha Hauer wrote[1]:
> This looks like I accidently copied the wrong header. I don't think I
> did this on purpose. It doesn't make much sense to me when compiling
> against dummy malloc is different than compiling against tlsf malloc
> or dlmalloc.

Ase dropping exceptions is no relicense, it's ok to do here without
acknowledgement from all authors. Do so.

[1]: <20201124084434.GC14718@pengutronix.de>

Suggested-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2: new patch
---
 common/dummy_malloc.c | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/common/dummy_malloc.c b/common/dummy_malloc.c
index 0120d9be2e85..d99b5059cf91 100644
--- a/common/dummy_malloc.c
+++ b/common/dummy_malloc.c
@@ -1,25 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (C) 2013 Sascha Hauer <s.hauer@pengutronix.de>
- *
- * 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.
- *
- *
- * As a special exception, if other files instantiate templates or use macros
- * or inline functions from this file, or you compile this file and link it
- * with other works to produce a work based on this file, this file does not
- * by itself cause the resulting work to be covered by the GNU General Public
- * License. However the source code for this file must still be made available
- * in accordance with section (3) of the GNU General Public License.
-
- * This exception does not invalidate any other reasons why a work based on
- * this file might be covered by the GNU General Public License.
  */
 #include <common.h>
 #include <malloc.h>
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH v2 3/4] LICENSES: exceptions: factor out eCos-exception-2.0 for GPL
  2020-11-26 17:55 [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier Ahmad Fatoum
  2020-11-26 17:55 ` [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0 Ahmad Fatoum
@ 2020-11-26 17:55 ` Ahmad Fatoum
  2020-11-26 19:45   ` Uwe Kleine-König
  2020-11-26 17:55 ` [PATCH v2 4/4] common: replace license statements with SPDX-License-Identifiers Ahmad Fatoum
  2020-11-27  8:55 ` [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier Sascha Hauer
  3 siblings, 1 reply; 11+ messages in thread
From: Ahmad Fatoum @ 2020-11-26 17:55 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, ukl, rhi

We have code imported from eCos that's licensed with this exception.
Replace instances of the exceptions with a SPDX-License-Identifier
referencing the exception in our LICENSES directory.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2: dropped files that changed meanwhile (in next and earlier in
          the series)
---
 LICENSES/exceptions/eCos-exception-2.0 | 13 +++++++++++++
 drivers/serial/arm_dcc.c               | 21 +--------------------
 2 files changed, 14 insertions(+), 20 deletions(-)
 create mode 100644 LICENSES/exceptions/eCos-exception-2.0

diff --git a/LICENSES/exceptions/eCos-exception-2.0 b/LICENSES/exceptions/eCos-exception-2.0
new file mode 100644
index 000000000000..291103666f10
--- /dev/null
+++ b/LICENSES/exceptions/eCos-exception-2.0
@@ -0,0 +1,13 @@
+SPDX-Exception-Identifier: eCos-exception-2.0
+SPDX-URL: https://spdx.org/licenses/eCos-exception-2.0.html
+SPDX-Licenses: GPL-2.0-only, GPL-2.0-or-later, GPL-2.0, GPL-2.0+
+License-Text:
+  As a special exception, if other files instantiate templates or use macros or
+  inline functions from this file, or you compile this file and link it with
+  other works to produce a work based on this file, this file does not by itself
+  cause the resulting work to be covered by the GNU General Public License.
+  However the source code for this file must still be made available in
+  accordance with section (3) of the GNU General Public License.
+
+  This exception does not invalidate any other reasons why a work based on this
+  file might be covered by the GNU General Public License.
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
index e5f2bbe5e2ae..db0ee7fe0908 100644
--- a/drivers/serial/arm_dcc.c
+++ b/drivers/serial/arm_dcc.c
@@ -1,26 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only WITH eCos-exception-2.0 */
 /*
  * Copyright (C) 2004-2007 ARM Limited.
  * Copyright (C) 2008 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * 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.
- *
- *
- * As a special exception, if other files instantiate templates or use macros
- * or inline functions from this file, or you compile this file and link it
- * with other works to produce a work based on this file, this file does not
- * by itself cause the resulting work to be covered by the GNU General Public
- * License. However the source code for this file must still be made available
- * in accordance with section (3) of the GNU General Public License.
-
- * This exception does not invalidate any other reasons why a work based on
- * this file might be covered by the GNU General Public License.
  */
 
 #include <common.h>
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH v2 4/4] common: replace license statements with SPDX-License-Identifiers
  2020-11-26 17:55 [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier Ahmad Fatoum
  2020-11-26 17:55 ` [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0 Ahmad Fatoum
  2020-11-26 17:55 ` [PATCH v2 3/4] LICENSES: exceptions: factor out eCos-exception-2.0 for GPL Ahmad Fatoum
@ 2020-11-26 17:55 ` Ahmad Fatoum
  2020-11-26 19:55   ` Uwe Kleine-König
  2020-11-27  8:55 ` [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier Sascha Hauer
  3 siblings, 1 reply; 11+ messages in thread
From: Ahmad Fatoum @ 2020-11-26 17:55 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, ukl, rhi

For all files in common/ that already have a license text:
  - Replace with appropriate SPDX-License-Identifier
  - Remove empty comment lines around replacement
  - remove comment completely if only thing remaining is name
    of file without description

Reviewed-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2: s/GPL-2.0-o\b/GPL-2.0-only/, spotted by Uwe
---
 common/bbu.c               | 10 +---------
 common/binfmt.c            |  3 +--
 common/block.c             | 11 +----------
 common/blspec.c            | 13 +------------
 common/boot.c              | 11 +----------
 common/bootargs.c          | 11 +----------
 common/bootchooser.c       | 11 +----------
 common/bootm.c             | 13 +------------
 common/bootsource.c        | 13 +------------
 common/clock.c             | 11 +----------
 common/command.c           | 12 +-----------
 common/complete.c          | 11 +----------
 common/console.c           | 12 +-----------
 common/console_common.c    | 12 +-----------
 common/console_countdown.c | 11 +----------
 common/date.c              | 12 +-----------
 common/ddr_spd.c           |  5 +----
 common/env.c               | 11 +----------
 common/environment.c       | 11 +----------
 common/fastboot.c          |  3 +--
 common/file-list.c         | 11 +----------
 common/filetype.c          | 10 +---------
 common/firmware.c          | 10 +---------
 common/hush.c              | 14 +-------------
 common/image-fit.c         | 14 +-------------
 common/image.c             | 12 +-----------
 common/imd.c               | 12 +-----------
 common/imx-bbu-nand-fcb.c  | 16 +---------------
 common/memory.c            | 13 +------------
 common/memsize.c           | 12 +-----------
 common/memtest.c           | 11 +----------
 common/menu.c              | 12 +-----------
 common/menutree.c          | 11 +----------
 common/misc.c              | 11 +----------
 common/module.c            | 12 +-----------
 common/partitions.c        | 13 +------------
 common/password.c          | 11 +----------
 common/poller.c            |  4 +---
 common/poweroff.c          | 11 +----------
 common/reset_source.c      | 11 +----------
 common/resource.c          | 10 +---------
 common/restart.c           | 11 +----------
 common/s_record.c          | 12 +-----------
 common/startup.c           | 12 +-----------
 common/tlsf_malloc.c       | 13 +------------
 common/ubiformat.c         | 11 +----------
 common/uimage.c            | 10 +---------
 common/usbgadget.c         | 11 +----------
 48 files changed, 48 insertions(+), 480 deletions(-)

diff --git a/common/bbu.c b/common/bbu.c
index f284c341b91b..1279d5615525 100644
--- a/common/bbu.c
+++ b/common/bbu.c
@@ -1,16 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * bbu.c - barebox update functions
  *
  * Copyright (c) 2012 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
  */
 #include <common.h>
 #include <bbu.h>
diff --git a/common/binfmt.c b/common/binfmt.c
index f2ff62458769..184647720648 100644
--- a/common/binfmt.c
+++ b/common/binfmt.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * GPL v2
  */
 
 #include <common.h>
diff --git a/common/block.c b/common/block.c
index c522310dcf52..6371010a905b 100644
--- a/common/block.c
+++ b/common/block.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * block.c - simple block layer
  *
  * Copyright (c) 2011 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 #include <common.h>
 #include <block.h>
diff --git a/common/blspec.c b/common/blspec.c
index 4e4ad29eb3c8..c05d8a8297f8 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -1,15 +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
 #define pr_fmt(fmt)  "blspec: " fmt
 
 #include <environment.h>
diff --git a/common/boot.c b/common/boot.c
index c6ec22873d10..6337fbdcedb6 100644
--- a/common/boot.c
+++ b/common/boot.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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty 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 <boot.h>
 #include <globalvar.h>
diff --git a/common/bootargs.c b/common/bootargs.c
index fc345560ecf0..c49136609f48 100644
--- a/common/bootargs.c
+++ b/common/bootargs.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * bootargs.c - concatenate Linux bootargs
  *
  * Copyright (c) 2012 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 #include <common.h>
 #include <boot.h>
diff --git a/common/bootchooser.c b/common/bootchooser.c
index 7aa59d8a82bb..b0505a6a187b 100644
--- a/common/bootchooser.c
+++ b/common/bootchooser.c
@@ -1,16 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2012 Jan Luebbe <j.luebbe@pengutronix.de>
  * Copyright (C) 2015 Marc Kleine-Budde <mkl@pengutronix.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; 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.
  */
 #define pr_fmt(fmt)	"bootchooser: " fmt
 
diff --git a/common/bootm.c b/common/bootm.c
index 59efc610997f..092116beb94a 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -1,15 +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 <common.h>
 #include <bootm.h>
diff --git a/common/bootsource.c b/common/bootsource.c
index fdbc4cd63850..1f8d053a8171 100644
--- a/common/bootsource.c
+++ b/common/bootsource.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
- *
  * Copyright (C) 2011 Marc Reilly <marc@cpdesign.com.au>
  * Copyright (C) 2013 Marc Kleine-Budde <mkl@pengutronix.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; 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.
- *
  */
 
 #include <common.h>
diff --git a/common/clock.c b/common/clock.c
index 17b07abdc131..58c2964b1391 100644
--- a/common/clock.c
+++ b/common/clock.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * clock.c - generic clocksource implementation
  *
@@ -6,16 +7,6 @@
  *
  * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com)
  * Copyright (c) 2007 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 #include <common.h>
diff --git a/common/command.c b/common/command.c
index c7c0c4c10380..014b85f9a35f 100644
--- a/common/command.c
+++ b/common/command.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2000-2003
  * Wolfgang Denk, DENX Software Engineering, wd@denx.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; 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.
- *
  */
 
 /*
diff --git a/common/complete.c b/common/complete.c
index 36e10405c850..ad630f4c9580 100644
--- a/common/complete.c
+++ b/common/complete.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * complete.c - functions for TAB completion
  *
  * Copyright (c) 2008 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 #include <common.h>
diff --git a/common/console.c b/common/console.c
index ffb5c0f75f7f..306149c99ea1 100644
--- a/common/console.c
+++ b/common/console.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2000
  * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
- *
- * This program is free software; 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.
- *
  */
 
 #include <config.h>
diff --git a/common/console_common.c b/common/console_common.c
index 8cd57e623df1..48590c522cc2 100644
--- a/common/console_common.c
+++ b/common/console_common.c
@@ -1,19 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * based on code:
  *
  * (C) Copyright 2000 Paolo Scaffardi, AIRVENT SAM s.p.a -
  * RIMINI(ITALY), arsenio@tin.it
- *
- * This program is free software; 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.
- *
  */
 #include <common.h>
 #include <fs.h>
diff --git a/common/console_countdown.c b/common/console_countdown.c
index b92948f503eb..e41641aca23e 100644
--- a/common/console_countdown.c
+++ b/common/console_countdown.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * console_countdown - contdown on the console - interruptible by a keypress
  *
  * Copyright (c) 2007 Sascha Hauer <s.hauer@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 WITHOUT ANY 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/date.c b/common/date.c
index 1fea02cae0cc..69d82e2d52eb 100644
--- a/common/date.c
+++ b/common/date.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2001
  * Wolfgang Denk, DENX Software Engineering, wd@denx.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; 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.
- *
  */
 
 /**
diff --git a/common/ddr_spd.c b/common/ddr_spd.c
index 23df3e71198d..7089923afb94 100644
--- a/common/ddr_spd.c
+++ b/common/ddr_spd.c
@@ -1,9 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright 2008 Freescale Semiconductor, Inc.
- *
- * 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.
  */
 
 #include <common.h>
diff --git a/common/env.c b/common/env.c
index 2830551bc0a1..05add63f625c 100644
--- a/common/env.c
+++ b/common/env.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * env.c - environment variables storage
  *
  * Copyright (c) 2007 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 /**
diff --git a/common/environment.c b/common/environment.c
index 6e58f122bad2..0d31f5b4f786 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -1,15 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2007 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 /**
diff --git a/common/fastboot.c b/common/fastboot.c
index 1b6dc28d8ee9..26e366e4e8a2 100644
--- a/common/fastboot.c
+++ b/common/fastboot.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2008 - 2009
  * Windriver, <www.windriver.com>
@@ -14,8 +15,6 @@
  * Copyright 2020 Edmund Henniges <eh@emlix.com>
  * Copyright 2020 Daniel Glöckner <dg@emlix.com>
  * Split off of generic parts
- *
- * SPDX-License-Identifier:	GPL-2.0+
  */
 
 #define pr_fmt(fmt) "fastboot: " fmt
diff --git a/common/file-list.c b/common/file-list.c
index eb469cf9beb4..cd52b5e045de 100644
--- a/common/file-list.c
+++ b/common/file-list.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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty 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 pr_fmt(fmt)	"file_list: " fmt
 
diff --git a/common/filetype.c b/common/filetype.c
index eda8ecb3761b..539c96b74527 100644
--- a/common/filetype.c
+++ b/common/filetype.c
@@ -1,16 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * filetype.c - detect filetypes
  *
  * Copyright (c) 2011 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
  */
 #include <common.h>
 #include <filetype.h>
diff --git a/common/firmware.c b/common/firmware.c
index 609cf118224e..58509d5da615 100644
--- a/common/firmware.c
+++ b/common/firmware.c
@@ -1,14 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2013 Juergen Beisert <kernel@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
  */
 
 #include <firmware.h>
diff --git a/common/hush.c b/common/hush.c
index ec0d5129b70d..8a55eaec6acb 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* vi: set sw=8 ts=8: */
 /*
  * hush.c -- a prototype Bourne shell grammar parser
@@ -94,19 +95,6 @@
  *
  */
 
-/*
- * This program is free software; 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.
- *
- */
-
 #define pr_fmt(fmt) "hush: " fmt
 
 #include <malloc.h>         /* malloc, free, realloc*/
diff --git a/common/image-fit.c b/common/image-fit.c
index 658f09b04d5a..538e61f51bb5 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) Jan Lübbe, 2014
  *
  * This code is inspired by the U-Boot FIT image code.
- *
- * This program is free software; 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #define pr_fmt(fmt) "FIT: " fmt
diff --git a/common/image.c b/common/image.c
index 8199e2df1771..c9a99ace78c5 100644
--- a/common/image.c
+++ b/common/image.c
@@ -1,19 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2008 Semihalf
  *
  * (C) Copyright 2000-2006
  * Wolfgang Denk, DENX Software Engineering, wd@denx.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; 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.
- *
  */
 
 #ifdef __BAREBOX__
diff --git a/common/imd.c b/common/imd.c
index 4fd4431aa926..b5173afe53e4 100644
--- a/common/imd.c
+++ b/common/imd.c
@@ -1,16 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2014 Sascha Hauer, Pengutronix
- *
- * This program is free software; 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.
- *
  */
 #ifdef __BAREBOX__
 #include <common.h>
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c
index 0629ae5b73b3..f8c457805688 100644
--- a/common/imx-bbu-nand-fcb.c
+++ b/common/imx-bbu-nand-fcb.c
@@ -1,20 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2014 Sascha Hauer, Pengutronix
- *
- * This program is free software; 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation.
- *
  */
 
 #define pr_fmt(fmt) "imx-bbu-nand-fcb: " fmt
diff --git a/common/memory.c b/common/memory.c
index 57c7d6b22003..a56eaf949411 100644
--- a/common/memory.c
+++ b/common/memory.c
@@ -1,17 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
- * memory.c
- *
  * Copyright (c) 2011 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 #include <common.h>
diff --git a/common/memsize.c b/common/memsize.c
index 2fd2b7145759..de4d8df18afb 100644
--- a/common/memsize.c
+++ b/common/memsize.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.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; 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.
- *
  */
 
 #include <common.h>
diff --git a/common/memtest.c b/common/memtest.c
index 09cfa8a347c5..d47e4a672ed9 100644
--- a/common/memtest.c
+++ b/common/memtest.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * memtest.c
  *
@@ -5,16 +6,6 @@
  *
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * 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.
- *
  */
 
 #include <progress.h>
diff --git a/common/menu.c b/common/menu.c
index 089dab8a116f..4007c476c3d9 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -1,16 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * (C) Copyright 2009-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 
 #include <common.h>
diff --git a/common/menutree.c b/common/menutree.c
index 400d1a69395f..c28284b47a0c 100644
--- a/common/menutree.c
+++ b/common/menutree.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 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 <environment.h>
 #include <libbb.h>
diff --git a/common/misc.c b/common/misc.c
index 323500dfa81b..226635f0d43a 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -1,16 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * (C) Copyright 2000-2003
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * 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.
- *
  */
 
 #include <common.h>
diff --git a/common/module.c b/common/module.c
index a79bc734bb20..b669ec09c99f 100644
--- a/common/module.c
+++ b/common/module.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  *  Copyright (C) 2002 Richard Henderson
  *  Copyright (C) 2001 Rusty Russell, 2002 Rusty Russell IBM.
- *
- *   This program is free software; 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.
- *
  */
 
 #include <common.h>
diff --git a/common/partitions.c b/common/partitions.c
index 4162e86804db..01697f87d0ed 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -1,17 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2009...2011 Juergen Beisert, Pengutronix
- *
- * This program is free software; 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.
- *
- *
  */
 
 /**
diff --git a/common/password.c b/common/password.c
index a11971740009..3f05b81c0c2b 100644
--- a/common/password.c
+++ b/common/password.c
@@ -1,15 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * 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.
- *
  */
 
 #include <common.h>
diff --git a/common/poller.c b/common/poller.c
index 50c518697bde..61da5698d225 100644
--- a/common/poller.c
+++ b/common/poller.c
@@ -1,8 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (C) 2010 Marc Kleine-Budde <mkl@pengutronix.de>
- *
- * This file is released under the GPLv2
- *
  */
 
 #include <common.h>
diff --git a/common/poweroff.c b/common/poweroff.c
index 4ce04d158f47..65909c614145 100644
--- a/common/poweroff.c
+++ b/common/poweroff.c
@@ -1,15 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2015 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 #define pr_fmt(fmt) "poweroff: " fmt
 
diff --git a/common/reset_source.c b/common/reset_source.c
index 343dc08444b4..3554cbd0fbe6 100644
--- a/common/reset_source.c
+++ b/common/reset_source.c
@@ -1,15 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2012 Juergen Beisert - <kernel@pengutronix.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; 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.
  */
 #define pr_fmt(fmt) "reset-source: " fmt
 
diff --git a/common/resource.c b/common/resource.c
index 62497e7a5491..92fe96252fdc 100644
--- a/common/resource.c
+++ b/common/resource.c
@@ -1,16 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * resource.c - barebox resource management
  *
  * Copyright (c) 2011 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
  */
 #include <common.h>
 #include <malloc.h>
diff --git a/common/restart.c b/common/restart.c
index 2bf7b166b043..b6f2bbf25b10 100644
--- a/common/restart.c
+++ b/common/restart.c
@@ -1,15 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2015 Sascha Hauer <s.hauer@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 #define pr_fmt(fmt) "restart: " fmt
 
diff --git a/common/s_record.c b/common/s_record.c
index 18068902423b..95fa890b69db 100644
--- a/common/s_record.c
+++ b/common/s_record.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.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; 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.
- *
  */
 
 #include <common.h>
diff --git a/common/startup.c b/common/startup.c
index adc487363f9e..767d178de8cb 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) Copyright 2002-2006
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@ -5,17 +6,6 @@
  * (C) Copyright 2002
  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  * Marius Groeger <mgroeger@sysgo.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; 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.
- *
  */
 
 #ifdef CONFIG_DEBUG_INITCALLS
diff --git a/common/tlsf_malloc.c b/common/tlsf_malloc.c
index 48a56d86564b..981f09de41cc 100644
--- a/common/tlsf_malloc.c
+++ b/common/tlsf_malloc.c
@@ -1,19 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * tlsf wrapper for barebox
  *
  * Copyright (C) 2011 Antony Pavlov <antonynpavlov@gmail.com>
- *
- * This file is part of barebox.
- *
- * 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.
- *
  */
 
 #include <malloc.h>
diff --git a/common/ubiformat.c b/common/ubiformat.c
index cfaa68f16425..e10ce31ce659 100644
--- a/common/ubiformat.c
+++ b/common/ubiformat.c
@@ -1,16 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2008 Nokia Corporation
  * Copyright (C) 2012 Wolfram Sang, Pengutronix
- *
- * This program is free software; 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.
  */
 
 /*
diff --git a/common/uimage.c b/common/uimage.c
index 9abfbcf3bac9..42e9d9023f3f 100644
--- a/common/uimage.c
+++ b/common/uimage.c
@@ -1,18 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * uimage.c - uimage handling code
  *
  * Copyright (c) 2011 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
  *
  * partly based on U-Boot uImage code
- *
- * 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.
  */
 #include <common.h>
 #include <image.h>
diff --git a/common/usbgadget.c b/common/usbgadget.c
index fb508db94762..08e47b6b4975 100644
--- a/common/usbgadget.c
+++ b/common/usbgadget.c
@@ -1,15 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2017 Oleksij Rempel <o.rempel@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 WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  */
 #define pr_fmt(fmt) "usbgadget: " fmt
 
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0
  2020-11-26 17:55 ` [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0 Ahmad Fatoum
@ 2020-11-26 19:43   ` Uwe Kleine-König
  2020-11-29 20:08   ` Roland Hieber
  1 sibling, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2020-11-26 19:43 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, rhi


[-- Attachment #1.1: Type: text/plain, Size: 719 bytes --]

On Thu, Nov 26, 2020 at 06:55:51PM +0100, Ahmad Fatoum wrote:
> Apparently, the file should be GPL-2.0-only without exceptions:
> 
> On 24.11.20 09:44, Sascha Hauer wrote[1]:
> > This looks like I accidently copied the wrong header. I don't think I
> > did this on purpose. It doesn't make much sense to me when compiling
> > against dummy malloc is different than compiling against tlsf malloc
> > or dlmalloc.
> 
> Ase dropping exceptions is no relicense, it's ok to do here without

s/Ase/As/

Other than that looks good.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH v2 3/4] LICENSES: exceptions: factor out eCos-exception-2.0 for GPL
  2020-11-26 17:55 ` [PATCH v2 3/4] LICENSES: exceptions: factor out eCos-exception-2.0 for GPL Ahmad Fatoum
@ 2020-11-26 19:45   ` Uwe Kleine-König
  2020-11-26 19:49     ` Ahmad Fatoum
  0 siblings, 1 reply; 11+ messages in thread
From: Uwe Kleine-König @ 2020-11-26 19:45 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, rhi


[-- Attachment #1.1: Type: text/plain, Size: 561 bytes --]

On Thu, Nov 26, 2020 at 06:55:52PM +0100, Ahmad Fatoum wrote:
> We have code imported from eCos that's licensed with this exception.
> Replace instances of the exceptions with a SPDX-License-Identifier
> referencing the exception in our LICENSES directory.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

I assume you didn't add Roland's Review tag by mistake?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH v2 3/4] LICENSES: exceptions: factor out eCos-exception-2.0 for GPL
  2020-11-26 19:45   ` Uwe Kleine-König
@ 2020-11-26 19:49     ` Ahmad Fatoum
  0 siblings, 0 replies; 11+ messages in thread
From: Ahmad Fatoum @ 2020-11-26 19:49 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox, rhi



On 26.11.20 20:45, Uwe Kleine-König wrote:
> On Thu, Nov 26, 2020 at 06:55:52PM +0100, Ahmad Fatoum wrote:
>> We have code imported from eCos that's licensed with this exception.
>> Replace instances of the exceptions with a SPDX-License-Identifier
>> referencing the exception in our LICENSES directory.
>>
>> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> 
> I assume you didn't add Roland's Review tag by mistake?

Yes, I missed that he replied to 2/3.

> 
> Best regards
> Uwe
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH v2 4/4] common: replace license statements with SPDX-License-Identifiers
  2020-11-26 17:55 ` [PATCH v2 4/4] common: replace license statements with SPDX-License-Identifiers Ahmad Fatoum
@ 2020-11-26 19:55   ` Uwe Kleine-König
  0 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2020-11-26 19:55 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, rhi


[-- Attachment #1.1: Type: text/plain, Size: 686 bytes --]

On Thu, Nov 26, 2020 at 06:55:53PM +0100, Ahmad Fatoum wrote:
> For all files in common/ that already have a license text:
>   - Replace with appropriate SPDX-License-Identifier
>   - Remove empty comment lines around replacement
>   - remove comment completely if only thing remaining is name
>     of file without description
> 
> Reviewed-by: Roland Hieber <rhi@pengutronix.de>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier
  2020-11-26 17:55 [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier Ahmad Fatoum
                   ` (2 preceding siblings ...)
  2020-11-26 17:55 ` [PATCH v2 4/4] common: replace license statements with SPDX-License-Identifiers Ahmad Fatoum
@ 2020-11-27  8:55 ` Sascha Hauer
  3 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-11-27  8:55 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, ukl, rhi

On Thu, Nov 26, 2020 at 06:55:50PM +0100, Ahmad Fatoum wrote:
> s/Identifer/Identifier/
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> v1 -> v2: no change
> ---
>  arch/arm/dts/at91-sama5d27_giantboard.dts | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/dts/at91-sama5d27_giantboard.dts b/arch/arm/dts/at91-sama5d27_giantboard.dts
> index 2ba3ff217101..99fc5a8d4dd3 100644
> --- a/arch/arm/dts/at91-sama5d27_giantboard.dts
> +++ b/arch/arm/dts/at91-sama5d27_giantboard.dts
> @@ -1,4 +1,4 @@
> -// SPDX-License-Identifer: GPL-2.0-or-later OR X11
> +// SPDX-License-Identifier: GPL-2.0-or-later OR X11
>  /*
>   * at91-sama5d27_giantboard.dts - Device Tree file for SAMA5D27 Giant Board
>   *
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0
  2020-11-26 17:55 ` [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0 Ahmad Fatoum
  2020-11-26 19:43   ` Uwe Kleine-König
@ 2020-11-29 20:08   ` Roland Hieber
  2020-11-29 21:17     ` Ahmad Fatoum
  1 sibling, 1 reply; 11+ messages in thread
From: Roland Hieber @ 2020-11-29 20:08 UTC (permalink / raw)
  To: Ahmad Fatoum
  Cc: Andrey Smirnov, barebox, Jean-Christophe PLAGNIOL-VILLARD, ukl

On Thu, Nov 26, 2020 at 06:55:51PM +0100, Ahmad Fatoum wrote:
> Apparently, the file should be GPL-2.0-only without exceptions:
> 
> On 24.11.20 09:44, Sascha Hauer wrote[1]:
> > This looks like I accidently copied the wrong header. I don't think I
> > did this on purpose. It doesn't make much sense to me when compiling
> > against dummy malloc is different than compiling against tlsf malloc
> > or dlmalloc.
> 
> Ase dropping exceptions is no relicense, it's ok to do here without
> acknowledgement from all authors. Do so.

I don't understand this reasoning. The exception allowed someone to link
this file with non-GPL code, and by dropping this exception, this
possibility is no longer allowed, so there is a change in license terms.

The only two other authors of this file are Andrey and Jean-Christophe,
hereby CCed.

 - Roland
 
> [1]: <20201124084434.GC14718@pengutronix.de>
> 
> Suggested-by: Sascha Hauer <s.hauer@pengutronix.de>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> v1 -> v2: new patch
> ---
>  common/dummy_malloc.c | 21 +--------------------
>  1 file changed, 1 insertion(+), 20 deletions(-)
> 
> diff --git a/common/dummy_malloc.c b/common/dummy_malloc.c
> index 0120d9be2e85..d99b5059cf91 100644
> --- a/common/dummy_malloc.c
> +++ b/common/dummy_malloc.c
> @@ -1,25 +1,6 @@
> +// SPDX-License-Identifier: GPL-2.0-only
>  /*
>   * Copyright (C) 2013 Sascha Hauer <s.hauer@pengutronix.de>
> - *
> - * 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.
> - *
> - *
> - * As a special exception, if other files instantiate templates or use macros
> - * or inline functions from this file, or you compile this file and link it
> - * with other works to produce a work based on this file, this file does not
> - * by itself cause the resulting work to be covered by the GNU General Public
> - * License. However the source code for this file must still be made available
> - * in accordance with section (3) of the GNU General Public License.
> -
> - * This exception does not invalidate any other reasons why a work based on
> - * this file might be covered by the GNU General Public License.
>   */
>  #include <common.h>
>  #include <malloc.h>
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0
  2020-11-29 20:08   ` Roland Hieber
@ 2020-11-29 21:17     ` Ahmad Fatoum
  0 siblings, 0 replies; 11+ messages in thread
From: Ahmad Fatoum @ 2020-11-29 21:17 UTC (permalink / raw)
  To: Roland Hieber
  Cc: Andrey Smirnov, barebox, Jean-Christophe PLAGNIOL-VILLARD, ukl

Hello,

On 29.11.20 21:08, Roland Hieber wrote:
> On Thu, Nov 26, 2020 at 06:55:51PM +0100, Ahmad Fatoum wrote:
>> Apparently, the file should be GPL-2.0-only without exceptions:
>>
>> On 24.11.20 09:44, Sascha Hauer wrote[1]:
>>> This looks like I accidently copied the wrong header. I don't think I
>>> did this on purpose. It doesn't make much sense to me when compiling
>>> against dummy malloc is different than compiling against tlsf malloc
>>> or dlmalloc.
>>
>> Ase dropping exceptions is no relicense, it's ok to do here without
>> acknowledgement from all authors. Do so.
> 
> I don't understand this reasoning. The exception allowed someone to link
> this file with non-GPL code, and by dropping this exception, this
> possibility is no longer allowed, so there is a change in license terms.
If a file is dual-licensed and we choose to drop one license, we would
be within our rights to do so according to the dual license.
We still maintain the dual licensing for that file normally (as in future 
contributions are dual-licensed as well) to respect the author's intent.

Similarly, a file licensed under the GNU GPL with a linking exception can
still be distributed under the terms of the GNU GPL only (Wouldn't be
compatible otherwise). The exception grants an additional right, but the
distributor does not have a legal obligation to maintain them.

The original author stated here that it was a mistake, the file is just
a collection of stubs and we are within our rights to drop the exception,
so that's what I did here.

So yes, the license terms changed, but no, the code was't relicensed away
from the GPL, which we couldn't do anyway, without agreement of all
authors.

Of course, IANAL and please correct me if my understanding is wrong.

> The only two other authors of thunder the same licenseis file are Andrey and Jean-Christophe,
> hereby CCed.

Thanks, I should've done this before.

Cheers,
Ahmad

> 
>  - Roland
>  
>> [1]: <20201124084434.GC14718@pengutronix.de>
>>
>> Suggested-by: Sascha Hauer <s.hauer@pengutronix.de>
>> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
>> ---
>> v1 -> v2: new patch
>> ---
>>  common/dummy_malloc.c | 21 +--------------------
>>  1 file changed, 1 insertion(+), 20 deletions(-)
>>
>> diff --git a/common/dummy_malloc.c b/common/dummy_malloc.c
>> index 0120d9be2e85..d99b5059cf91 100644
>> --- a/common/dummy_malloc.c
>> +++ b/common/dummy_malloc.c
>> @@ -1,25 +1,6 @@
>> +// SPDX-License-Identifier: GPL-2.0-only
>>  /*
>>   * Copyright (C) 2013 Sascha Hauer <s.hauer@pengutronix.de>
>> - *
>> - * 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.
>> - *
>> - *
>> - * As a special exception, if other files instantiate templates or use macros
>> - * or inline functions from this file, or you compile this file and link it
>> - * with other works to produce a work based on this file, this file does not
>> - * by itself cause the resulting work to be covered by the GNU General Public
>> - * License. However the source code for this file must still be made available
>> - * in accordance with section (3) of the GNU General Public License.
>> -
>> - * This exception does not invalidate any other reasons why a work based on
>> - * this file might be covered by the GNU General Public License.
>>   */
>>  #include <common.h>
>>  #include <malloc.h>
>> -- 
>> 2.29.2
>>
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>>
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2020-11-29 21:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 17:55 [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: fix typo in SPDX-License-Identifier Ahmad Fatoum
2020-11-26 17:55 ` [PATCH v2 2/4] common: dummy_malloc: remove unintended GPL2 eCos-exception-2.0 Ahmad Fatoum
2020-11-26 19:43   ` Uwe Kleine-König
2020-11-29 20:08   ` Roland Hieber
2020-11-29 21:17     ` Ahmad Fatoum
2020-11-26 17:55 ` [PATCH v2 3/4] LICENSES: exceptions: factor out eCos-exception-2.0 for GPL Ahmad Fatoum
2020-11-26 19:45   ` Uwe Kleine-König
2020-11-26 19:49     ` Ahmad Fatoum
2020-11-26 17:55 ` [PATCH v2 4/4] common: replace license statements with SPDX-License-Identifiers Ahmad Fatoum
2020-11-26 19:55   ` Uwe Kleine-König
2020-11-27  8:55 ` [PATCH v2 1/4] ARM: at91: sama5d2: giantboard: 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