mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
@ 2019-02-07 22:39 Roland Hieber
  2019-02-07 22:39 ` [PATCH 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
                   ` (7 more replies)
  0 siblings, 8 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-07 22:39 UTC (permalink / raw)
  To: barebox; +Cc: rhi, Roland Hieber

Interpret "GPLv2" as "GPLv2 only".

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/aimage.h            | 1 +
 include/aiodev.h            | 1 +
 include/binfmt.h            | 1 +
 include/bootstrap.h         | 1 +
 include/bpkfs.h             | 1 +
 include/ddr_spd.h           | 1 +
 include/dhcp.h              | 1 +
 include/digest.h            | 1 +
 include/dma.h               | 1 +
 include/firmware.h          | 1 +
 include/getopt.h            | 1 +
 include/local_mac_address.h | 1 +
 include/menu.h              | 1 +
 include/of_graph.h          | 1 +
 include/of_mtd.h            | 1 +
 include/of_net.h            | 1 +
 include/password.h          | 1 +
 include/pbl.h               | 1 +
 include/poller.h            | 1 +
 include/shell.h             | 1 +
 include/uimagefs.h          | 1 +
 include/w1_mac_address.h    | 1 +
 include/xymodem.h           | 1 +
 23 files changed, 23 insertions(+)

diff --git a/include/aimage.h b/include/aimage.h
index 9702b7d35c..0c7dda39ce 100644
--- a/include/aimage.h
+++ b/include/aimage.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2011 Jean-Christhophe PLAGNIOL-VILLARD <plagniol@jcrosoft.com>
  *
  * Android boot image
  *
  * Under GPLv2 only
  */
 
 #ifndef __AIMAGE_H__
 #define __AIMAGE_H__
 
 #define BOOT_MAGIC	"ANDROID!"
 #define BOOT_MAGIC_SIZE	8
 #define BOOT_NAME_SIZE	16
 #define BOOT_ARGS_SIZE	512
diff --git a/include/aiodev.h b/include/aiodev.h
index 5e38b4fab5..5f41554ad1 100644
--- a/include/aiodev.h
+++ b/include/aiodev.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * core.c - Code implementing core functionality of AIODEV susbsystem
  *
  * Copyright (c) 2015 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
  * Copyright (c) 2015 Zodiac Inflight Innovation
  *
  * See file CREDITS for list of people who contributed to this
  * project.
  *
  * 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
diff --git a/include/binfmt.h b/include/binfmt.h
index 46b627e36d..b1fd2a72e8 100644
--- a/include/binfmt.h
+++ b/include/binfmt.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * GPL v2
  */
 
 #ifndef __BFMT_H__
 #define __BFMT_H__
 
 #include <filetype.h>
 #include <linux/list.h>
 
 struct binfmt_hook {
 	enum filetype type;
 	int (*hook)(struct binfmt_hook *b, char *file, int argc, char **argv);
diff --git a/include/bootstrap.h b/include/bootstrap.h
index d3ee6be47c..6100f7be2f 100644
--- a/include/bootstrap.h
+++ b/include/bootstrap.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
  *
  * Under GPLv2
  */
 
 #ifndef __BOOSTRAP_H__
 #define __BOOSTRAP_H__
 
 #include <common.h>
 
 #define bootstrap_err(fmt, arg...) printf(fmt, ##arg)
 
 typedef void (*kernel_entry_func)(int zero, int arch, void *params);
 void bootstrap_boot(kernel_entry_func func, bool barebox);
diff --git a/include/bpkfs.h b/include/bpkfs.h
index ccb56c1419..49fbd5d48e 100644
--- a/include/bpkfs.h
+++ b/include/bpkfs.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * under GPLv2 only
  */
 
 #ifndef __BPKFS_H__
 #define __BPKFS_H__
 
 #include <linux/types.h>
 #include <linux/list.h>
 
 #define BPKFS_TYPE_BL	0x50424c00
 #define BPKFS_TYPE_BLV	0x50424c56
 #define BPKFS_TYPE_DSC	0x44456343
diff --git a/include/ddr_spd.h b/include/ddr_spd.h
index 01fe73c615..18bb7c2751 100644
--- a/include/ddr_spd.h
+++ b/include/ddr_spd.h
@@ -1,15 +1,16 @@
+/* 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.
  */
 
 #ifndef _DDR_SPD_H_
 #define _DDR_SPD_H_
 
 /*
  * Format from "JEDEC Appendix X: Serial Presence Detects for DDR2 SDRAM",
  * SPD Revision 1.2
  */
diff --git a/include/dhcp.h b/include/dhcp.h
index 0dced8e9fa..55ffb10789 100644
--- a/include/dhcp.h
+++ b/include/dhcp.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2015 PHYTEC Messtechnik GmbH,
  * Author: Wadim Egorov <w.egorov@phytec.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.
  */
 
 #ifndef __DHCP_H__
 #define __DHCP_H__
 
 #define DHCP_DEFAULT_RETRY 20
 
 struct dhcp_req_param {
diff --git a/include/digest.h b/include/digest.h
index a1cdbb2d7a..d001057527 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * 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.
diff --git a/include/dma.h b/include/dma.h
index 7f95782635..c7ff5b8944 100644
--- a/include/dma.h
+++ b/include/dma.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 by Marc Kleine-Budde <mkl@pengutronix.de>
  *
  * This file is released under the GPLv2
  *
  */
 
 #ifndef __DMA_H
 #define __DMA_H
 
 #include <malloc.h>
 #include <xfuncs.h>
 
 #include <dma-dir.h>
 #include <asm/dma.h>
diff --git a/include/firmware.h b/include/firmware.h
index 284e0f9705..e3b1bd98be 100644
--- a/include/firmware.h
+++ b/include/firmware.h
@@ -1,15 +1,16 @@
+/* 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.
  */
 
 #ifndef FIRMWARE_H
 #define FIRMWARE_H
diff --git a/include/getopt.h b/include/getopt.h
index 4f48ba8fd9..b215cfa2b7 100644
--- a/include/getopt.h
+++ b/include/getopt.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * getopt.h - a simple getopt(3) implementation.
  *
  * 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/include/local_mac_address.h b/include/local_mac_address.h
index 3d1ec66b1f..12cdf319c8 100644
--- a/include/local_mac_address.h
+++ b/include/local_mac_address.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
  *
  * Under GPLv2 only
  */
 
 #ifndef __LOCAL_MAC_ADDRESS_H__
 #define __LOCAL_MAC_ADDRESS_H__
 
 #include <net.h>
 
 /**
  * local_mac_address_register - use random number with fix
  * OUI provided device to provide an Ethernet address
  * @ethid: ethernet device id
diff --git a/include/menu.h b/include/menu.h
index 2fef064499..97545a1740 100644
--- a/include/menu.h
+++ b/include/menu.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2009-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * 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.
diff --git a/include/of_graph.h b/include/of_graph.h
index 254dd2ca28..7a6c556bf3 100644
--- a/include/of_graph.h
+++ b/include/of_graph.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * OF graph binding parsing helpers
  *
  * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
  * Author: Sylwester Nawrocki <s.nawrocki@samsung.com>
  *
  * Copyright (C) 2012 Renesas Electronics Corp.
  * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of version 2 of the GNU General Public License as
  * published by the Free Software Foundation.
  */
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
diff --git a/include/of_mtd.h b/include/of_mtd.h
index 9f5b8a2796..9396523a79 100644
--- a/include/of_mtd.h
+++ b/include/of_mtd.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * OF helpers for mtd.
  *
  * This file is released under the GPLv2
  */
 
 #ifndef __LINUX_OF_MTD_H
 #define __LINUX_OF_MTD_H
 
 #include <of.h>
 
 int of_get_nand_ecc_mode(struct device_node *np);
 int of_get_nand_ecc_step_size(struct device_node *np);
diff --git a/include/of_net.h b/include/of_net.h
index 0f6ef200d5..8b5a1435ad 100644
--- a/include/of_net.h
+++ b/include/of_net.h
@@ -1,14 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * OF helpers for network devices.
  *
  * This file is released under the GPLv2
  */
 
 #ifndef __LINUX_OF_NET_H
 #define __LINUX_OF_NET_H
 
 #include <of.h>
 int of_get_phy_mode(struct device_node *np);
 const void *of_get_mac_address(struct device_node *np);
 
 #endif /* __LINUX_OF_NET_H */
diff --git a/include/password.h b/include/password.h
index 8b9961815f..4b4e7c9497 100644
--- a/include/password.h
+++ b/include/password.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
  *
  * 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/include/pbl.h b/include/pbl.h
index 787bd8293f..594d8d0273 100644
--- a/include/pbl.h
+++ b/include/pbl.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * Under GPLv2
  */
 
 #ifndef __PBL_H__
 #define __PBL_H__
 
 extern unsigned long free_mem_ptr;
 extern unsigned long free_mem_end_ptr;
 
 void pbl_barebox_uncompress(void *dest, void *compressed_start, unsigned int len);
 
 #ifdef __PBL__
diff --git a/include/poller.h b/include/poller.h
index 35a2271d69..9b2e7e1d7b 100644
--- a/include/poller.h
+++ b/include/poller.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2010 Marc Kleine-Budde <mkl@pengutronix.de>
  *
  * This file is released under the GPLv2
  *
  */
 
 #ifndef POLLER_H
 #define POLLER_H
 
 #include <linux/list.h>
 
 struct poller_struct {
 	void (*func)(struct poller_struct *poller);
 	int registered;
diff --git a/include/shell.h b/include/shell.h
index 65dad0e1d1..b446743337 100644
--- a/include/shell.h
+++ b/include/shell.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * Under GPLv2 only
  */
 
 #ifndef __SHELL_H__
 #define __SHELL_H__
 
 int shell_get_last_return_code(void);
 
 int run_shell(void);
 
 #ifdef CONFIG_SHELL_HUSH
 char *shell_expand(char *str);
diff --git a/include/uimagefs.h b/include/uimagefs.h
index 3f58589b73..9a32a77c16 100644
--- a/include/uimagefs.h
+++ b/include/uimagefs.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * under GPLv2 only
  */
 
 #ifndef __UIMAGEFS_H__
 #define __UIMAGEFS_H__
 
 #include <linux/types.h>
 #include <linux/list.h>
 #include <image.h>
 #include <ioctl.h>
 
 #define UIMAGEFS_METADATA	_IOR('U', 100, struct image_header)
diff --git a/include/w1_mac_address.h b/include/w1_mac_address.h
index cd4be765f7..2d499a3690 100644
--- a/include/w1_mac_address.h
+++ b/include/w1_mac_address.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
  *
  * Under GPLv2 only
  */
 
 #ifndef __W1_MAC_ADDRESS_H__
 #define __W1_MAC_ADDRESS_H__
 
 /**
  * w1_local_mac_address_register - use the first 3 byte of the id of a 1-wire
  * or 6 if no OUI provided device to provide an Ethernet address
  * @ethid: ethernet device id
  * @oui: Ethernet OUI (3 bytes)
  * @w1_dev: 1-wire device name
diff --git a/include/xymodem.h b/include/xymodem.h
index 917cecc003..82a36bfe7d 100644
--- a/include/xymodem.h
+++ b/include/xymodem.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
  *
  * Copyright (C) 2008 Robert Jarzmik
  *
  * 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.
  */
-- 
2.19.2


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

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

* [PATCH 2/6] include: add SPDX GPL-2.0-or-later license tags where applicable
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
@ 2019-02-07 22:39 ` Roland Hieber
  2019-02-07 22:39 ` [PATCH 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-07 22:39 UTC (permalink / raw)
  To: barebox; +Cc: rhi, Roland Hieber

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/ata_drive.h    | 1 +
 include/command.h      | 1 +
 include/common.h       | 1 +
 include/console.h      | 1 +
 include/debug_ll.h     | 1 +
 include/disks.h        | 1 +
 include/driver.h       | 1 +
 include/environment.h  | 1 +
 include/hab.h          | 1 +
 include/image-fit.h    | 1 +
 include/image.h        | 1 +
 include/int_sqrt.h     | 1 +
 include/jtag.h         | 1 +
 include/kfifo.h        | 1 +
 include/mci.h          | 1 +
 include/of_gpio.h      | 1 +
 include/part.h         | 1 +
 include/reset_source.h | 1 +
 include/rtc.h          | 1 +
 include/s_record.h     | 1 +
 include/scsi.h         | 1 +
 include/stmp-device.h  | 1 +
 include/watchdog.h     | 1 +
 23 files changed, 23 insertions(+)

diff --git a/include/ata_drive.h b/include/ata_drive.h
index 11685eef12..67464ab8de 100644
--- a/include/ata_drive.h
+++ b/include/ata_drive.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/command.h b/include/command.h
index 0afc5c7550..cbaeb74d4f 100644
--- a/include/command.h
+++ b/include/command.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/common.h b/include/common.h
index 11d26cb3db..a6f3987c52 100644
--- a/include/common.h
+++ b/include/common.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/console.h b/include/console.h
index 673921331d..fbcea06f1d 100644
--- a/include/console.h
+++ b/include/console.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/debug_ll.h b/include/debug_ll.h
index 5047516399..fb85205636 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * debug_ll.h
  *
  *  written by Marc Singer
  *  12 Feb 2005
  *
  *  Copyright (C) 2005 Marc Singer
  *
  * 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
diff --git a/include/disks.h b/include/disks.h
index 9932750a24..d5a1a38614 100644
--- a/include/disks.h
+++ b/include/disks.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/driver.h b/include/driver.h
index 7da184d3ab..5a006b82c6 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/environment.h b/include/environment.h
index 52eafe9882..5409aa1ec0 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/hab.h b/include/hab.h
index abfce18736..49976c8e77 100644
--- a/include/hab.h
+++ b/include/hab.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Copyright (C) 2014, 2015 Marc Kleine-Budde <mkl@pengutronix.de>
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/image-fit.h b/include/image-fit.h
index fc0883b5dc..b2fa36d81e 100644
--- a/include/image-fit.h
+++ b/include/image-fit.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * 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/>.
  *
  * Copyright (C) Jan Lübbe, 2014
diff --git a/include/image.h b/include/image.h
index add9c85874..4538a068b4 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2005
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/int_sqrt.h b/include/int_sqrt.h
index 55fb4fbe66..192d3d6461 100644
--- a/include/int_sqrt.h
+++ b/include/int_sqrt.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/jtag.h b/include/jtag.h
index 26c95fb307..c6e3e9d47e 100644
--- a/include/jtag.h
+++ b/include/jtag.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * include/linux/jtag.h
  *
  * Written Aug 2009 by Davide Rizzo <elpa.rizzo@gmail.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; 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/include/kfifo.h b/include/kfifo.h
index 25880f4626..66d0a4da1a 100644
--- a/include/kfifo.h
+++ b/include/kfifo.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * A simple kernel FIFO implementation.
  *
  * Copyright (C) 2004 Stelian Pop <stelian@popies.net>
  *
  * 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/include/mci.h b/include/mci.h
index 072008ef9d..3d18d4f815 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2010 Juergen Beisert, Pengutronix
  *
  * This code is partially based on u-boot code:
  *
  * Copyright 2008, Freescale Semiconductor, Inc
  * Andy Fleming
  *
  * Based (loosely) on the Linux code
  *
  * See file CREDITS for list of people who contributed to this
  * project.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
diff --git a/include/of_gpio.h b/include/of_gpio.h
index 95a454c683..076ae33d53 100644
--- a/include/of_gpio.h
+++ b/include/of_gpio.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * OF helpers for the GPIO API
  *
  * based on Linux OF_GPIO API
  *
  * 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.
  */
 
 #ifndef __OF_GPIO_H
 #define __OF_GPIO_H
 
 /*
diff --git a/include/part.h b/include/part.h
index d4d40f6ec9..b887960e0e 100644
--- a/include/part.h
+++ b/include/part.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/reset_source.h b/include/reset_source.h
index 86e415abcf..5d927b74c7 100644
--- a/include/reset_source.h
+++ b/include/reset_source.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * 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.
  */
 
 #ifndef __INCLUDE_RESET_SOURCE_H
 # define __INCLUDE_RESET_SOURCE_H
 
diff --git a/include/rtc.h b/include/rtc.h
index 600dc46c41..7bde23a864 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2001
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/s_record.h b/include/s_record.h
index 84b4719519..96500f18ad 100644
--- a/include/s_record.h
+++ b/include/s_record.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/scsi.h b/include/scsi.h
index 00750acac8..3b9104c3de 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2001
  * Denis Peter, MPL AG Switzerland
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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
diff --git a/include/stmp-device.h b/include/stmp-device.h
index 9b5bee4712..72c4e8b185 100644
--- a/include/stmp-device.h
+++ b/include/stmp-device.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * basic functions for devices following the "stmp" style register layout
  *
  * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K.
  *
  * 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.
  */
 
 #ifndef __STMP_DEVICE_H__
 #define __STMP_DEVICE_H__
 
 #include <linux/compiler.h>
diff --git a/include/watchdog.h b/include/watchdog.h
index 0db4263a31..e338bf0d65 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * 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.
  */
 
 #ifndef INCLUDE_WATCHDOG_H
 # define INCLUDE_WATCHDOG_H
 
-- 
2.19.2


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

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

* [PATCH 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
  2019-02-07 22:39 ` [PATCH 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2019-02-07 22:39 ` Roland Hieber
  2019-02-07 22:39 ` [PATCH 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-07 22:39 UTC (permalink / raw)
  To: barebox; +Cc: rhi, Roland Hieber

According to our /README, GPL-2.0-only applies for the whole project
except noted otherwise.

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/abort.h             | 1 +
 include/bbu.h               | 1 +
 include/block.h             | 1 +
 include/blspec.h            | 1 +
 include/boot.h              | 1 +
 include/bootchooser.h       | 1 +
 include/bootm.h             | 1 +
 include/bootsource.h        | 1 +
 include/bunzip2.h           | 1 +
 include/byteorder.h         | 1 +
 include/cache.h             | 1 +
 include/clock.h             | 1 +
 include/cmdlinepart.h       | 1 +
 include/complete.h          | 1 +
 include/console_countdown.h | 1 +
 include/crc.h               | 1 +
 include/crc7.h              | 1 +
 include/dirent.h            | 1 +
 include/dma-dir.h           | 1 +
 include/efi.h               | 1 +
 include/elf.h               | 1 +
 include/envfs.h             | 1 +
 include/errno.h             | 1 +
 include/fb.h                | 1 +
 include/fcntl.h             | 1 +
 include/fdt.h               | 1 +
 include/file-list.h         | 1 +
 include/filetype.h          | 1 +
 include/fs.h                | 1 +
 include/globalvar.h         | 1 +
 include/gpio.h              | 1 +
 include/gpio_keys.h         | 1 +
 include/gunzip.h            | 1 +
 include/image-metadata.h    | 1 +
 include/init.h              | 1 +
 include/io.h                | 1 +
 include/ioctl.h             | 1 +
 include/kallsyms.h          | 1 +
 include/kgdb.h              | 1 +
 include/led.h               | 1 +
 include/libbb.h             | 2 +-
 include/libfile.h           | 1 +
 include/libgen.h            | 1 +
 include/lzo.h               | 1 +
 include/magicvar.h          | 1 +
 include/malloc.h            | 1 +
 include/math.h              | 1 +
 include/memory.h            | 1 +
 include/memtest.h           | 1 +
 include/mmu.h               | 1 +
 include/module.h            | 1 +
 include/nand.h              | 1 +
 include/notifier.h          | 1 +
 include/of.h                | 1 +
 include/of_address.h        | 1 +
 include/of_device.h         | 1 +
 include/of_pci.h            | 1 +
 include/param.h             | 1 +
 include/parseopt.h          | 1 +
 include/partition.h         | 1 +
 include/phy-id-list.h       | 1 +
 include/pinctrl.h           | 1 +
 include/poweroff.h          | 1 +
 include/printk.h            | 1 +
 include/progress.h          | 1 +
 include/pwm.h               | 1 +
 include/qsort.h             | 1 +
 include/ratp.h              | 3 ++-
 include/ratp_bb.h           | 1 +
 include/readkey.h           | 1 +
 include/regmap.h            | 1 +
 include/regulator.h         | 1 +
 include/restart.h           | 1 +
 include/serdev.h            | 1 +
 include/sntp.h              | 1 +
 include/state.h             | 1 +
 include/stdio.h             | 1 +
 include/stdlib.h            | 1 +
 include/string.h            | 1 +
 include/stringlist.h        | 1 +
 include/twl6030_pwrbtn.h    | 1 +
 include/types.h             | 1 +
 include/ubiformat.h         | 1 +
 include/uncompress.h        | 1 +
 include/unistd.h            | 1 +
 include/usb_dfu_trailer.h   | 1 +
 include/wchar.h             | 1 +
 include/xfuncs.h            | 1 +
 88 files changed, 89 insertions(+), 2 deletions(-)

diff --git a/include/abort.h b/include/abort.h
index 326467c25f..02d394237d 100644
--- a/include/abort.h
+++ b/include/abort.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __ABORT_H
 #define __ABORT_H
 
 #include <asm/barebox.h>
 
 #if defined ARCH_HAS_DATA_ABORT_MASK && !defined __PBL__
 
 /*
  * data_abort_mask - ignore data aborts
  *
  * If data aborts are ignored the data abort handler
  * will just return.
  */
 void data_abort_mask(void);
 
diff --git a/include/bbu.h b/include/bbu.h
index 0ed355b539..030e3d932b 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_BBU_H
 #define __INCLUDE_BBU_H
 
 #include <asm-generic/errno.h>
 #include <linux/list.h>
 #include <linux/types.h>
 #include <filetype.h>
 
 struct bbu_data {
 #define BBU_FLAG_FORCE	(1 << 0)
 #define BBU_FLAG_YES	(1 << 1)
 	unsigned long flags;
 	int force;
 	const void *image;
 	const char *imagefile;
diff --git a/include/block.h b/include/block.h
index 91377679b0..bd87efdc62 100644
--- a/include/block.h
+++ b/include/block.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BLOCK_H
 #define __BLOCK_H
 
 #include <driver.h>
 #include <linux/list.h>
 
 struct block_device;
 
 struct block_device_ops {
 	int (*read)(struct block_device *, void *buf, int block, int num_blocks);
 	int (*write)(struct block_device *, const void *buf, int block, int num_blocks);
 	int (*flush)(struct block_device *);
 };
 
 struct chunk;
diff --git a/include/blspec.h b/include/blspec.h
index 7d911f030b..37076cd47c 100644
--- a/include/blspec.h
+++ b/include/blspec.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LOADER_H__
 #define __LOADER_H__
 
 #include <linux/list.h>
 #include <boot.h>
 
 struct blspec_entry {
 	struct bootentry entry;
 
 	struct device_node *node;
 	struct cdev *cdev;
 	char *rootpath;
 	char *configpath;
 };
 
diff --git a/include/boot.h b/include/boot.h
index 4f7612ab80..4054c27d93 100644
--- a/include/boot.h
+++ b/include/boot.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOT_H
 #define __BOOT_H
 
 #include <of.h>
 #include <menu.h>
 #include <environment.h>
 
 #ifdef CONFIG_FLEXIBLE_BOOTARGS
 const char *linux_bootargs_get(void);
 int linux_bootargs_overwrite(const char *bootargs);
 #else
 static inline const char *linux_bootargs_get(void)
 {
 	return getenv("bootargs");
 }
diff --git a/include/bootchooser.h b/include/bootchooser.h
index 7822c01459..2cfd5b126a 100644
--- a/include/bootchooser.h
+++ b/include/bootchooser.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTCHOOSER_H
 #define __BOOTCHOOSER_H
 
 #include <of.h>
 #include <boot.h>
 
 struct bootchooser;
 struct bootchooser_target;
 
 struct bootchooser *bootchooser_get(void);
 int bootchooser_save(struct bootchooser *bootchooser);
 int bootchooser_put(struct bootchooser *bootchooser);
 
 void bootchooser_info(struct bootchooser *bootchooser);
 
diff --git a/include/bootm.h b/include/bootm.h
index fdc73f711a..6c66015761 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTM_H
 #define __BOOTM_H
 
 #include <image.h>
 #include <filetype.h>
 #include <linux/list.h>
 
 enum bootm_verify {
 	BOOTM_VERIFY_NONE,
 	BOOTM_VERIFY_HASH,
 	BOOTM_VERIFY_SIGNATURE,
 	BOOTM_VERIFY_AVAILABLE,
 };
 
 struct bootm_data {
diff --git a/include/bootsource.h b/include/bootsource.h
index 29347aaeb0..d9aba1fdcd 100644
--- a/include/bootsource.h
+++ b/include/bootsource.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTSOURCE_H__
 #define __BOOTSOURCE_H__
 
 enum bootsource {
 	BOOTSOURCE_UNKNOWN,
 	BOOTSOURCE_NAND,
 	BOOTSOURCE_NOR,
 	BOOTSOURCE_MMC,
 	BOOTSOURCE_I2C,
 	BOOTSOURCE_I2C_EEPROM,
 	BOOTSOURCE_SPI,
 	BOOTSOURCE_SPI_EEPROM,
 	BOOTSOURCE_SPI_NOR,
 	BOOTSOURCE_SERIAL,
 	BOOTSOURCE_ONENAND,
diff --git a/include/bunzip2.h b/include/bunzip2.h
index 115272137a..55404ff846 100644
--- a/include/bunzip2.h
+++ b/include/bunzip2.h
@@ -1,10 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef DECOMPRESS_BUNZIP2_H
 #define DECOMPRESS_BUNZIP2_H
 
 int bunzip2(unsigned char *inbuf, int len,
 	    int(*fill)(void*, unsigned int),
 	    int(*flush)(void*, unsigned int),
 	    unsigned char *output,
 	    int *pos,
 	    void(*error)(char *x));
 #endif
diff --git a/include/byteorder.h b/include/byteorder.h
index 4b255a5fab..c3cac85013 100644
--- a/include/byteorder.h
+++ b/include/byteorder.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BYTEORDER_H__
 #define __BYTEORDER_H__
 
 /*
  * The standard macros for converting between host and network byte order are
  * badly named. So ntohl converts 32 bits even on architectures where a long is
  * 64 bit wide although the 'l' suffix suggests that it's working on longs.
  *
  * So this file introduces variants that use the bitcount as suffix instead of
  * 's' or 'l'.
  */
 
 #include <asm/byteorder.h>
 
 #define ntoh16(x)	__be16_to_cpu(x)
diff --git a/include/cache.h b/include/cache.h
index 23841dcd06..37e008794b 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -1,14 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CACHE_H
 #define __CACHE_H
 
 int	icache_status (void);
 void	icache_enable (void);
 void	icache_disable(void);
 int	dcache_status (void);
 void	dcache_enable (void);
 void	dcache_disable(void);
 int	checkicache   (void);
 int	checkdcache   (void);
 
 #endif /* __CACHE_H */
 
diff --git a/include/clock.h b/include/clock.h
index 5f2f53ab66..ec8fff6e94 100644
--- a/include/clock.h
+++ b/include/clock.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef CLOCK_H
 #define CLOCK_H
 
 #include <types.h>
 #include <linux/time.h>
 
 #define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
 
 struct clocksource {
 	uint32_t	shift;
 	uint32_t	mult;
 	uint64_t	(*read)(void);
 	uint64_t	cycle_last;
 	uint64_t	mask;
 	int		priority;
diff --git a/include/cmdlinepart.h b/include/cmdlinepart.h
index bf8cdfa62a..9f5bdf610a 100644
--- a/include/cmdlinepart.h
+++ b/include/cmdlinepart.h
@@ -1,14 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CMD_LINE_PART_H
 #define __CMD_LINE_PART_H
 
 #define CMDLINEPART_ADD_DEVNAME (1 << 0)
 
 int cmdlinepart_do_parse_one(const char *devname, const char *partstr,
 				 const char **endp, loff_t *offset,
 				 loff_t devsize, loff_t *retsize,
 				 unsigned int partition_flags);
 
 int cmdlinepart_do_parse(const char *devname, const char *parts, loff_t devsize,
 		unsigned partition_flags);
 
 #endif /* __CMD_LINE_PART_H */
diff --git a/include/complete.h b/include/complete.h
index 491ba66cb4..763d256bf4 100644
--- a/include/complete.h
+++ b/include/complete.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __COMPLETE_
 #define __COMPLETE_
 
 #include <linux/list.h>
 #include <malloc.h>
 #include <stringlist.h>
 
 #define COMPLETE_END		0
 #define COMPLETE_CONTINUE	1
 
 int complete(char *instr, char **outstr);
 void complete_reset(void);
 
 int command_complete(struct string_list *sl, char *instr);
 int device_complete(struct string_list *sl, char *instr);
diff --git a/include/console_countdown.h b/include/console_countdown.h
index c6c2d5c00e..6586808ff2 100644
--- a/include/console_countdown.h
+++ b/include/console_countdown.h
@@ -1,13 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CONSOLE_COUNTDOWN_H
 #define __CONSOLE_COUNTDOWN_H
 
 #define CONSOLE_COUNTDOWN_SILENT (1 << 0)
 #define CONSOLE_COUNTDOWN_ANYKEY (1 << 1)
 #define CONSOLE_COUNTDOWN_RETURN (1 << 3)
 #define CONSOLE_COUNTDOWN_CTRLC (1 << 4)
 #define CONSOLE_COUNTDOWN_EXTERN (1 << 5)
 
 int console_countdown(int timeout_s, unsigned flags, char *out_key);
 void console_countdown_abort(void);
 
 #endif /* __CONSOLE_COUNTDOWN_H */
diff --git a/include/crc.h b/include/crc.h
index 847a0a4b64..e25d24d1b6 100644
--- a/include/crc.h
+++ b/include/crc.h
@@ -1,14 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_CRC_H
 #define __INCLUDE_CRC_H
 
 #include <linux/types.h>
 
 /* 16 bit CRC with polynomial x^16+x^12+x^5+1 */
 extern uint16_t cyg_crc16(const unsigned char *s, int len);
 
 uint32_t crc32(uint32_t, const void *, unsigned int);
 uint32_t crc32_no_comp(uint32_t, const void *, unsigned int);
 int file_crc(char *filename, unsigned long start, unsigned long size,
 	     unsigned long *crc, unsigned long *total);
 
 #endif /* __INCLUDE_CRC_H */
diff --git a/include/crc7.h b/include/crc7.h
index 0c41cc341f..27d2dae422 100644
--- a/include/crc7.h
+++ b/include/crc7.h
@@ -1,14 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_CRC7_H
 #define _LINUX_CRC7_H
 #include <common.h>
 
 extern const u8 crc7_syndrome_table[256];
 
 static inline u8 crc7_byte(u8 crc, u8 data)
 {
 	return crc7_syndrome_table[(crc << 1) ^ data];
 }
 
 extern u8 crc7(u8 crc, const u8 *buffer, size_t len);
 
 #endif
diff --git a/include/dirent.h b/include/dirent.h
index 1df5d90452..d7b5e78b27 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __DIRENT_H
 #define __DIRENT_H
 
 #include <linux/list.h>
 
 struct dirent {
 	char d_name[256];
 };
 
 typedef struct dir {
 	struct device_d *dev;
 	struct fs_driver_d *fsdrv;
 	struct node_d *node;
 	struct dirent d;
 	void *priv; /* private data for the fs driver */
diff --git a/include/dma-dir.h b/include/dma-dir.h
index 970764c5b3..d3b1a27b4f 100644
--- a/include/dma-dir.h
+++ b/include/dma-dir.h
@@ -1,11 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __DMA_DIR_H
 #define __DMA_DIR_H
 
 enum dma_data_direction {
 	DMA_BIDIRECTIONAL = 0,
 	DMA_TO_DEVICE = 1,
 	DMA_FROM_DEVICE = 2,
 	DMA_NONE = 3,
 };
 
 #endif /* __DMA_DIR_H */
diff --git a/include/efi.h b/include/efi.h
index 7cc5fe05fa..7c7d8ebd07 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_EFI_H
 #define _LINUX_EFI_H
 
 /*
  * Extensible Firmware Interface
  * Based on 'Extensible Firmware Interface Specification' version 0.9, April 30, 1999
  *
  * Copyright (C) 1999 VA Linux Systems
  * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
  * Copyright (C) 1999, 2002-2003 Hewlett-Packard Co.
  *	David Mosberger-Tang <davidm@hpl.hp.com>
  *	Stephane Eranian <eranian@hpl.hp.com>
  */
 #include <linux/string.h>
 #include <linux/types.h>
diff --git a/include/elf.h b/include/elf.h
index 92c8d9c127..3566df8526 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_ELF_H
 #define _LINUX_ELF_H
 
 #include <linux/types.h>
 #include <linux/list.h>
 //#include <linux/auxvec.h>
 //#include <linux/elf-em.h>
 #include <asm/elf.h>
 
 struct file;
 
 #ifndef elf_read_implies_exec
   /* Executables for which elf_read_implies_exec() returns TRUE will
      have the READ_IMPLIES_EXEC personality flag set automatically.
      Override in asm/elf.h as needed.  */
diff --git a/include/envfs.h b/include/envfs.h
index 27c4b42c6b..b138eafed2 100644
--- a/include/envfs.h
+++ b/include/envfs.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _ENVFS_H
 #define _ENVFS_H
 
 #ifdef __BAREBOX__
 #include <errno.h>
 #include <asm/byteorder.h>
 #include <linux/stringify.h>
 #endif
 
 #define ENVFS_MAJOR		1
 #define ENVFS_MINOR		0
 
 #define ENVFS_MAGIC		    0x798fba79	/* some random number */
 #define ENVFS_INODE_MAGIC	0x67a8c78d
 #define ENVFS_INODE_END_MAGIC	0x68a8c78d
diff --git a/include/errno.h b/include/errno.h
index 496ccab0ee..50f00de5d6 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __ERRNO_H
 #define __ERRNO_H
 
 #include <asm-generic/errno.h>
 #include <linux/err.h>
 
 extern int errno;
 
 void perror(const char *s);
 const char *errno_str(void);
 const char *strerror(int errnum);
 
 static inline const char *strerrorp(const void *errp)
 {
 	return strerror(-PTR_ERR(errp));
diff --git a/include/fb.h b/include/fb.h
index 271b939968..e17d07ae0c 100644
--- a/include/fb.h
+++ b/include/fb.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FB_H
 #define __FB_H
 
 #include <ioctl.h>
 #include <param.h>
 #include <driver.h>
 #include <linux/bitops.h>
 
 #define FB_VISUAL_TRUECOLOR		2	/* True color	*/
 #define FB_VISUAL_PSEUDOCOLOR		3	/* Pseudo color (like atari) */
 #define FB_VISUAL_DIRECTCOLOR		4	/* Direct color */
 #define FB_VISUAL_STATIC_PSEUDOCOLOR	5	/* Pseudo color readonly */
 
 #define FB_SYNC_HOR_HIGH_ACT	1	/* horizontal sync high active	*/
 #define FB_SYNC_VERT_HIGH_ACT	2	/* vertical sync high active	*/
diff --git a/include/fcntl.h b/include/fcntl.h
index 98020bdfb1..2e7c0eed34 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FCNTL_H
 #define __FCNTL_H
 
 #include <linux/types.h>
 
 /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
    located on an ext2 file system */
 #define O_ACCMODE	00000003
 #define O_RDONLY	00000000
 #define O_WRONLY	00000001
 #define O_RDWR		00000002
 #define O_CREAT		00000100	/* not fcntl */
 #define O_EXCL		00000200	/* not fcntl */
 #define O_TRUNC		00001000	/* not fcntl */
 #define O_APPEND	00002000
diff --git a/include/fdt.h b/include/fdt.h
index 1ccd4c6734..387df867db 100644
--- a/include/fdt.h
+++ b/include/fdt.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _FDT_H
 #define _FDT_H
 
 #include <linux/types.h>
 
 #ifndef __ASSEMBLY__
 
 #define _B(n)	((unsigned long long)((uint8_t *)&x)[n])
 
 #define fdt32_to_cpu(x)	be32_to_cpu(x)
 #define cpu_to_fdt32(x) cpu_to_be32(x)
 
 static inline uint64_t fdt64_to_cpu(uint64_t x)
 {
 	return (_B(0) << 56) | (_B(1) << 48) | (_B(2) << 40) | (_B(3) << 32)
diff --git a/include/file-list.h b/include/file-list.h
index 404d8d64bb..9a9edfa378 100644
--- a/include/file-list.h
+++ b/include/file-list.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FILE_LIST
 #define __FILE_LIST
 
 #define FILE_LIST_FLAG_SAFE	(1 << 0)
 #define FILE_LIST_FLAG_READBACK	(1 << 1)
 #define FILE_LIST_FLAG_CREATE	(1 << 2)
 #define FILE_LIST_FLAG_UBI	(1 << 3)
 
 struct file_list_entry {
 	char *name;
 	char *filename;
 	unsigned long flags;
 	struct list_head list;
 };
 
diff --git a/include/filetype.h b/include/filetype.h
index 395053dd59..c83a845eef 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FILE_TYPE_H
 #define __FILE_TYPE_H
 
 #include <linux/string.h>
 #include <linux/types.h>
 
 /*
  * List of file types we know
  */
 enum filetype {
 	filetype_unknown,
 	filetype_arm_zimage,
 	filetype_lzo_compressed,
 	filetype_lz4_compressed,
 	filetype_arm_barebox,
diff --git a/include/fs.h b/include/fs.h
index 181318f404..e21a877619 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FS_H
 #define __FS_H
 
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <dirent.h>
 #include <sys/mount.h>
 #include <sys/stat.h>
 #include <driver.h>
 #include <filetype.h>
 #include <linux/fs.h>
 #include <linux/string.h>
 
 #define PATH_MAX       1024        /* include/linux/limits.h */
diff --git a/include/globalvar.h b/include/globalvar.h
index 67391e2042..fc85e93e14 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __GLOBALVAR_H
 #define __GLOBALVAR_H
 
 #include <param.h>
 #include <driver.h>
 #include <linux/err.h>
 #include <stringlist.h>
 
 extern struct device_d global_device;
 
 #ifdef CONFIG_GLOBALVAR
 int globalvar_add_simple(const char *name, const char *value);
 
 void globalvar_remove(const char *name);
 char *globalvar_get_match(const char *match, const char *separator);
diff --git a/include/gpio.h b/include/gpio.h
index 38d6ba2df9..bef03d5fb9 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __GPIO_H
 #define __GPIO_H
 
 #include <linux/types.h>
 #include <linux/list.h>
 
 #ifdef CONFIG_GENERIC_GPIO
 void gpio_set_value(unsigned gpio, int value);
 int gpio_get_value(unsigned gpio);
 int gpio_direction_output(unsigned gpio, int value);
 int gpio_direction_input(unsigned gpio);
 #else
 static inline void gpio_set_value(unsigned gpio, int value)
 {
 }
diff --git a/include/gpio_keys.h b/include/gpio_keys.h
index f4a22e16db..f12bed2a0b 100644
--- a/include/gpio_keys.h
+++ b/include/gpio_keys.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _GPIO_KEYS_H
 #define _GPIO_KEYS_H
 
 #include <poller.h>
 #include <kfifo.h>
 
 struct gpio_keys_button {
 	/* Configuration parameters */
 	int code;
 
 	int gpio;
 	int active_low;
 };
 
 struct gpio_keys_platform_data {
diff --git a/include/gunzip.h b/include/gunzip.h
index b9018941d1..0a959d5eb7 100644
--- a/include/gunzip.h
+++ b/include/gunzip.h
@@ -1,10 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef GUNZIP_H
 #define GUNZIP_H
 
 int gunzip(unsigned char *inbuf, int len,
 	   int(*fill)(void*, unsigned int),
 	   int(*flush)(void*, unsigned int),
 	   unsigned char *output,
 	   int *pos,
 	   void(*error_fn)(char *x));
 #endif
diff --git a/include/image-metadata.h b/include/image-metadata.h
index 8739bffb92..232ba8e705 100644
--- a/include/image-metadata.h
+++ b/include/image-metadata.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_IMAGE_METADTA_H
 #define __INCLUDE_IMAGE_METADTA_H
 
 /*
  * barebox Image MetaData (IMD)
  *
  * IMD is a mechanism to store metadata in barebox images. With IMD
  * it's possible to extract the release, the build timestamp and the
  * board type from a barebox image.
  *
  * Since there is no fixed place in the image suitable for all SoC image
  * types the metadata can be stored anywhere in the image and is found
  * by iterating over the image. The metadata starts with a start header
  * and ends with an end header. All tags in between carry the payload.
  *
diff --git a/include/init.h b/include/init.h
index 527d49afec..d1cef14b07 100644
--- a/include/init.h
+++ b/include/init.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _INIT_H
 #define _INIT_H
 
 /*
  * fake define to simplify the linux sync
  */
 #define __init
 #define __initdata
 #define __initconst
 #define __exit
 #define __exitdata
 
 /* For assembly routines */
 #define __BARE_INIT	.section ".text_bare_init.text","ax"
 
diff --git a/include/io.h b/include/io.h
index 8eb56b061f..9130020722 100644
--- a/include/io.h
+++ b/include/io.h
@@ -1,6 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __IO_H
 #define __IO_H
 
 #include <asm/io.h>
 
 #endif /* __IO_H */
diff --git a/include/ioctl.h b/include/ioctl.h
index 1ade20f905..3290a52519 100644
--- a/include/ioctl.h
+++ b/include/ioctl.h
@@ -1,6 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __IOCTL_H
 #define __IOCTL_H
 
 #include <asm-generic/ioctl.h>
 
 #endif /* __IOCTL_H */
diff --git a/include/kallsyms.h b/include/kallsyms.h
index 69b84d2c6c..e0b3ff7cd5 100644
--- a/include/kallsyms.h
+++ b/include/kallsyms.h
@@ -1,12 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __KALLSYMS_H
 #define __KALLSYMS_H
 
 #define KSYM_NAME_LEN 128
 #define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + (KSYM_NAME_LEN - 1) + \
 		2*(BITS_PER_LONG*3/10) + (MODULE_NAME_LEN - 1) + 1)
 unsigned long kallsyms_lookup_name(const char *name);
 
 /* Look up a kernel symbol and return it in a text buffer. */
 int sprint_symbol(char *buffer, unsigned long address);
 
 #endif /* __KALLSYMS_H */
diff --git a/include/kgdb.h b/include/kgdb.h
index f543cd6e18..1f23833f92 100644
--- a/include/kgdb.h
+++ b/include/kgdb.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __KGDB_H__
 #define __KGDB_H__
 
 #include <asm/ptrace.h>
 
 #define KGDBERR_BADPARAMS	1
 #define KGDBERR_NOTHEXDIG	2
 #define KGDBERR_MEMFAULT	3
 #define KGDBERR_NOSPACE		4
 #define KGDBERR_ALIGNFAULT	5
 
 #define KGDBDATA_MAXREGS	8
 #define KGDBDATA_MAXPRIV	8
 
 #define KGDBEXIT_TYPEMASK	0xff
diff --git a/include/led.h b/include/led.h
index 0ce857129d..6b6aff922a 100644
--- a/include/led.h
+++ b/include/led.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LED_H
 #define __LED_H
 
 #include <linux/list.h>
 
 #include <errno.h>
 #include <of.h>
 
 struct led {
 	void (*set)(struct led *, unsigned int value);
 	int max_value;
 	char *name;
 	int num;
 	struct list_head list;
 
diff --git a/include/libbb.h b/include/libbb.h
index 1f6afaa27a..a365f1d5a1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1,16 +1,16 @@
-
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBBB_H
 #define __LIBBB_H
 
 #include <linux/stat.h>
 
 #define DOT_OR_DOTDOT(s) ((s)[0] == '.' && (!(s)[1] || ((s)[1] == '.' && !(s)[2])))
 
 char *concat_path_file(const char *path, const char *filename);
 char *concat_subpath_file(const char *path, const char *f);
 int execable_file(const char *name);
 char *find_execable(const char *filename);
 char* last_char_is(const char *s, int c);
 
 enum {
 	ACTION_RECURSE     = (1 << 0),
diff --git a/include/libfile.h b/include/libfile.h
index f1d6951877..350ddddf70 100644
--- a/include/libfile.h
+++ b/include/libfile.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBFILE_H
 #define __LIBFILE_H
 
 int pwrite_full(int fd, const void *buf, size_t size, loff_t offset);
 int write_full(int fd, const void *buf, size_t size);
 int read_full(int fd, void *buf, size_t size);
 
 char *read_file_line(const char *fmt, ...);
 
 void *read_file(const char *filename, size_t *size);
 
 int read_file_2(const char *filename, size_t *size, void **outbuf,
 		loff_t max_size);
 
 int write_file(const char *filename, const void *buf, size_t size);
diff --git a/include/libgen.h b/include/libgen.h
index 71f06eb6f6..6c0f039efa 100644
--- a/include/libgen.h
+++ b/include/libgen.h
@@ -1,9 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBGEN_H
 #define __LIBGEN_H
 
 char *basename (char *path);
 char *posix_basename(char *path);
 char *dirname (char *path);
 
 #endif /* __LIBGEN_H */
 
diff --git a/include/lzo.h b/include/lzo.h
index 6c34be13ef..f46f38b0ed 100644
--- a/include/lzo.h
+++ b/include/lzo.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LZO_H__
 #define __LZO_H__
 /*
  *  LZO Public Kernel Interface
  *  A mini subset of the LZO real-time data compression library
  *
  *  Copyright (C) 1996-2012 Markus F.X.J. Oberhumer <markus@oberhumer.com>
  *
  *  The full LZO package can be found at:
  *  http://www.oberhumer.com/opensource/lzo/
  *
  *  Changed for Linux kernel use by:
  *  Nitin Gupta <nitingupta910@gmail.com>
  *  Richard Purdie <rpurdie@openedhand.com>
  */
diff --git a/include/magicvar.h b/include/magicvar.h
index bb5bd2591f..9fb89a84cc 100644
--- a/include/magicvar.h
+++ b/include/magicvar.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MAGIC_VARS_H
 #define __MAGIC_VARS_H
 
 #include <linux/stringify.h>
 
 struct magicvar {
 	const char *name;
 	const char *description;
 };
 
 extern struct magicvar __barebox_magicvar_start;
 extern struct magicvar __barebox_magicvar_end;
 
 #ifdef CONFIG_CMD_MAGICVAR_HELP
 #define MAGICVAR_DESCRIPTION(d)		(d)
diff --git a/include/malloc.h b/include/malloc.h
index 0d3c9e97a0..971fc4058b 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MALLOC_H
 #define __MALLOC_H
 
 #include <types.h>
 
 void *malloc(size_t);
 void free(void *);
 void *realloc(void *, size_t);
 void *memalign(size_t, size_t);
 void *calloc(size_t, size_t);
 void malloc_stats(void);
 void *sbrk(ptrdiff_t increment);
 
 int mem_malloc_is_initialized(void);
 
diff --git a/include/math.h b/include/math.h
index 5648e3f9c1..1e59a8479e 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /* math.h - interface to shell math "library" -- this allows shells to share
  *          the implementation of arithmetic $((...)) expansions.
  *
  * This aims to be a POSIX shell math library as documented here:
  *	http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04
  *
  * See math.c for internal documentation.
  */
 
 /* The math library has just one function:
  *
  * arith_t arith(arith_state_t *state, const char *expr);
  *
  * The expr argument is the math string to parse.  All normal expansions must
  * be done already.  i.e. no dollar symbols should be present.
diff --git a/include/memory.h b/include/memory.h
index 73ee7661ef..906d9f7b26 100644
--- a/include/memory.h
+++ b/include/memory.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MEM_MALLOC_H
 #define __MEM_MALLOC_H
 
 #include <linux/types.h>
 #include <linux/list.h>
 
 void mem_malloc_init(void *start, void *end);
 ulong mem_malloc_start(void);
 ulong mem_malloc_end(void);
 
 struct memory_bank {
 	struct list_head list;
 	struct device_d *dev;
 	unsigned long start;
 	unsigned long size;
diff --git a/include/memtest.h b/include/memtest.h
index 0100a6c58c..df0a391cc3 100644
--- a/include/memtest.h
+++ b/include/memtest.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MEMTEST_H
 #define __MEMTEST_H
 
 #include <linux/ioport.h>
 
 struct mem_test_resource {
 	struct resource *r;
 	struct list_head list;
 };
 
 int mem_test_request_regions(struct list_head *list);
 void mem_test_release_regions(struct list_head *list);
 struct mem_test_resource *mem_test_biggest_region(struct list_head *list);
 
 int mem_test_bus_integrity(resource_size_t _start, resource_size_t _end);
diff --git a/include/mmu.h b/include/mmu.h
index 66b246f6d2..2e23853df3 100644
--- a/include/mmu.h
+++ b/include/mmu.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MMU_H
 #define __MMU_H
 
 #define MAP_UNCACHED	0
 #define MAP_CACHED	1
 
 /*
  * Depending on the architecture the default mapping can be
  * cached or uncached. Without ARCH_HAS_REMAP being set this
  * is mapping type is the only one supported.
  */
 #define MAP_DEFAULT	MAP_ARCH_DEFAULT
 
 #include <asm/mmu.h>
 
diff --git a/include/module.h b/include/module.h
index 460a34fe2b..abf740a789 100644
--- a/include/module.h
+++ b/include/module.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MODULE_H
 #define __MODULE_H
 
 #include <elf.h>
 #include <linux/compiler.h>
 #include <linux/list.h>
 
 #ifndef MODULE_SYMBOL_PREFIX
 #define MODULE_SYMBOL_PREFIX
 #endif
 
 #define MODULE_NAME_LEN (64 - sizeof(unsigned long))
 #define THIS_MODULE	0
 
 #ifdef CONFIG_MODULES
diff --git a/include/nand.h b/include/nand.h
index fb3b5a1088..f0114a227d 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __NAND_H__
 #define __NAND_H__
 
 struct nand_bb;
 
 #ifdef CONFIG_NAND
 int dev_add_bb_dev(const char *filename, const char *name);
 int dev_remove_bb_dev(const char *name);
 struct cdev *mtd_add_bb(struct mtd_info *mtd, const char *name);
 void mtd_del_bb(struct mtd_info *mtd);
 #else
 static inline int dev_add_bb_dev(const char *filename, const char *name) {
 	return 0;
 }
 static inline int dev_remove_bb_dev(const char *name)
diff --git a/include/notifier.h b/include/notifier.h
index e0df3e666b..432b66c4ca 100644
--- a/include/notifier.h
+++ b/include/notifier.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __NOTIFIER_H
 #define __NOTIFIER_H
 
 #include <linux/list.h>
 
 /*
  * Notifer chains loosely based on the according Linux framework
  */
 
 struct notifier_block {
 	int (*notifier_call)(struct notifier_block *, unsigned long, void *);
 	struct list_head list;
 };
 
 struct notifier_head {
diff --git a/include/of.h b/include/of.h
index 184acb4741..e5d73fe970 100644
--- a/include/of.h
+++ b/include/of.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_H
 #define __OF_H
 
 #include <fdt.h>
 #include <errno.h>
 #include <linux/types.h>
 #include <linux/list.h>
 #include <asm/byteorder.h>
 
 /* Default string compare functions */
 #define of_compat_cmp(s1, s2, l)	strcasecmp((s1), (s2))
 #define of_prop_cmp(s1, s2)		strcmp((s1), (s2))
 #define of_node_cmp(s1, s2)		strcasecmp((s1), (s2))
 
 #define OF_BAD_ADDR      ((u64)-1)
diff --git a/include/of_address.h b/include/of_address.h
index ebf3ec2a24..37aa037118 100644
--- a/include/of_address.h
+++ b/include/of_address.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_ADDRESS_H
 #define __OF_ADDRESS_H
 
 #include <common.h>
 #include <of.h>
 
 struct of_pci_range_parser {
 	struct device_node *node;
 	const __be32 *range;
 	const __be32 *end;
 	int np;
 	int pna;
 };
 
 struct of_pci_range {
diff --git a/include/of_device.h b/include/of_device.h
index 44c1c0f545..d9b36e61af 100644
--- a/include/of_device.h
+++ b/include/of_device.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_DEVICE_H
 #define __OF_DEVICE_H
 
 #include <driver.h>
 #include <of.h>
 
 
 #ifdef CONFIG_OFTREE
 extern const struct of_device_id *of_match_device(
 	const struct of_device_id *matches, const struct device_d *dev);
 
 /**
  * of_driver_match_device - Tell if a driver's of_match_table matches a device.
  * @drv: the device_driver structure to test
  * @dev: the device structure to match against
diff --git a/include/of_pci.h b/include/of_pci.h
index c95cb0135a..c787150936 100644
--- a/include/of_pci.h
+++ b/include/of_pci.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_PCI_H
 #define __OF_PCI_H
 
 #include <linux/pci.h>
 
 #ifdef CONFIG_OF_PCI
 int of_pci_get_devfn(struct device_node *np);
 
 #else
 static inline int of_pci_get_devfn(struct device_node *np)
 {
 	return -EINVAL;
 }
 
 #endif
diff --git a/include/param.h b/include/param.h
index b618a2305d..338fbc6fc4 100644
--- a/include/param.h
+++ b/include/param.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef PARAM_H
 #define PARAM_H
 
 #include <linux/err.h>
 #include <linux/types.h>
 #include <linux/list.h>
 
 #define PARAM_FLAG_RO	(1 << 0)
 #define PARAM_GLOBALVAR_UNQUALIFIED	(1 << 1)
 
 struct device_d;
 typedef uint32_t          IPaddr_t;
 
 enum param_type {
 	PARAM_TYPE_STRING = 0,
diff --git a/include/parseopt.h b/include/parseopt.h
index 273a371ac3..5a40bdc219 100644
--- a/include/parseopt.h
+++ b/include/parseopt.h
@@ -1,11 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PARSEOPT_H__
 #define __PARSEOPT_H__
 void parseopt_llu_suffix(const char *options, const char *opt,
 			 unsigned long long *val);
 
 void parseopt_b(const char *options, const char *opt, bool *val);
 void parseopt_hu(const char *options, const char *opt, unsigned short *val);
 void parseopt_u16(const char *options, const char *opt, uint16_t *val);
 void parseopt_str(const char *options, const char *opt, char **val);
 
 #endif /* __PARSEOPT_H__ */
diff --git a/include/partition.h b/include/partition.h
index 32570530eb..373134afad 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PARTITION_H
 #define __PARTITION_H
 
 #include <driver.h>
 
 struct partition {
         int num;
 
 	int flags;
 
         loff_t offset;
 
         struct device_d *physdev;
         struct device_d device;
 
diff --git a/include/phy-id-list.h b/include/phy-id-list.h
index a6070a0248..f770c775b8 100644
--- a/include/phy-id-list.h
+++ b/include/phy-id-list.h
@@ -1,12 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * List of all Etherenet PHY IDs that is not found in any .h files in
  * include/linux
  */
 
 
 #ifndef __PHY_ID_LIST__
 #define __PHY_ID_LIST__
 
 #define PHY_ID_BCM54220 0x600d8589
 
 #endif
diff --git a/include/pinctrl.h b/include/pinctrl.h
index 7d8716996d..0fd7f49118 100644
--- a/include/pinctrl.h
+++ b/include/pinctrl.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef PINCTRL_H
 #define PINCTRL_H
 
 struct pinctrl_device;
 
 struct pinctrl_ops {
 	int (*set_state)(struct pinctrl_device *, struct device_node *);
 	int (*set_direction)(struct pinctrl_device *, unsigned int, bool);
 	int (*get_direction)(struct pinctrl_device *, unsigned int);
 };
 
 struct pinctrl_device {
 	struct device_d *dev;
 	struct pinctrl_ops *ops;
 	struct list_head list;
diff --git a/include/poweroff.h b/include/poweroff.h
index ae9557db5d..217b68cdf9 100644
--- a/include/poweroff.h
+++ b/include/poweroff.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_POWEROFF_H
 #define __INCLUDE_POWEROFF_H
 
 void __noreturn poweroff_machine(void);
 
 struct poweroff_handler {
 	void (*poweroff)(struct poweroff_handler *);
 	int priority;
 	const char *name;
 	struct list_head list;
 };
 
 int poweroff_handler_register(struct poweroff_handler *);
 int poweroff_handler_register_fn(void (*poweroff_fn)(struct poweroff_handler *));
 
diff --git a/include/printk.h b/include/printk.h
index ab2c64cf3c..5140b0c828 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PRINTK_H
 #define __PRINTK_H
 
 #include <linux/list.h>
 
 #define MSG_EMERG      0    /* system is unusable */
 #define MSG_ALERT      1    /* action must be taken immediately */
 #define MSG_CRIT       2    /* critical conditions */
 #define MSG_ERR        3    /* error conditions */
 #define MSG_WARNING    4    /* warning conditions */
 #define MSG_NOTICE     5    /* normal but significant condition */
 #define MSG_INFO       6    /* informational */
 #define MSG_DEBUG      7    /* debug-level messages */
 #define MSG_VDEBUG     8    /* verbose debug messages */
 
diff --git a/include/progress.h b/include/progress.h
index 5c4dd1e775..75aa9c4f86 100644
--- a/include/progress.h
+++ b/include/progress.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PROGRSS_H
 #define __PROGRSS_H
 
 /* Initialize a progress bar. If max > 0 a one line progress
  * bar is printed where 'max' corresponds to 100%. If max == 0
  * a multi line progress bar is printed.
  */
 void init_progression_bar(int max);
 
 /* update a progress bar to a new value. If now < 0 then a
  * spinner is printed.
  */
 void show_progress(int now);
 
 #endif /*  __PROGRSS_H */
diff --git a/include/pwm.h b/include/pwm.h
index 911c760839..dcc81af867 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PWM_H
 #define __PWM_H
 
 struct pwm_device;
 struct device_d;
 
 /*
  * pwm_request - request a PWM device
  */
 struct pwm_device *pwm_request(const char *pwmname);
 
 struct pwm_device *of_pwm_request(struct device_node *np, const char *con_id);
 
 /*
  * pwm_free - free a PWM device
diff --git a/include/qsort.h b/include/qsort.h
index d279dc2810..f8d889ea1e 100644
--- a/include/qsort.h
+++ b/include/qsort.h
@@ -1,9 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __QSORT_H
 #define __QSORT_H
 
 void qsort(void  *base, size_t nel, size_t width,
 	   int (*comp)(const void *, const void *));
 
 int strcmp_compar(const void *p1, const void *p2);
 
 #endif /* __QSORT_H */
diff --git a/include/ratp.h b/include/ratp.h
index d2a8192357..9abe9900ec 100644
--- a/include/ratp.h
+++ b/include/ratp.h
@@ -1,20 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __RATP_H
 #define __RATP_H
 
 struct ratp {
 	struct ratp_internal *internal;
 	int (*send)(struct ratp *, void *pkt, int len);
 	int (*recv)(struct ratp *, uint8_t *data);
 };
 
 int ratp_establish(struct ratp *ratp, bool active, int timeout_ms);
 void ratp_close(struct ratp *ratp);
 int ratp_recv(struct ratp *ratp, void **data, size_t *len);
 int ratp_send(struct ratp *ratp, const void *data, size_t len);
 int ratp_send_complete(struct ratp *ratp, const uint8_t *data, size_t len,
 		   void (*complete)(void *ctx, int status), void *complete_ctx);
 int ratp_poll(struct ratp *ratp);
 bool ratp_closed(struct ratp *ratp);
 bool ratp_busy(struct ratp *ratp);
 
-#endif /* __RATP_H */
\ No newline at end of file
+#endif /* __RATP_H */
diff --git a/include/ratp_bb.h b/include/ratp_bb.h
index b6699979b6..a4f28c642c 100644
--- a/include/ratp_bb.h
+++ b/include/ratp_bb.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __RATP_BB_H
 #define __RATP_BB_H
 
 #include <linux/stringify.h>
 
 #define BB_RATP_TYPE_COMMAND		1
 #define BB_RATP_TYPE_COMMAND_RETURN	2
 #define BB_RATP_TYPE_CONSOLEMSG		3
 #define BB_RATP_TYPE_PING		4
 #define BB_RATP_TYPE_PONG		5
 #define BB_RATP_TYPE_GETENV		6
 #define BB_RATP_TYPE_GETENV_RETURN	7
 #define BB_RATP_TYPE_FS			8
 #define BB_RATP_TYPE_FS_RETURN		9
 #define BB_RATP_TYPE_MD			10
diff --git a/include/readkey.h b/include/readkey.h
index ed1cd1542d..fdb96426e0 100644
--- a/include/readkey.h
+++ b/include/readkey.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef READKEY_H
 #define READKEY_H
 
 #define CTL_CH(c)		((c) - 'a' + 1)
 
 /* Ascii keys */
 #define BB_KEY_ENTER		'\n'
 #define BB_KEY_RETURN		'\r'
 
 /* Misc. non-Ascii keys */
 #define BB_KEY_UP		CTL_CH('p')	/* cursor key Up	*/
 #define BB_KEY_DOWN		CTL_CH('n')	/* cursor key Down	*/
 #define BB_KEY_RIGHT		CTL_CH('f')	/* Cursor Key Right	*/
 #define BB_KEY_LEFT		CTL_CH('b')	/* cursor key Left	*/
 #define BB_KEY_HOME		CTL_CH('a')	/* Cursor Key Home	*/
diff --git a/include/regmap.h b/include/regmap.h
index 09b7b57d52..8528f81079 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __REGMAP_H
 #define __REGMAP_H
 
 /**
  * Configuration for the register map of a device.
  *
  * @name: Optional name of the regmap. Useful when a device has multiple
  *        register regions.
  *
  * @reg_bits: Number of bits in a register address, mandatory.
  * @reg_stride: The register address stride. Valid register addresses are a
  *              multiple of this value. If set to 0, a value of 1 will be
  *              used.
  * @pad_bits: Number of bits of padding between register and value.
  * @val_bits: Number of bits in a register value, mandatory.
diff --git a/include/regulator.h b/include/regulator.h
index 367e13f05b..3f76ff65e9 100644
--- a/include/regulator.h
+++ b/include/regulator.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __REGULATOR_H
 #define __REGULATOR_H
 
 /* struct regulator is an opaque object for consumers */
 struct regulator;
 
 struct regulator_dev {
 	struct regulator_ops *ops;
 	int boot_on;
 };
 
 struct regulator_ops {
 	/* enable/disable regulator */
 	int (*enable) (struct regulator_dev *);
 	int (*disable) (struct regulator_dev *);
diff --git a/include/restart.h b/include/restart.h
index 79b57c8e11..7ec0910e94 100644
--- a/include/restart.h
+++ b/include/restart.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_RESTART_H
 #define __INCLUDE_RESTART_H
 
 void __noreturn restart_machine(void);
 
 struct restart_handler {
 	void (*restart)(struct restart_handler *);
 	int priority;
 	const char *name;
 	struct list_head list;
 };
 
 int restart_handler_register(struct restart_handler *);
 int restart_handler_register_fn(void (*restart_fn)(struct restart_handler *));
 
diff --git a/include/serdev.h b/include/serdev.h
index f5d34f5276..7c17552140 100644
--- a/include/serdev.h
+++ b/include/serdev.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _SERDEV_H_
 #define _SERDEV_H_
 
 #include <driver.h>
 #include <poller.h>
 #include <kfifo.h>
 
 /**
  * struct serdev_device - Basic representation of an serdev device
  *
  * @dev:		Corresponding device
  * @fifo:		Circular buffer used for console draining
  * @buf:		Buffer used to pass Rx data to consumers
  * @poller		Async poller used to poll this serdev
  * @polling_interval:	Async poller periodicity
diff --git a/include/sntp.h b/include/sntp.h
index bfcfcfa8c8..05cad129cd 100644
--- a/include/sntp.h
+++ b/include/sntp.h
@@ -1,8 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __SNTP_H
 #define __SNTP_H
 
 #include <types.h>
 
 s64 sntp(const char *server);
 
 #endif /* __SNTP_H */
diff --git a/include/state.h b/include/state.h
index 4e995a19ef..5bfa426c5e 100644
--- a/include/state.h
+++ b/include/state.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STATE_H
 #define __STATE_H
 
 #include <of.h>
 
 struct state;
 
 int state_backend_dtb_file(struct state *state, const char *of_path,
 		const char *path);
 int state_backend_raw_file(struct state *state, const char *of_path,
 		const char *path, off_t offset, size_t size);
 
 struct state *state_new_from_node(struct device_node *node, bool readonly);
 void state_release(struct state *state);
 
diff --git a/include/stdio.h b/include/stdio.h
index 7b2a42b817..c9b8e376b5 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STDIO_H
 #define __STDIO_H
 
 #include <stdarg.h>
 #include <console.h>
 
 /*
  * STDIO based functions (can always be used)
  */
 
 /* serial stuff */
 void serial_printf(const char *fmt, ...) __attribute__ ((format(__printf__, 1, 2)));
 
 int sprintf(char *buf, const char *fmt, ...) __attribute__ ((format(__printf__, 2, 3)));
 int snprintf(char *buf, size_t size, const char *fmt, ...) __attribute__ ((format(__printf__, 3, 4)));
diff --git a/include/stdlib.h b/include/stdlib.h
index ee3f229968..d405608724 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STDLIB_H
 #define __STDLIB_H
 
 #include <types.h>
 
 #define RAND_MAX 32767
 
 /* return a pseudo-random integer in the range [0, RAND_MAX] */
 unsigned int rand(void);
 
 /* set the seed for rand () */
 void srand(unsigned int seed);
 
 /* fill a buffer with pseudo-random data */
 void get_random_bytes(void *buf, int len);
diff --git a/include/string.h b/include/string.h
index 8c63f22491..120a613d46 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,11 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STRING_H
 #define __STRING_H
 
 #include <linux/string.h>
 
 int strtobool(const char *str, int *val);
 
 void *__default_memset(void *, int, __kernel_size_t);
 void *__default_memcpy(void * dest,const void *src,size_t count);
 
 #endif /* __STRING_H */
diff --git a/include/stringlist.h b/include/stringlist.h
index e85500a994..5cd452ca5f 100644
--- a/include/stringlist.h
+++ b/include/stringlist.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STRINGLIST_H
 #define __STRINGLIST_H
 
 #include <linux/list.h>
 
 struct string_list {
 	struct list_head list;
 	char *str;
 };
 
 int string_list_add(struct string_list *sl, const char *str);
 int string_list_add_asprintf(struct string_list *sl, const char *fmt, ...);
 int string_list_add_sorted(struct string_list *sl, const char *str);
 int string_list_contains(struct string_list *sl, const char *str);
 void string_list_print_by_column(struct string_list *sl);
diff --git a/include/twl6030_pwrbtn.h b/include/twl6030_pwrbtn.h
index c4e13d1f1d..4c8e166256 100644
--- a/include/twl6030_pwrbtn.h
+++ b/include/twl6030_pwrbtn.h
@@ -1,9 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _TWL6030_PWRBTN_H
 #define _TWL6030_PWRBTN_H
 
 struct twl6030_pwrbtn_platform_data {
 	/* key code */
 	int code;
 };
 
 #endif
diff --git a/include/types.h b/include/types.h
index 0bfe3b9a0b..a6739394e0 100644
--- a/include/types.h
+++ b/include/types.h
@@ -1,10 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __TYPES_H
 #define __TYPES_H
 
 #include <linux/types.h>
 
 typedef volatile unsigned long	vu_long;
 typedef volatile unsigned short vu_short;
 typedef volatile unsigned char	vu_char;
 
 #endif /* __TYPES_H */
diff --git a/include/ubiformat.h b/include/ubiformat.h
index 8a7a16ac18..eca62ae6db 100644
--- a/include/ubiformat.h
+++ b/include/ubiformat.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UBIFORMAT_H
 #define __UBIFORMAT_H
 
 #include <linux/types.h>
 
 struct ubiformat_args {
 	unsigned int yes:1;
 	unsigned int quiet:1;
 	unsigned int verbose:1;
 	unsigned int override_ec:1;
 	unsigned int novtbl:1;
 	unsigned int manual_subpage;
 	int subpage_size;
 	int vid_hdr_offs;
 	int ubi_ver;
diff --git a/include/uncompress.h b/include/uncompress.h
index d146c90768..4bdb03d4f5 100644
--- a/include/uncompress.h
+++ b/include/uncompress.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UNCOMPRESS_H
 #define __UNCOMPRESS_H
 
 int uncompress(unsigned char *inbuf, int len,
 	   int(*fill)(void*, unsigned int),
 	   int(*flush)(void*, unsigned int),
 	   unsigned char *output,
 	   int *pos,
 	   void(*error_fn)(char *x));
 
 int uncompress_fd_to_fd(int infd, int outfd,
 	   void(*error_fn)(char *x));
 
 int uncompress_fd_to_buf(int infd, void *output,
 	   void(*error_fn)(char *x));
diff --git a/include/unistd.h b/include/unistd.h
index f392e6dd6c..06ce355809 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UNISTD_H
 #define __UNISTD_H
 
 #include <linux/types.h>
 
 struct stat;
 
 int unlink(const char *pathname);
 int close(int fd);
 int lstat(const char *filename, struct stat *s);
 int stat(const char *filename, struct stat *s);
 int fstat(int fd, struct stat *s);
 ssize_t read(int fd, void *buf, size_t count);
 ssize_t pread(int fd, void *buf, size_t count, loff_t offset);
 ssize_t write(int fd, const void *buf, size_t count);
diff --git a/include/usb_dfu_trailer.h b/include/usb_dfu_trailer.h
index 2cf66a590c..64b8407275 100644
--- a/include/usb_dfu_trailer.h
+++ b/include/usb_dfu_trailer.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _USB_DFU_TRAILER_H
 #define _USB_DFU_TRAILER_H
 
 /* trailer handling for DFU files */
 
 #define BAREBOX_DFU_TRAILER_V1	1
 #define BAREBOX_DFU_TRAILER_MAGIC	0x19731978
 struct barebox_dfu_trailer {
 	u_int32_t	magic;
 	u_int16_t	version;
 	u_int16_t	length;
 	u_int16_t	vendor;
 	u_int16_t	product;
 	u_int32_t	revision;
 } __attribute__((packed));
diff --git a/include/wchar.h b/include/wchar.h
index adb4f373e9..b601cc6207 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __WCHAR_H
 #define __WCHAR_H
 
 #include <linux/types.h>
 #include <linux/stddef.h>
 
 wchar_t *strdup_wchar(const wchar_t *src);
 
 char *strcpy_wchar_to_char(char *dst, const wchar_t *src);
 
 wchar_t *strcpy_char_to_wchar(wchar_t *dst, const char *src);
 
 wchar_t *strdup_char_to_wchar(const char *src);
 
 char *strdup_wchar_to_char(const wchar_t *src);
diff --git a/include/xfuncs.h b/include/xfuncs.h
index e3f120a040..a9132d3787 100644
--- a/include/xfuncs.h
+++ b/include/xfuncs.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __XFUNCS_H
 #define __XFUNCS_H
 
 #include <linux/types.h>
 #include <stdarg.h>
 #include <wchar.h>
 
 void *xmalloc(size_t size);
 void *xrealloc(void *ptr, size_t size);
 void *xzalloc(size_t size);
 char *xstrdup(const char *s);
 char *xstrndup(const char *s, size_t size);
 void* xmemalign(size_t alignment, size_t bytes);
 void* xmemdup(const void *orig, size_t size);
 char *xasprintf(const char *fmt, ...) __attribute__ ((format(__printf__, 1, 2)));
-- 
2.19.2


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

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

* [PATCH 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
  2019-02-07 22:39 ` [PATCH 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
  2019-02-07 22:39 ` [PATCH 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
@ 2019-02-07 22:39 ` Roland Hieber
  2019-02-07 22:39 ` [PATCH 5/6] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-07 22:39 UTC (permalink / raw)
  To: barebox; +Cc: rhi, Roland Hieber

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/fnmatch.h | 1 +
 include/glob.h    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/fnmatch.h b/include/fnmatch.h
index c0fd6a9207..297bd899a1 100644
--- a/include/fnmatch.h
+++ b/include/fnmatch.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /* Copyright (C) 1991,92,93,96,97,98,99,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
 
    The GNU C Library 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
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
diff --git a/include/glob.h b/include/glob.h
index 7778152513..cbbf91b94f 100644
--- a/include/glob.h
+++ b/include/glob.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /* Copyright (C) 1991,92,95,96,97,98,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
 
    The GNU C Library 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
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
-- 
2.19.2


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

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

* [PATCH 5/6] include: spi: add SPDX GPL-2.0-or-later license tags where applicable
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
                   ` (2 preceding siblings ...)
  2019-02-07 22:39 ` [PATCH 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
@ 2019-02-07 22:39 ` Roland Hieber
  2019-02-07 22:39 ` [PATCH 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-07 22:39 UTC (permalink / raw)
  To: barebox; +Cc: rhi, Roland Hieber

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/spi/spi_gpio.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/spi/spi_gpio.h b/include/spi/spi_gpio.h
index 841c934f6e..ea24fb2fb3 100644
--- a/include/spi/spi_gpio.h
+++ b/include/spi/spi_gpio.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * SPI master driver using generic bitbanged GPIO
  *
  * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
  *
  * Based on Linux driver
  *   Copyright (C) 2006,2008 David Brownell
  *
  * 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
-- 
2.19.2


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

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

* [PATCH 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
                   ` (3 preceding siblings ...)
  2019-02-07 22:39 ` [PATCH 5/6] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2019-02-07 22:39 ` Roland Hieber
  2019-02-08  5:48 ` [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Oleksij Rempel
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-07 22:39 UTC (permalink / raw)
  To: barebox; +Cc: rhi, Roland Hieber

According to our /README, GPL-2.0-only applies for the whole project
except noted otherwise.

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/spi/eeprom.h  | 1 +
 include/spi/flash.h   | 1 +
 include/spi/imx-spi.h | 1 +
 include/spi/spi.h     | 1 +
 4 files changed, 4 insertions(+)

diff --git a/include/spi/eeprom.h b/include/spi/eeprom.h
index 15495e59f5..410ecea19c 100644
--- a/include/spi/eeprom.h
+++ b/include/spi/eeprom.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _SPI_EEPROM_H
 #define _SPI_EEPROM_H
 
 /*
  * Put one of these structures in platform_data for SPI EEPROMS handled
  * by the "at25" driver.  On SPI, most EEPROMS understand the same core
  * command set.  If you need to support EEPROMs that don't yet fit, add
  * flags to support those protocol options.  These values all come from
  * the chip datasheets.
  */
 struct spi_eeprom {
 	char		name[10];
 	u16		page_size;		/* for writes */
 	u16		flags;
 #define	EE_ADDR1	0x0001			/*  8 bit addrs */
diff --git a/include/spi/flash.h b/include/spi/flash.h
index c1204e7e61..796d649d9a 100644
--- a/include/spi/flash.h
+++ b/include/spi/flash.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef LINUX_SPI_FLASH_H
 #define LINUX_SPI_FLASH_H
 
 struct mtd_partition;
 
 /**
  * struct flash_platform_data: board-specific flash data
  * @name: optional flash device name (eg, as used with mtdparts=)
  * @parts: optional array of mtd_partitions for static partitioning
  * @nr_parts: number of mtd_partitions for static partitoning
  * @type: optional flash device type (e.g. m25p80 vs m25p64), for use
  *	with chips that can't be queried for JEDEC or other IDs
  *
  * Board init code (in arch/.../mach-xxx/board-yyy.c files) can
  * provide information about SPI flash parts (such as DataFlash) to
diff --git a/include/spi/imx-spi.h b/include/spi/imx-spi.h
index a592573e62..568795188c 100644
--- a/include/spi/imx-spi.h
+++ b/include/spi/imx-spi.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __SPI_IMX_SPI_H
 #define __SPI_IMX_SPI_H
 
 #define CSPI_0_0_RXDATA		0x00
 #define CSPI_0_0_TXDATA		0x04
 #define CSPI_0_0_CTRL		0x08
 #define CSPI_0_0_INT		0x0C
 #define CSPI_0_0_DMA		0x18
 #define CSPI_0_0_STAT		0x0C
 #define CSPI_0_0_PERIOD		0x14
 #define CSPI_0_0_TEST		0x10
 #define CSPI_0_0_RESET		0x1C
 
 #define CSPI_0_0_CTRL_ENABLE		(1 << 10)
 #define CSPI_0_0_CTRL_MASTER		(1 << 11)
diff --git a/include/spi/spi.h b/include/spi/spi.h
index 620e5e57b4..f827f80ff7 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_SPI_H
 #define __INCLUDE_SPI_H
 
 #include <driver.h>
 #include <linux/string.h>
 
 struct spi_board_info {
 	char	*name;
 	int 	max_speed_hz;
 	int	bus_num;
 	int	chip_select;
 
 	/* mode becomes spi_device.mode, and is essential for chips
 	 * where the default of SPI_CS_HIGH = 0 is wrong.
 	 */
-- 
2.19.2


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

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

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
                   ` (4 preceding siblings ...)
  2019-02-07 22:39 ` [PATCH 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
@ 2019-02-08  5:48 ` Oleksij Rempel
  2019-02-08  8:59   ` Roland Hieber
  2019-03-10 20:42   ` Roland Hieber
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
  7 siblings, 2 replies; 41+ messages in thread
From: Oleksij Rempel @ 2019-02-08  5:48 UTC (permalink / raw)
  To: Roland Hieber, barebox; +Cc: rhi


[-- Attachment #1.1.1: Type: text/plain, Size: 16977 bytes --]

Hi Roland,

please remove deprecated license headers in same patch.

Am 07.02.19 um 23:39 schrieb Roland Hieber:
> Interpret "GPLv2" as "GPLv2 only".
> 
> Signed-off-by: Roland Hieber <rohieb@rohieb.name>
> ---
>  include/aimage.h            | 1 +
>  include/aiodev.h            | 1 +
>  include/binfmt.h            | 1 +
>  include/bootstrap.h         | 1 +
>  include/bpkfs.h             | 1 +
>  include/ddr_spd.h           | 1 +
>  include/dhcp.h              | 1 +
>  include/digest.h            | 1 +
>  include/dma.h               | 1 +
>  include/firmware.h          | 1 +
>  include/getopt.h            | 1 +
>  include/local_mac_address.h | 1 +
>  include/menu.h              | 1 +
>  include/of_graph.h          | 1 +
>  include/of_mtd.h            | 1 +
>  include/of_net.h            | 1 +
>  include/password.h          | 1 +
>  include/pbl.h               | 1 +
>  include/poller.h            | 1 +
>  include/shell.h             | 1 +
>  include/uimagefs.h          | 1 +
>  include/w1_mac_address.h    | 1 +
>  include/xymodem.h           | 1 +
>  23 files changed, 23 insertions(+)
> 
> diff --git a/include/aimage.h b/include/aimage.h
> index 9702b7d35c..0c7dda39ce 100644
> --- a/include/aimage.h
> +++ b/include/aimage.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * (C) Copyright 2011 Jean-Christhophe PLAGNIOL-VILLARD <plagniol@jcrosoft.com>
>   *
>   * Android boot image
>   *
>   * Under GPLv2 only
>   */
>  
>  #ifndef __AIMAGE_H__
>  #define __AIMAGE_H__
>  
>  #define BOOT_MAGIC	"ANDROID!"
>  #define BOOT_MAGIC_SIZE	8
>  #define BOOT_NAME_SIZE	16
>  #define BOOT_ARGS_SIZE	512
> diff --git a/include/aiodev.h b/include/aiodev.h
> index 5e38b4fab5..5f41554ad1 100644
> --- a/include/aiodev.h
> +++ b/include/aiodev.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * core.c - Code implementing core functionality of AIODEV susbsystem
>   *
>   * Copyright (c) 2015 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
>   * Copyright (c) 2015 Zodiac Inflight Innovation
>   *
>   * See file CREDITS for list of people who contributed to this
>   * project.
>   *
>   * 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
> diff --git a/include/binfmt.h b/include/binfmt.h
> index 46b627e36d..b1fd2a72e8 100644
> --- a/include/binfmt.h
> +++ b/include/binfmt.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * GPL v2
>   */
>  
>  #ifndef __BFMT_H__
>  #define __BFMT_H__
>  
>  #include <filetype.h>
>  #include <linux/list.h>
>  
>  struct binfmt_hook {
>  	enum filetype type;
>  	int (*hook)(struct binfmt_hook *b, char *file, int argc, char **argv);
> diff --git a/include/bootstrap.h b/include/bootstrap.h
> index d3ee6be47c..6100f7be2f 100644
> --- a/include/bootstrap.h
> +++ b/include/bootstrap.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
>   *
>   * Under GPLv2
>   */
>  
>  #ifndef __BOOSTRAP_H__
>  #define __BOOSTRAP_H__
>  
>  #include <common.h>
>  
>  #define bootstrap_err(fmt, arg...) printf(fmt, ##arg)
>  
>  typedef void (*kernel_entry_func)(int zero, int arch, void *params);
>  void bootstrap_boot(kernel_entry_func func, bool barebox);
> diff --git a/include/bpkfs.h b/include/bpkfs.h
> index ccb56c1419..49fbd5d48e 100644
> --- a/include/bpkfs.h
> +++ b/include/bpkfs.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * under GPLv2 only
>   */
>  
>  #ifndef __BPKFS_H__
>  #define __BPKFS_H__
>  
>  #include <linux/types.h>
>  #include <linux/list.h>
>  
>  #define BPKFS_TYPE_BL	0x50424c00
>  #define BPKFS_TYPE_BLV	0x50424c56
>  #define BPKFS_TYPE_DSC	0x44456343
> diff --git a/include/ddr_spd.h b/include/ddr_spd.h
> index 01fe73c615..18bb7c2751 100644
> --- a/include/ddr_spd.h
> +++ b/include/ddr_spd.h
> @@ -1,15 +1,16 @@
> +/* 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.
>   */
>  
>  #ifndef _DDR_SPD_H_
>  #define _DDR_SPD_H_
>  
>  /*
>   * Format from "JEDEC Appendix X: Serial Presence Detects for DDR2 SDRAM",
>   * SPD Revision 1.2
>   */
> diff --git a/include/dhcp.h b/include/dhcp.h
> index 0dced8e9fa..55ffb10789 100644
> --- a/include/dhcp.h
> +++ b/include/dhcp.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (C) 2015 PHYTEC Messtechnik GmbH,
>   * Author: Wadim Egorov <w.egorov@phytec.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.
>   */
>  
>  #ifndef __DHCP_H__
>  #define __DHCP_H__
>  
>  #define DHCP_DEFAULT_RETRY 20
>  
>  struct dhcp_req_param {
> diff --git a/include/digest.h b/include/digest.h
> index a1cdbb2d7a..d001057527 100644
> --- a/include/digest.h
> +++ b/include/digest.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * (C) Copyright 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * See file CREDITS for list of people who contributed to this
>   * 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.
> diff --git a/include/dma.h b/include/dma.h
> index 7f95782635..c7ff5b8944 100644
> --- a/include/dma.h
> +++ b/include/dma.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (C) 2012 by Marc Kleine-Budde <mkl@pengutronix.de>
>   *
>   * This file is released under the GPLv2
>   *
>   */
>  
>  #ifndef __DMA_H
>  #define __DMA_H
>  
>  #include <malloc.h>
>  #include <xfuncs.h>
>  
>  #include <dma-dir.h>
>  #include <asm/dma.h>
> diff --git a/include/firmware.h b/include/firmware.h
> index 284e0f9705..e3b1bd98be 100644
> --- a/include/firmware.h
> +++ b/include/firmware.h
> @@ -1,15 +1,16 @@
> +/* 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.
>   */
>  
>  #ifndef FIRMWARE_H
>  #define FIRMWARE_H
> diff --git a/include/getopt.h b/include/getopt.h
> index 4f48ba8fd9..b215cfa2b7 100644
> --- a/include/getopt.h
> +++ b/include/getopt.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * getopt.h - a simple getopt(3) implementation.
>   *
>   * 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/include/local_mac_address.h b/include/local_mac_address.h
> index 3d1ec66b1f..12cdf319c8 100644
> --- a/include/local_mac_address.h
> +++ b/include/local_mac_address.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
>   *
>   * Under GPLv2 only
>   */
>  
>  #ifndef __LOCAL_MAC_ADDRESS_H__
>  #define __LOCAL_MAC_ADDRESS_H__
>  
>  #include <net.h>
>  
>  /**
>   * local_mac_address_register - use random number with fix
>   * OUI provided device to provide an Ethernet address
>   * @ethid: ethernet device id
> diff --git a/include/menu.h b/include/menu.h
> index 2fef064499..97545a1740 100644
> --- a/include/menu.h
> +++ b/include/menu.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * (C) Copyright 2009-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * See file CREDITS for list of people who contributed to this
>   * 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.
> diff --git a/include/of_graph.h b/include/of_graph.h
> index 254dd2ca28..7a6c556bf3 100644
> --- a/include/of_graph.h
> +++ b/include/of_graph.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * OF graph binding parsing helpers
>   *
>   * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
>   * Author: Sylwester Nawrocki <s.nawrocki@samsung.com>
>   *
>   * Copyright (C) 2012 Renesas Electronics Corp.
>   * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
>   *
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of version 2 of the GNU General Public License as
>   * published by the Free Software Foundation.
>   */
>  #ifndef __LINUX_OF_GRAPH_H
>  #define __LINUX_OF_GRAPH_H
> diff --git a/include/of_mtd.h b/include/of_mtd.h
> index 9f5b8a2796..9396523a79 100644
> --- a/include/of_mtd.h
> +++ b/include/of_mtd.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * OF helpers for mtd.
>   *
>   * This file is released under the GPLv2
>   */
>  
>  #ifndef __LINUX_OF_MTD_H
>  #define __LINUX_OF_MTD_H
>  
>  #include <of.h>
>  
>  int of_get_nand_ecc_mode(struct device_node *np);
>  int of_get_nand_ecc_step_size(struct device_node *np);
> diff --git a/include/of_net.h b/include/of_net.h
> index 0f6ef200d5..8b5a1435ad 100644
> --- a/include/of_net.h
> +++ b/include/of_net.h
> @@ -1,14 +1,15 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * OF helpers for network devices.
>   *
>   * This file is released under the GPLv2
>   */
>  
>  #ifndef __LINUX_OF_NET_H
>  #define __LINUX_OF_NET_H
>  
>  #include <of.h>
>  int of_get_phy_mode(struct device_node *np);
>  const void *of_get_mac_address(struct device_node *np);
>  
>  #endif /* __LINUX_OF_NET_H */
> diff --git a/include/password.h b/include/password.h
> index 8b9961815f..4b4e7c9497 100644
> --- a/include/password.h
> +++ b/include/password.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (c) 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * See file CREDITS for list of people who contributed to this
>   * project.
>   *
>   * 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/include/pbl.h b/include/pbl.h
> index 787bd8293f..594d8d0273 100644
> --- a/include/pbl.h
> +++ b/include/pbl.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (c) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * Under GPLv2
>   */
>  
>  #ifndef __PBL_H__
>  #define __PBL_H__
>  
>  extern unsigned long free_mem_ptr;
>  extern unsigned long free_mem_end_ptr;
>  
>  void pbl_barebox_uncompress(void *dest, void *compressed_start, unsigned int len);
>  
>  #ifdef __PBL__
> diff --git a/include/poller.h b/include/poller.h
> index 35a2271d69..9b2e7e1d7b 100644
> --- a/include/poller.h
> +++ b/include/poller.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (C) 2010 Marc Kleine-Budde <mkl@pengutronix.de>
>   *
>   * This file is released under the GPLv2
>   *
>   */
>  
>  #ifndef POLLER_H
>  #define POLLER_H
>  
>  #include <linux/list.h>
>  
>  struct poller_struct {
>  	void (*func)(struct poller_struct *poller);
>  	int registered;
> diff --git a/include/shell.h b/include/shell.h
> index 65dad0e1d1..b446743337 100644
> --- a/include/shell.h
> +++ b/include/shell.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * (C) Copyright 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * Under GPLv2 only
>   */
>  
>  #ifndef __SHELL_H__
>  #define __SHELL_H__
>  
>  int shell_get_last_return_code(void);
>  
>  int run_shell(void);
>  
>  #ifdef CONFIG_SHELL_HUSH
>  char *shell_expand(char *str);
> diff --git a/include/uimagefs.h b/include/uimagefs.h
> index 3f58589b73..9a32a77c16 100644
> --- a/include/uimagefs.h
> +++ b/include/uimagefs.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>   *
>   * under GPLv2 only
>   */
>  
>  #ifndef __UIMAGEFS_H__
>  #define __UIMAGEFS_H__
>  
>  #include <linux/types.h>
>  #include <linux/list.h>
>  #include <image.h>
>  #include <ioctl.h>
>  
>  #define UIMAGEFS_METADATA	_IOR('U', 100, struct image_header)
> diff --git a/include/w1_mac_address.h b/include/w1_mac_address.h
> index cd4be765f7..2d499a3690 100644
> --- a/include/w1_mac_address.h
> +++ b/include/w1_mac_address.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
>   *
>   * Under GPLv2 only
>   */
>  
>  #ifndef __W1_MAC_ADDRESS_H__
>  #define __W1_MAC_ADDRESS_H__
>  
>  /**
>   * w1_local_mac_address_register - use the first 3 byte of the id of a 1-wire
>   * or 6 if no OUI provided device to provide an Ethernet address
>   * @ethid: ethernet device id
>   * @oui: Ethernet OUI (3 bytes)
>   * @w1_dev: 1-wire device name
> diff --git a/include/xymodem.h b/include/xymodem.h
> index 917cecc003..82a36bfe7d 100644
> --- a/include/xymodem.h
> +++ b/include/xymodem.h
> @@ -1,15 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
>   *
>   * Copyright (C) 2008 Robert Jarzmik
>   *
>   * 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.
>   */
> 


-- 
Regards,
Oleksij


[-- Attachment #1.2: OpenPGP digital signature --]
[-- 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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-08  5:48 ` [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Oleksij Rempel
@ 2019-02-08  8:59   ` Roland Hieber
  2019-02-08  9:09     ` Ahmad Fatoum
  2019-02-11 11:06     ` Roland Hieber
  2019-03-10 20:42   ` Roland Hieber
  1 sibling, 2 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-08  8:59 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

On Fri, Feb 08, 2019 at 06:48:26AM +0100, Oleksij Rempel wrote:
> Hi Roland,
> 
> please remove deprecated license headers in same patch.

I decided to leave them to record the original author's intent. There
are several variations on the GPL headers in the project, the one
extreme is the full GPL license header including a warranty disclaimer,
but the other extreme is only a "GPLv2" and nothing more. We can decide
on the project level to apply the warranty disclaimer. But by removing
the license headers from individual files, the original author intent is
lost – maybe the didn't want to include the disclaimer, maybe they
didn't care, in any case it is not in our possibility to decide over
their copyright matters and for most of the cases it is too late to
track some of the people down and ask them.

This all becomes important when someone forks our files to a new
project. And if that someone does not know what the SPDX license tags
actually mean, it's better to have the original documentation on the
file level.

I noticed that Linux usually removes the license headers and only keeps
the copyright lines, but I wasn't able to find any reason for that. Do
you have more insight here?

 - Roland

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-08  8:59   ` Roland Hieber
@ 2019-02-08  9:09     ` Ahmad Fatoum
  2019-02-11 10:25       ` Roland Hieber
  2019-02-11 11:06     ` Roland Hieber
  1 sibling, 1 reply; 41+ messages in thread
From: Ahmad Fatoum @ 2019-02-08  9:09 UTC (permalink / raw)
  To: barebox



On 8/2/19 09:59, Roland Hieber wrote:
> On Fri, Feb 08, 2019 at 06:48:26AM +0100, Oleksij Rempel wrote:
>> Hi Roland,
>>
>> please remove deprecated license headers in same patch.
> 
> I decided to leave them to record the original author's intent. There
> are several variations on the GPL headers in the project, the one
> extreme is the full GPL license header including a warranty disclaimer,
> but the other extreme is only a "GPLv2" and nothing more. We can decide
> on the project level to apply the warranty disclaimer. But by removing
> the license headers from individual files, the original author intent is
> lost – maybe the didn't want to include the disclaimer, maybe they
> didn't care, in any case it is not in our possibility to decide over
> their copyright matters and for most of the cases it is too late to
> track some of the people down and ask them.
> 
> This all becomes important when someone forks our files to a new
> project. And if that someone does not know what the SPDX license tags
> actually mean, it's better to have the original documentation on the
> file level.
> 
> I noticed that Linux usually removes the license headers and only keeps
> the copyright lines, but I wasn't able to find any reason for that. Do
> you have more insight here?

(Obligatory IANAL)

With the copyright, the author states their right to deal as they
see fit with the source code. For example they may relicense. Replacing the
copyright with a SPDX-License-Identifier won't preserve this information.

The license itself grants rights to others and, if it's a standard one,
could be referenced by the Identifier, while the full text is reproduced
only once at some central location (see my LICENSES directory patch below).


Cheers
Ahmad

> 
>  - Roland
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-08  9:09     ` Ahmad Fatoum
@ 2019-02-11 10:25       ` Roland Hieber
  2019-02-15  8:57         ` Ahmad Fatoum
  0 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2019-02-11 10:25 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Fri, Feb 08, 2019 at 10:09:19AM +0100, Ahmad Fatoum wrote:
> 
> 
> On 8/2/19 09:59, Roland Hieber wrote:
> > On Fri, Feb 08, 2019 at 06:48:26AM +0100, Oleksij Rempel wrote:
> >> Hi Roland,
> >>
> >> please remove deprecated license headers in same patch.
> > 
> > I decided to leave them to record the original author's intent. There
> > are several variations on the GPL headers in the project, the one
> > extreme is the full GPL license header including a warranty disclaimer,
> > but the other extreme is only a "GPLv2" and nothing more. We can decide
> > on the project level to apply the warranty disclaimer. But by removing
> > the license headers from individual files, the original author intent is
> > lost – maybe the didn't want to include the disclaimer, maybe they
> > didn't care, in any case it is not in our possibility to decide over
> > their copyright matters and for most of the cases it is too late to
> > track some of the people down and ask them.
> > 
> > This all becomes important when someone forks our files to a new
> > project. And if that someone does not know what the SPDX license tags
> > actually mean, it's better to have the original documentation on the
> > file level.
> > 
> > I noticed that Linux usually removes the license headers and only keeps
> > the copyright lines, but I wasn't able to find any reason for that. Do
> > you have more insight here?
> 
> (Obligatory IANAL)

(Me neither)

> With the copyright, the author states their right to deal as they
> see fit with the source code. For example they may relicense. Replacing the
> copyright with a SPDX-License-Identifier won't preserve this information.

That sounds like an argument for leaving the copyright headers in the
individual files?

> The license itself grants rights to others and, if it's a standard one,
> could be referenced by the Identifier, while the full text is reproduced
> only once at some central location (see my LICENSES directory patch below).

There are two parts involved when applying the GPL. One part is the GPL
itself, which is written by the FSF, and is the generic license granting
rights and duties to users of the program for works that are licensed
under the GPL.  The second part is the actual copyright statement, which
is written by the author of the (respective part of the) code, and which
must mention that a source file is actually licensed under the GPL.
This part usually, but not always, also contains a warranty disclaimer.
Although that second part is pre-formulated in the appendix "How to
Apply These Terms to Your New Programs" of the GPL, it can be seen in my
patch that the copyright statement historically has several different
variants, ranging from "this is GPLv2" to the full text that is
recommended in the GPL appendix (and also in the GPL FAQ [1]). It is the
author's sole right to choose the exact conditions in the copyright
statement on the file level, and I think by reducing those license
headers to only the copyright line transgresses that right. And, as I
said, the full copyright statement also serves as a fallback in case the
file is copied to a project that does not use the full SPDX process. I
also doubt that a single "SPDX-License-Identifier: GPL-2.0" line would
be sufficient to imply everything that is written in the full copyright
statement for every possible user of the source code.

I welcome your patch for adding the LICENSES/* files, but I don't think
it solved the problem mentioned above, as LICENSES/preferred/GPL-2.0
also only contains the text of the generic GPL, and not the authors'
copyright statement.

[faq]: https://www.gnu.org/licenses/gpl-faq.en.html#NoticeInSourceFile

 - Roland

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-08  8:59   ` Roland Hieber
  2019-02-08  9:09     ` Ahmad Fatoum
@ 2019-02-11 11:06     ` Roland Hieber
  1 sibling, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-11 11:06 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

On Fri, Feb 08, 2019 at 09:59:02AM +0100, Roland Hieber wrote:
> I noticed that Linux usually removes the license headers and only keeps
> the copyright lines, but I wasn't able to find any reason for that. Do
> you have more insight here?

I tried to google around a bit, and found several discussions, which all
end in "SPDX is an industry-wide accepted standard" [1] and
"SPDX-License-Identifiers are a legally binding shorthand" [2], but
without further elaboration :-/

[1]: https://patchwork.kernel.org/patch/10045625/#21135079
[2]: e.g. here https://lore.kernel.org/patchwork/patch/854656/ or
     in the commit message of [1] too

 - Roland

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-11 10:25       ` Roland Hieber
@ 2019-02-15  8:57         ` Ahmad Fatoum
  2019-02-15 11:18           ` Roland Hieber
  0 siblings, 1 reply; 41+ messages in thread
From: Ahmad Fatoum @ 2019-02-15  8:57 UTC (permalink / raw)
  To: Roland Hieber; +Cc: barebox

Hello,

On 11/2/19 11:25, Roland Hieber wrote:
> On Fri, Feb 08, 2019 at 10:09:19AM +0100, Ahmad Fatoum wrote:
>>
>>
>> On 8/2/19 09:59, Roland Hieber wrote:
>>> On Fri, Feb 08, 2019 at 06:48:26AM +0100, Oleksij Rempel wrote:
>>>> Hi Roland,
>>>>
>>>> please remove deprecated license headers in same patch.
>>>
>>> I decided to leave them to record the original author's intent. There
>>> are several variations on the GPL headers in the project, the one
>>> extreme is the full GPL license header including a warranty disclaimer,
>>> but the other extreme is only a "GPLv2" and nothing more. We can decide
>>> on the project level to apply the warranty disclaimer. But by removing
>>> the license headers from individual files, the original author intent is
>>> lost – maybe the didn't want to include the disclaimer, maybe they
>>> didn't care, in any case it is not in our possibility to decide over
>>> their copyright matters and for most of the cases it is too late to
>>> track some of the people down and ask them.
>>>
>>> This all becomes important when someone forks our files to a new
>>> project. And if that someone does not know what the SPDX license tags
>>> actually mean, it's better to have the original documentation on the
>>> file level.
>>>
>>> I noticed that Linux usually removes the license headers and only keeps
>>> the copyright lines, but I wasn't able to find any reason for that. Do
>>> you have more insight here?
>>
>> (Obligatory IANAL)
> 
> (Me neither)
> 
>> With the copyright, the author states their right to deal as they
>> see fit with the source code. For example they may relicense. Replacing the
>> copyright with a SPDX-License-Identifier won't preserve this information.
> 
> That sounds like an argument for leaving the copyright headers in the
> individual files?

Yes, leave copyright/authorship lines, but replace license text with
SPDX-License-Identifier.

> 
>> The license itself grants rights to others and, if it's a standard one,
>> could be referenced by the Identifier, while the full text is reproduced
>> only once at some central location (see my LICENSES directory patch below).
> 
> There are two parts involved when applying the GPL. One part is the GPL
> itself, which is written by the FSF, and is the generic license granting
> rights and duties to users of the program for works that are licensed
> under the GPL.  The second part is the actual copyright statement, which
> is written by the author of the (respective part of the) code, and which
> must mention that a source file is actually licensed under the GPL.
> This part usually, but not always, also contains a warranty disclaimer.
> Although that second part is pre-formulated in the appendix "How to
> Apply These Terms to Your New Programs" of the GPL, it can be seen in my
> patch that the copyright statement historically has several different
> variants, ranging from "this is GPLv2" to the full text that is
> recommended in the GPL appendix (and also in the GPL FAQ [1]). It is the
> author's sole right to choose the exact conditions in the copyright
> statement on the file level, and I think by reducing those license
> headers to only the copyright line transgresses that right. And, as I
> said, the full copyright statement also serves as a fallback in case the
> file is copied to a project that does not use the full SPDX process. I
> also doubt that a single "SPDX-License-Identifier: GPL-2.0" line would
> be sufficient to imply everything that is written in the full copyright
> statement for every possible user of the source code.
> 
> I welcome your patch for adding the LICENSES/* files, but I don't think
> it solved the problem mentioned above, as LICENSES/preferred/GPL-2.0
> also only contains the text of the generic GPL, and not the authors'
> copyright statement.
> 
> [faq]: https://www.gnu.org/licenses/gpl-faq.en.html#NoticeInSourceFile
> 
>  - Roland
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-15  8:57         ` Ahmad Fatoum
@ 2019-02-15 11:18           ` Roland Hieber
  2019-02-22 13:25             ` Roland Hieber
  0 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2019-02-15 11:18 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Fri, Feb 15, 2019 at 09:57:51AM +0100, Ahmad Fatoum wrote:
> Hello,
> 
> On 11/2/19 11:25, Roland Hieber wrote:
> > On Fri, Feb 08, 2019 at 10:09:19AM +0100, Ahmad Fatoum wrote:
> >>
> >>
> >> On 8/2/19 09:59, Roland Hieber wrote:
> >>> On Fri, Feb 08, 2019 at 06:48:26AM +0100, Oleksij Rempel wrote:
> >>>> Hi Roland,
> >>>>
> >>>> please remove deprecated license headers in same patch.
> >>>
> >>> I decided to leave them to record the original author's intent. There
> >>> are several variations on the GPL headers in the project, the one
> >>> extreme is the full GPL license header including a warranty disclaimer,
> >>> but the other extreme is only a "GPLv2" and nothing more. We can decide
> >>> on the project level to apply the warranty disclaimer. But by removing
> >>> the license headers from individual files, the original author intent is
> >>> lost – maybe the didn't want to include the disclaimer, maybe they
> >>> didn't care, in any case it is not in our possibility to decide over
> >>> their copyright matters and for most of the cases it is too late to
> >>> track some of the people down and ask them.
> >>>
> >>> This all becomes important when someone forks our files to a new
> >>> project. And if that someone does not know what the SPDX license tags
> >>> actually mean, it's better to have the original documentation on the
> >>> file level.
> >>>
> >>> I noticed that Linux usually removes the license headers and only keeps
> >>> the copyright lines, but I wasn't able to find any reason for that. Do
> >>> you have more insight here?
> >>
> >> (Obligatory IANAL)
> > 
> > (Me neither)
> > 
> >> With the copyright, the author states their right to deal as they
> >> see fit with the source code. For example they may relicense. Replacing the
> >> copyright with a SPDX-License-Identifier won't preserve this information.
> > 
> > That sounds like an argument for leaving the copyright headers in the
> > individual files?
> 
> Yes, leave copyright/authorship lines, but replace license text with
> SPDX-License-Identifier.

Ah, we're talking about different things then. I was using "copyright
headers" to include the "(c) author" line as well as the license statement.

I think my current version of the patch gives us best of both worlds,
documentation of author intent as well as machine readability, so I
don't think anything is lost here by adding the SPDX tags.

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-15 11:18           ` Roland Hieber
@ 2019-02-22 13:25             ` Roland Hieber
  0 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-02-22 13:25 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Fri, Feb 15, 2019 at 12:18:19PM +0100, Roland Hieber wrote:
> I think my current version of the patch gives us best of both worlds,
> documentation of author intent as well as machine readability, so I
> don't think anything is lost here by adding the SPDX tags.

Any other comments here?

  - Roland

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-02-08  5:48 ` [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Oleksij Rempel
  2019-02-08  8:59   ` Roland Hieber
@ 2019-03-10 20:42   ` Roland Hieber
  2019-03-10 21:06     ` Sam Ravnborg
  1 sibling, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2019-03-10 20:42 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

Hi,

this thread has been open for some time now without any more responses.
The only motion against it was from Oleksij, who asked me remove the
license headers in favour of having only the SPDX-License-Identifier
tags.  I replied that I think both the human-understandable license
headers and the machine-readable tags have their own value, but there
was no further argument. Oleksij, do you agree, or do you have further
arguments?

 - Roland

On Fri, Feb 08, 2019 at 06:48:26AM +0100, Oleksij Rempel wrote:
> Hi Roland,
> 
> please remove deprecated license headers in same patch.
> 
> Am 07.02.19 um 23:39 schrieb Roland Hieber:
> > Interpret "GPLv2" as "GPLv2 only".
> > 
> > Signed-off-by: Roland Hieber <rohieb@rohieb.name>
> > ---
> >  include/aimage.h            | 1 +
> >  include/aiodev.h            | 1 +
> >  include/binfmt.h            | 1 +
> >  include/bootstrap.h         | 1 +
> >  include/bpkfs.h             | 1 +
> >  include/ddr_spd.h           | 1 +
> >  include/dhcp.h              | 1 +
> >  include/digest.h            | 1 +
> >  include/dma.h               | 1 +
> >  include/firmware.h          | 1 +
> >  include/getopt.h            | 1 +
> >  include/local_mac_address.h | 1 +
> >  include/menu.h              | 1 +
> >  include/of_graph.h          | 1 +
> >  include/of_mtd.h            | 1 +
> >  include/of_net.h            | 1 +
> >  include/password.h          | 1 +
> >  include/pbl.h               | 1 +
> >  include/poller.h            | 1 +
> >  include/shell.h             | 1 +
> >  include/uimagefs.h          | 1 +
> >  include/w1_mac_address.h    | 1 +
> >  include/xymodem.h           | 1 +
> >  23 files changed, 23 insertions(+)
> > 
> > diff --git a/include/aimage.h b/include/aimage.h
> > index 9702b7d35c..0c7dda39ce 100644
> > --- a/include/aimage.h
> > +++ b/include/aimage.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * (C) Copyright 2011 Jean-Christhophe PLAGNIOL-VILLARD <plagniol@jcrosoft.com>
> >   *
> >   * Android boot image
> >   *
> >   * Under GPLv2 only
> >   */
> >  
> >  #ifndef __AIMAGE_H__
> >  #define __AIMAGE_H__
> >  
> >  #define BOOT_MAGIC	"ANDROID!"
> >  #define BOOT_MAGIC_SIZE	8
> >  #define BOOT_NAME_SIZE	16
> >  #define BOOT_ARGS_SIZE	512
> > diff --git a/include/aiodev.h b/include/aiodev.h
> > index 5e38b4fab5..5f41554ad1 100644
> > --- a/include/aiodev.h
> > +++ b/include/aiodev.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * core.c - Code implementing core functionality of AIODEV susbsystem
> >   *
> >   * Copyright (c) 2015 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
> >   * Copyright (c) 2015 Zodiac Inflight Innovation
> >   *
> >   * See file CREDITS for list of people who contributed to this
> >   * project.
> >   *
> >   * 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
> > diff --git a/include/binfmt.h b/include/binfmt.h
> > index 46b627e36d..b1fd2a72e8 100644
> > --- a/include/binfmt.h
> > +++ b/include/binfmt.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * GPL v2
> >   */
> >  
> >  #ifndef __BFMT_H__
> >  #define __BFMT_H__
> >  
> >  #include <filetype.h>
> >  #include <linux/list.h>
> >  
> >  struct binfmt_hook {
> >  	enum filetype type;
> >  	int (*hook)(struct binfmt_hook *b, char *file, int argc, char **argv);
> > diff --git a/include/bootstrap.h b/include/bootstrap.h
> > index d3ee6be47c..6100f7be2f 100644
> > --- a/include/bootstrap.h
> > +++ b/include/bootstrap.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
> >   *
> >   * Under GPLv2
> >   */
> >  
> >  #ifndef __BOOSTRAP_H__
> >  #define __BOOSTRAP_H__
> >  
> >  #include <common.h>
> >  
> >  #define bootstrap_err(fmt, arg...) printf(fmt, ##arg)
> >  
> >  typedef void (*kernel_entry_func)(int zero, int arch, void *params);
> >  void bootstrap_boot(kernel_entry_func func, bool barebox);
> > diff --git a/include/bpkfs.h b/include/bpkfs.h
> > index ccb56c1419..49fbd5d48e 100644
> > --- a/include/bpkfs.h
> > +++ b/include/bpkfs.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * under GPLv2 only
> >   */
> >  
> >  #ifndef __BPKFS_H__
> >  #define __BPKFS_H__
> >  
> >  #include <linux/types.h>
> >  #include <linux/list.h>
> >  
> >  #define BPKFS_TYPE_BL	0x50424c00
> >  #define BPKFS_TYPE_BLV	0x50424c56
> >  #define BPKFS_TYPE_DSC	0x44456343
> > diff --git a/include/ddr_spd.h b/include/ddr_spd.h
> > index 01fe73c615..18bb7c2751 100644
> > --- a/include/ddr_spd.h
> > +++ b/include/ddr_spd.h
> > @@ -1,15 +1,16 @@
> > +/* 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.
> >   */
> >  
> >  #ifndef _DDR_SPD_H_
> >  #define _DDR_SPD_H_
> >  
> >  /*
> >   * Format from "JEDEC Appendix X: Serial Presence Detects for DDR2 SDRAM",
> >   * SPD Revision 1.2
> >   */
> > diff --git a/include/dhcp.h b/include/dhcp.h
> > index 0dced8e9fa..55ffb10789 100644
> > --- a/include/dhcp.h
> > +++ b/include/dhcp.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (C) 2015 PHYTEC Messtechnik GmbH,
> >   * Author: Wadim Egorov <w.egorov@phytec.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.
> >   */
> >  
> >  #ifndef __DHCP_H__
> >  #define __DHCP_H__
> >  
> >  #define DHCP_DEFAULT_RETRY 20
> >  
> >  struct dhcp_req_param {
> > diff --git a/include/digest.h b/include/digest.h
> > index a1cdbb2d7a..d001057527 100644
> > --- a/include/digest.h
> > +++ b/include/digest.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * (C) Copyright 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * See file CREDITS for list of people who contributed to this
> >   * 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.
> > diff --git a/include/dma.h b/include/dma.h
> > index 7f95782635..c7ff5b8944 100644
> > --- a/include/dma.h
> > +++ b/include/dma.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (C) 2012 by Marc Kleine-Budde <mkl@pengutronix.de>
> >   *
> >   * This file is released under the GPLv2
> >   *
> >   */
> >  
> >  #ifndef __DMA_H
> >  #define __DMA_H
> >  
> >  #include <malloc.h>
> >  #include <xfuncs.h>
> >  
> >  #include <dma-dir.h>
> >  #include <asm/dma.h>
> > diff --git a/include/firmware.h b/include/firmware.h
> > index 284e0f9705..e3b1bd98be 100644
> > --- a/include/firmware.h
> > +++ b/include/firmware.h
> > @@ -1,15 +1,16 @@
> > +/* 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.
> >   */
> >  
> >  #ifndef FIRMWARE_H
> >  #define FIRMWARE_H
> > diff --git a/include/getopt.h b/include/getopt.h
> > index 4f48ba8fd9..b215cfa2b7 100644
> > --- a/include/getopt.h
> > +++ b/include/getopt.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * getopt.h - a simple getopt(3) implementation.
> >   *
> >   * 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/include/local_mac_address.h b/include/local_mac_address.h
> > index 3d1ec66b1f..12cdf319c8 100644
> > --- a/include/local_mac_address.h
> > +++ b/include/local_mac_address.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
> >   *
> >   * Under GPLv2 only
> >   */
> >  
> >  #ifndef __LOCAL_MAC_ADDRESS_H__
> >  #define __LOCAL_MAC_ADDRESS_H__
> >  
> >  #include <net.h>
> >  
> >  /**
> >   * local_mac_address_register - use random number with fix
> >   * OUI provided device to provide an Ethernet address
> >   * @ethid: ethernet device id
> > diff --git a/include/menu.h b/include/menu.h
> > index 2fef064499..97545a1740 100644
> > --- a/include/menu.h
> > +++ b/include/menu.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * (C) Copyright 2009-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * See file CREDITS for list of people who contributed to this
> >   * 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.
> > diff --git a/include/of_graph.h b/include/of_graph.h
> > index 254dd2ca28..7a6c556bf3 100644
> > --- a/include/of_graph.h
> > +++ b/include/of_graph.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * OF graph binding parsing helpers
> >   *
> >   * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
> >   * Author: Sylwester Nawrocki <s.nawrocki@samsung.com>
> >   *
> >   * Copyright (C) 2012 Renesas Electronics Corp.
> >   * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> >   *
> >   * This program is free software; you can redistribute it and/or modify
> >   * it under the terms of version 2 of the GNU General Public License as
> >   * published by the Free Software Foundation.
> >   */
> >  #ifndef __LINUX_OF_GRAPH_H
> >  #define __LINUX_OF_GRAPH_H
> > diff --git a/include/of_mtd.h b/include/of_mtd.h
> > index 9f5b8a2796..9396523a79 100644
> > --- a/include/of_mtd.h
> > +++ b/include/of_mtd.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * OF helpers for mtd.
> >   *
> >   * This file is released under the GPLv2
> >   */
> >  
> >  #ifndef __LINUX_OF_MTD_H
> >  #define __LINUX_OF_MTD_H
> >  
> >  #include <of.h>
> >  
> >  int of_get_nand_ecc_mode(struct device_node *np);
> >  int of_get_nand_ecc_step_size(struct device_node *np);
> > diff --git a/include/of_net.h b/include/of_net.h
> > index 0f6ef200d5..8b5a1435ad 100644
> > --- a/include/of_net.h
> > +++ b/include/of_net.h
> > @@ -1,14 +1,15 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * OF helpers for network devices.
> >   *
> >   * This file is released under the GPLv2
> >   */
> >  
> >  #ifndef __LINUX_OF_NET_H
> >  #define __LINUX_OF_NET_H
> >  
> >  #include <of.h>
> >  int of_get_phy_mode(struct device_node *np);
> >  const void *of_get_mac_address(struct device_node *np);
> >  
> >  #endif /* __LINUX_OF_NET_H */
> > diff --git a/include/password.h b/include/password.h
> > index 8b9961815f..4b4e7c9497 100644
> > --- a/include/password.h
> > +++ b/include/password.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (c) 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * See file CREDITS for list of people who contributed to this
> >   * project.
> >   *
> >   * 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/include/pbl.h b/include/pbl.h
> > index 787bd8293f..594d8d0273 100644
> > --- a/include/pbl.h
> > +++ b/include/pbl.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (c) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * Under GPLv2
> >   */
> >  
> >  #ifndef __PBL_H__
> >  #define __PBL_H__
> >  
> >  extern unsigned long free_mem_ptr;
> >  extern unsigned long free_mem_end_ptr;
> >  
> >  void pbl_barebox_uncompress(void *dest, void *compressed_start, unsigned int len);
> >  
> >  #ifdef __PBL__
> > diff --git a/include/poller.h b/include/poller.h
> > index 35a2271d69..9b2e7e1d7b 100644
> > --- a/include/poller.h
> > +++ b/include/poller.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (C) 2010 Marc Kleine-Budde <mkl@pengutronix.de>
> >   *
> >   * This file is released under the GPLv2
> >   *
> >   */
> >  
> >  #ifndef POLLER_H
> >  #define POLLER_H
> >  
> >  #include <linux/list.h>
> >  
> >  struct poller_struct {
> >  	void (*func)(struct poller_struct *poller);
> >  	int registered;
> > diff --git a/include/shell.h b/include/shell.h
> > index 65dad0e1d1..b446743337 100644
> > --- a/include/shell.h
> > +++ b/include/shell.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * (C) Copyright 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * Under GPLv2 only
> >   */
> >  
> >  #ifndef __SHELL_H__
> >  #define __SHELL_H__
> >  
> >  int shell_get_last_return_code(void);
> >  
> >  int run_shell(void);
> >  
> >  #ifdef CONFIG_SHELL_HUSH
> >  char *shell_expand(char *str);
> > diff --git a/include/uimagefs.h b/include/uimagefs.h
> > index 3f58589b73..9a32a77c16 100644
> > --- a/include/uimagefs.h
> > +++ b/include/uimagefs.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >   *
> >   * under GPLv2 only
> >   */
> >  
> >  #ifndef __UIMAGEFS_H__
> >  #define __UIMAGEFS_H__
> >  
> >  #include <linux/types.h>
> >  #include <linux/list.h>
> >  #include <image.h>
> >  #include <ioctl.h>
> >  
> >  #define UIMAGEFS_METADATA	_IOR('U', 100, struct image_header)
> > diff --git a/include/w1_mac_address.h b/include/w1_mac_address.h
> > index cd4be765f7..2d499a3690 100644
> > --- a/include/w1_mac_address.h
> > +++ b/include/w1_mac_address.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
> >   *
> >   * Under GPLv2 only
> >   */
> >  
> >  #ifndef __W1_MAC_ADDRESS_H__
> >  #define __W1_MAC_ADDRESS_H__
> >  
> >  /**
> >   * w1_local_mac_address_register - use the first 3 byte of the id of a 1-wire
> >   * or 6 if no OUI provided device to provide an Ethernet address
> >   * @ethid: ethernet device id
> >   * @oui: Ethernet OUI (3 bytes)
> >   * @w1_dev: 1-wire device name
> > diff --git a/include/xymodem.h b/include/xymodem.h
> > index 917cecc003..82a36bfe7d 100644
> > --- a/include/xymodem.h
> > +++ b/include/xymodem.h
> > @@ -1,15 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> >  /*
> >   * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
> >   *
> >   * Copyright (C) 2008 Robert Jarzmik
> >   *
> >   * 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.
> >   */
> > 
> 
> 
> -- 
> Regards,
> Oleksij
> 




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


-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
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] 41+ messages in thread

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-03-10 20:42   ` Roland Hieber
@ 2019-03-10 21:06     ` Sam Ravnborg
  2019-03-13  9:42       ` Roland Hieber
  0 siblings, 1 reply; 41+ messages in thread
From: Sam Ravnborg @ 2019-03-10 21:06 UTC (permalink / raw)
  To: Roland Hieber; +Cc: barebox, Oleksij Rempel

Hi Roland.

On Sun, Mar 10, 2019 at 09:42:25PM +0100, Roland Hieber wrote:
> Hi,
> 
> this thread has been open for some time now without any more responses.
> The only motion against it was from Oleksij, who asked me remove the
> license headers in favour of having only the SPDX-License-Identifier
> tags.  I replied that I think both the human-understandable license
> headers and the machine-readable tags have their own value, but there
> was no further argument.
I agree with Oleksij here.
We have the license information we need expressed using the SPDX tag,
and we shall avoid the remaining license boiler plate.

If one needs to read the license text it is in the tree.
And when we do not have it in the file one does not have to read
it both in the file and in the tree when this is relevant
to look into.
The rest of us is just glad to have less boilerplate to
drag around with.

	Sam

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

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

* Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2019-03-10 21:06     ` Sam Ravnborg
@ 2019-03-13  9:42       ` Roland Hieber
  0 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2019-03-13  9:42 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: barebox, Oleksij Rempel

On Sun, Mar 10, 2019 at 10:06:26PM +0100, Sam Ravnborg wrote:
> Hi Roland.
> 
> On Sun, Mar 10, 2019 at 09:42:25PM +0100, Roland Hieber wrote:
> > Hi,
> > 
> > this thread has been open for some time now without any more responses.
> > The only motion against it was from Oleksij, who asked me remove the
> > license headers in favour of having only the SPDX-License-Identifier
> > tags.  I replied that I think both the human-understandable license
> > headers and the machine-readable tags have their own value, but there
> > was no further argument.
> I agree with Oleksij here.
> We have the license information we need expressed using the SPDX tag,
> and we shall avoid the remaining license boiler plate.
> 
> If one needs to read the license text it is in the tree.
> And when we do not have it in the file one does not have to read
> it both in the file and in the tree when this is relevant
> to look into.
> The rest of us is just glad to have less boilerplate to
> drag around with.

OK thanks. There was less feedback than I'd hoped for, but what was
there went in the same direction, so I'll spin a v2 without the headers.

 - Roland

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

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

* [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
                   ` (5 preceding siblings ...)
  2019-02-08  5:48 ` [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Oleksij Rempel
@ 2020-02-02 15:42 ` Roland Hieber
  2020-02-02 15:42   ` [PATCH v2 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
                     ` (5 more replies)
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
  7 siblings, 6 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-02 15:42 UTC (permalink / raw)
  To: barebox; +Cc: Roland Hieber

Greetings from FOSDEM at Brussels! I submitted the first version of this
patch series at FOSDEM last year (see [0]), so I guess it's time for a
small anniversary present :D

[0]: https://www.mail-archive.com/barebox@lists.infradead.org/msg30174.html

Changes v1 -> v2:
 * also remove the GPL / LGPL boilerplata lines. Sadly the research on
   why Linux and U-Boot did this did not come up with a good result
   except "SPDX is an industry-wide accepted standard" [1] and
   "SPDX-License-Identifiers are a legally binding shorthand" [2],
   without further elaboration... However, since commit
   23ea88c5e5f47df6beed ("README: add licensing information") we now
   explain in our README what these SPDX tags actually mean, so there
   should be no ambiguity.  (Feedback by Oleksij Rempel, Sam Ravnborg
   and Ahmad Fatoum)

   [1]: https://patchwork.kernel.org/patch/10045625/#21135079
   [2]: e.g. here https://lore.kernel.org/patchwork/patch/854656/


Roland Hieber (6):
  include: add SPDX GPL-2.0-only license tags where applicable
  include: add SPDX GPL-2.0-or-later license tags where applicable
  include: add SPDX GPL-2.0-only license tags for files without
    licensing information
  include: add SPDX LGPL-2.1-or-later license tags where applicable
  include: spi: add SPDX GPL-2.0-or-later license tags where applicable
  include: spi: add SPDX GPL-2.0-only license tags for files without
    licensing information

 include/abort.h             |  1 +
 include/aimage.h            |  3 +--
 include/aiodev.h            | 13 +------------
 include/ata_drive.h         | 11 +----------
 include/bbu.h               |  1 +
 include/binfmt.h            |  3 +--
 include/block.h             |  1 +
 include/blspec.h            |  1 +
 include/boot.h              |  1 +
 include/bootchooser.h       |  1 +
 include/bootm.h             |  1 +
 include/bootsource.h        |  1 +
 include/bootstrap.h         |  3 +--
 include/bpkfs.h             |  3 +--
 include/bunzip2.h           |  1 +
 include/byteorder.h         |  1 +
 include/cache.h             |  1 +
 include/clock.h             |  1 +
 include/cmdlinepart.h       |  1 +
 include/command.h           | 12 +-----------
 include/common.h            | 12 +-----------
 include/complete.h          |  1 +
 include/console.h           | 12 +-----------
 include/console_countdown.h |  1 +
 include/crc.h               |  1 +
 include/crc7.h              |  1 +
 include/debug_ll.h          | 11 +----------
 include/dhcp.h              |  5 +----
 include/digest.h            | 12 +-----------
 include/dirent.h            |  1 +
 include/disks.h             | 11 +----------
 include/dma-dir.h           |  1 +
 include/dma.h               |  4 +---
 include/driver.h            | 12 +-----------
 include/efi.h               |  1 +
 include/elf.h               |  1 +
 include/envfs.h             |  1 +
 include/environment.h       | 12 +-----------
 include/errno.h             |  1 +
 include/fb.h                |  1 +
 include/fcntl.h             |  1 +
 include/fdt.h               |  1 +
 include/file-list.h         |  1 +
 include/filetype.h          |  1 +
 include/firmware.h          | 10 +---------
 include/fnmatch.h           | 17 ++---------------
 include/fs.h                |  1 +
 include/getopt.h            | 11 +----------
 include/glob.h              | 17 ++---------------
 include/globalvar.h         |  1 +
 include/gpio.h              |  1 +
 include/gpio_keys.h         |  1 +
 include/gunzip.h            |  1 +
 include/hab.h               | 11 +----------
 include/image-fit.h         | 14 +-------------
 include/image-metadata.h    |  1 +
 include/image.h             | 12 +-----------
 include/init.h              |  1 +
 include/int_sqrt.h          | 12 +-----------
 include/io.h                |  1 +
 include/ioctl.h             |  1 +
 include/jtag.h              | 15 +--------------
 include/kallsyms.h          |  1 +
 include/kfifo.h             | 11 +----------
 include/kgdb.h              |  1 +
 include/led.h               |  1 +
 include/libbb.h             |  2 +-
 include/libfile.h           |  1 +
 include/libgen.h            |  1 +
 include/local_mac_address.h |  3 +--
 include/lzo.h               |  1 +
 include/magicvar.h          |  1 +
 include/malloc.h            |  1 +
 include/math.h              |  1 +
 include/mci.h               | 12 +-----------
 include/memory.h            |  1 +
 include/memtest.h           |  1 +
 include/menu.h              | 12 +-----------
 include/mmu.h               |  1 +
 include/module.h            |  1 +
 include/nand.h              |  1 +
 include/notifier.h          |  1 +
 include/of.h                |  1 +
 include/of_address.h        |  1 +
 include/of_device.h         |  1 +
 include/of_gpio.h           |  6 +-----
 include/of_graph.h          |  5 +----
 include/of_mtd.h            |  3 +--
 include/of_net.h            |  3 +--
 include/of_pci.h            |  1 +
 include/param.h             |  1 +
 include/parseopt.h          |  1 +
 include/part.h              | 12 +-----------
 include/partition.h         |  1 +
 include/password.h          | 11 +----------
 include/pbl.h               |  3 +--
 include/phy-id-list.h       |  1 +
 include/pinctrl.h           |  1 +
 include/poller.h            |  4 +---
 include/poweroff.h          |  1 +
 include/printk.h            |  1 +
 include/progress.h          |  1 +
 include/pwm.h               |  1 +
 include/qsort.h             |  1 +
 include/ratp.h              |  1 +
 include/ratp_bb.h           |  1 +
 include/readkey.h           |  1 +
 include/regmap.h            |  1 +
 include/regulator.h         |  1 +
 include/reset_source.h      |  6 +-----
 include/restart.h           |  1 +
 include/rtc.h               | 12 +-----------
 include/s_record.h          | 12 +-----------
 include/scsi.h              | 13 +------------
 include/serdev.h            |  1 +
 include/shell.h             |  3 +--
 include/sntp.h              |  1 +
 include/spi/eeprom.h        |  1 +
 include/spi/flash.h         |  1 +
 include/spi/imx-spi.h       |  1 +
 include/spi/spi.h           |  1 +
 include/spi/spi_gpio.h      | 11 +----------
 include/state.h             |  1 +
 include/stdio.h             |  1 +
 include/stdlib.h            |  1 +
 include/stmp-device.h       |  6 +-----
 include/string.h            |  1 +
 include/stringlist.h        |  1 +
 include/twl6030_pwrbtn.h    |  1 +
 include/types.h             |  1 +
 include/ubiformat.h         |  1 +
 include/uimagefs.h          |  3 +--
 include/uncompress.h        |  1 +
 include/unistd.h            |  1 +
 include/usb_dfu_trailer.h   |  1 +
 include/w1_mac_address.h    |  3 +--
 include/watchdog.h          | 12 +-----------
 include/wchar.h             |  1 +
 include/xfuncs.h            |  1 +
 include/xymodem.h           | 11 +----------
 140 files changed, 142 insertions(+), 386 deletions(-)

-- 
2.24.1


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

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

* [PATCH v2 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
@ 2020-02-02 15:42   ` Roland Hieber
  2020-02-03  7:42     ` Ahmad Fatoum
  2020-02-02 15:42   ` [PATCH v2 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
                     ` (4 subsequent siblings)
  5 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2020-02-02 15:42 UTC (permalink / raw)
  To: barebox; +Cc: Roland Hieber

Interpret "GPLv2" as "GPLv2 only".

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/aimage.h            |  3 +--
 include/aiodev.h            | 13 +------------
 include/binfmt.h            |  3 +--
 include/bootstrap.h         |  3 +--
 include/bpkfs.h             |  3 +--
 include/dhcp.h              |  5 +----
 include/digest.h            | 12 +-----------
 include/dma.h               |  4 +---
 include/firmware.h          | 10 +---------
 include/getopt.h            | 11 +----------
 include/local_mac_address.h |  3 +--
 include/menu.h              | 12 +-----------
 include/of_graph.h          |  5 +----
 include/of_mtd.h            |  3 +--
 include/of_net.h            |  3 +--
 include/password.h          | 11 +----------
 include/pbl.h               |  3 +--
 include/poller.h            |  4 +---
 include/shell.h             |  3 +--
 include/uimagefs.h          |  3 +--
 include/w1_mac_address.h    |  3 +--
 include/xymodem.h           | 11 +----------
 22 files changed, 22 insertions(+), 109 deletions(-)

diff --git a/include/aimage.h b/include/aimage.h
index 9702b7d35ca0..4f34c2477112 100644
--- a/include/aimage.h
+++ b/include/aimage.h
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2011 Jean-Christhophe PLAGNIOL-VILLARD <plagniol@jcrosoft.com>
  *
  * Android boot image
- *
- * Under GPLv2 only
  */
 
 #ifndef __AIMAGE_H__
diff --git a/include/aiodev.h b/include/aiodev.h
index 5e38b4fab5ad..b088c6c1dd34 100644
--- a/include/aiodev.h
+++ b/include/aiodev.h
@@ -1,20 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * core.c - Code implementing core functionality of AIODEV susbsystem
  *
  * Copyright (c) 2015 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
  * Copyright (c) 2015 Zodiac Inflight Innovation
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * 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.
  */
 
 #ifndef __AIODEVICE_H
diff --git a/include/binfmt.h b/include/binfmt.h
index 46b627e36da1..7eb46e522573 100644
--- a/include/binfmt.h
+++ b/include/binfmt.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * GPL v2
  */
 
 #ifndef __BFMT_H__
diff --git a/include/bootstrap.h b/include/bootstrap.h
index d3ee6be47c7a..05734a920c3e 100644
--- a/include/bootstrap.h
+++ b/include/bootstrap.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
- *
- * Under GPLv2
  */
 
 #ifndef __BOOSTRAP_H__
diff --git a/include/bpkfs.h b/include/bpkfs.h
index ccb56c1419e5..c80dc211c672 100644
--- a/include/bpkfs.h
+++ b/include/bpkfs.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * under GPLv2 only
  */
 
 #ifndef __BPKFS_H__
diff --git a/include/dhcp.h b/include/dhcp.h
index 0dced8e9faa4..e19dac0d66ab 100644
--- a/include/dhcp.h
+++ b/include/dhcp.h
@@ -1,10 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2015 PHYTEC Messtechnik GmbH,
  * Author: Wadim Egorov <w.egorov@phytec.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.
  */
 
 #ifndef __DHCP_H__
diff --git a/include/digest.h b/include/digest.h
index 176084146b76..6148c03da469 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -1,19 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * 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.
- *
  */
 
 #ifndef __DIGEST_H__
diff --git a/include/dma.h b/include/dma.h
index 7f95782635d8..07b79cd91893 100644
--- a/include/dma.h
+++ b/include/dma.h
@@ -1,8 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 by Marc Kleine-Budde <mkl@pengutronix.de>
- *
- * This file is released under the GPLv2
- *
  */
 
 #ifndef __DMA_H
diff --git a/include/firmware.h b/include/firmware.h
index 7c01a77118eb..19777d9bf711 100644
--- a/include/firmware.h
+++ b/include/firmware.h
@@ -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.
  */
 
 #ifndef FIRMWARE_H
diff --git a/include/getopt.h b/include/getopt.h
index 4f48ba8fd9b2..d4c01e793ad6 100644
--- a/include/getopt.h
+++ b/include/getopt.h
@@ -1,17 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * getopt.h - a simple getopt(3) implementation.
  *
  * 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.
- *
  */
 
 #ifndef __GETOPT_H
diff --git a/include/local_mac_address.h b/include/local_mac_address.h
index 3d1ec66b1f9f..5d2fb9d4c2e0 100644
--- a/include/local_mac_address.h
+++ b/include/local_mac_address.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
- *
- * Under GPLv2 only
  */
 
 #ifndef __LOCAL_MAC_ADDRESS_H__
diff --git a/include/menu.h b/include/menu.h
index 2fef064499f7..77c496c65c17 100644
--- a/include/menu.h
+++ b/include/menu.h
@@ -1,19 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2009-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * 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.
- *
  */
 
 #ifndef __MENU_H__
diff --git a/include/of_graph.h b/include/of_graph.h
index 254dd2ca28c9..ef3fb8b94a76 100644
--- a/include/of_graph.h
+++ b/include/of_graph.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * OF graph binding parsing helpers
  *
@@ -6,10 +7,6 @@
  *
  * Copyright (C) 2012 Renesas Electronics Corp.
  * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
  */
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
diff --git a/include/of_mtd.h b/include/of_mtd.h
index 9f5b8a2796a2..6dbc3d86730d 100644
--- a/include/of_mtd.h
+++ b/include/of_mtd.h
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * OF helpers for mtd.
- *
- * This file is released under the GPLv2
  */
 
 #ifndef __LINUX_OF_MTD_H
diff --git a/include/of_net.h b/include/of_net.h
index 0f6ef200d5c6..f37af58303a5 100644
--- a/include/of_net.h
+++ b/include/of_net.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * OF helpers for network devices.
- *
- * This file is released under the GPLv2
  */
 
 #ifndef __LINUX_OF_NET_H
diff --git a/include/password.h b/include/password.h
index 8b9961815fab..e259a87da1ac 100644
--- a/include/password.h
+++ b/include/password.h
@@ -1,18 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
- *
- * 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.
- *
  */
 
 #ifndef __PASSWORD_H__
diff --git a/include/pbl.h b/include/pbl.h
index 787bd8293ff1..f84ed3b7bfcf 100644
--- a/include/pbl.h
+++ b/include/pbl.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * Under GPLv2
  */
 
 #ifndef __PBL_H__
diff --git a/include/poller.h b/include/poller.h
index 35a2271d699c..b22b8a1b8959 100644
--- a/include/poller.h
+++ b/include/poller.h
@@ -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
- *
  */
 
 #ifndef POLLER_H
diff --git a/include/shell.h b/include/shell.h
index 65dad0e1d147..073f18102b45 100644
--- a/include/shell.h
+++ b/include/shell.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * Under GPLv2 only
  */
 
 #ifndef __SHELL_H__
diff --git a/include/uimagefs.h b/include/uimagefs.h
index 3f58589b731e..6b34982e4e97 100644
--- a/include/uimagefs.h
+++ b/include/uimagefs.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * under GPLv2 only
  */
 
 #ifndef __UIMAGEFS_H__
diff --git a/include/w1_mac_address.h b/include/w1_mac_address.h
index cd4be765f73e..1ee0ad27c99d 100644
--- a/include/w1_mac_address.h
+++ b/include/w1_mac_address.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
- *
- * Under GPLv2 only
  */
 
 #ifndef __W1_MAC_ADDRESS_H__
diff --git a/include/xymodem.h b/include/xymodem.h
index 917cecc003f7..7b8602b26573 100644
--- a/include/xymodem.h
+++ b/include/xymodem.h
@@ -1,17 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
  *
  * Copyright (C) 2008 Robert Jarzmik
- *
- * 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.
  */
 
 #ifndef _XYMODEM_
-- 
2.24.1


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

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

* [PATCH v2 2/6] include: add SPDX GPL-2.0-or-later license tags where applicable
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
  2020-02-02 15:42   ` [PATCH v2 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
@ 2020-02-02 15:42   ` Roland Hieber
  2020-02-03  7:45     ` Ahmad Fatoum
  2020-02-02 15:42   ` [PATCH v2 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
                     ` (3 subsequent siblings)
  5 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2020-02-02 15:42 UTC (permalink / raw)
  To: barebox; +Cc: Roland Hieber

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/ata_drive.h    | 11 +----------
 include/command.h      | 12 +-----------
 include/common.h       | 12 +-----------
 include/console.h      | 12 +-----------
 include/debug_ll.h     | 11 +----------
 include/disks.h        | 11 +----------
 include/driver.h       | 12 +-----------
 include/environment.h  | 12 +-----------
 include/hab.h          | 11 +----------
 include/image-fit.h    | 14 +-------------
 include/image.h        | 12 +-----------
 include/int_sqrt.h     | 12 +-----------
 include/jtag.h         | 15 +--------------
 include/kfifo.h        | 11 +----------
 include/mci.h          | 12 +-----------
 include/of_gpio.h      |  6 +-----
 include/part.h         | 12 +-----------
 include/reset_source.h |  6 +-----
 include/rtc.h          | 12 +-----------
 include/s_record.h     | 12 +-----------
 include/scsi.h         | 13 +------------
 include/stmp-device.h  |  6 +-----
 include/watchdog.h     | 12 +-----------
 23 files changed, 23 insertions(+), 236 deletions(-)

diff --git a/include/ata_drive.h b/include/ata_drive.h
index d61c6f11d4d3..d98e410b30c3 100644
--- a/include/ata_drive.h
+++ b/include/ata_drive.h
@@ -1,16 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
  */
 
 #ifndef ATA_DISK_H
diff --git a/include/command.h b/include/command.h
index 7555d0053c63..f016e35b2d45 100644
--- a/include/command.h
+++ b/include/command.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/common.h b/include/common.h
index c6eb50420f68..ef2e4e5c31dd 100644
--- a/include/common.h
+++ b/include/common.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef __COMMON_H_
diff --git a/include/console.h b/include/console.h
index 537ac97ab34d..634b95ca4e9a 100644
--- a/include/console.h
+++ b/include/console.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef _CONSOLE_H_
diff --git a/include/debug_ll.h b/include/debug_ll.h
index 504751639950..5bd1afe6ac73 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * debug_ll.h
  *
@@ -5,16 +6,6 @@
  *  12 Feb 2005
  *
  *  Copyright (C) 2005 Marc Singer
- *
- * 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.
  */
 
 #ifndef __INCLUDE_DEBUG_LL_H__
diff --git a/include/disks.h b/include/disks.h
index 9932750a245b..e9b72c250753 100644
--- a/include/disks.h
+++ b/include/disks.h
@@ -1,16 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
  */
 
 #ifndef DISKS_H
diff --git a/include/driver.h b/include/driver.h
index 74be1b3e8e41..6176e6a05f3f 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -1,19 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef DRIVER_H
diff --git a/include/environment.h b/include/environment.h
index 52eafe98824b..39606b8ad958 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef _ENVIRONMENT_H_
diff --git a/include/hab.h b/include/hab.h
index 78c2b865babd..1aa5384053b7 100644
--- a/include/hab.h
+++ b/include/hab.h
@@ -1,18 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Copyright (C) 2014, 2015 Marc Kleine-Budde <mkl@pengutronix.de>
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
  */
 
 #ifndef __HABV4_H
diff --git a/include/image-fit.h b/include/image-fit.h
index fc0883b5dcb1..27c9e835195c 100644
--- a/include/image-fit.h
+++ b/include/image-fit.h
@@ -1,17 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * 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/>.
- *
  * Copyright (C) Jan Lübbe, 2014
  */
 
diff --git a/include/image.h b/include/image.h
index add9c8587402..18344dfef967 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2005
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@ -5,17 +6,6 @@
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
- *
  ********************************************************************
  * NOTE: This header file defines an interface to barebox. Including
  * this (unmodified) header file in another file is considered normal
diff --git a/include/int_sqrt.h b/include/int_sqrt.h
index 55fb4fbe6682..b06e6a8ab155 100644
--- a/include/int_sqrt.h
+++ b/include/int_sqrt.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef __INT_SQRT__
diff --git a/include/jtag.h b/include/jtag.h
index 4cc4eaca9182..b2a533fcb863 100644
--- a/include/jtag.h
+++ b/include/jtag.h
@@ -1,21 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * include/linux/jtag.h
  *
  * Written Aug 2009 by Davide Rizzo <elpa.rizzo@gmail.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; 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, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
 /*
diff --git a/include/kfifo.h b/include/kfifo.h
index 25880f4626b8..9c19d08b696a 100644
--- a/include/kfifo.h
+++ b/include/kfifo.h
@@ -1,17 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * A simple kernel FIFO implementation.
  *
  * Copyright (C) 2004 Stelian Pop <stelian@popies.net>
- *
- * 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.
  */
 #ifndef _LINUX_KFIFO_H
 #define _LINUX_KFIFO_H
diff --git a/include/mci.h b/include/mci.h
index a45d744761a2..50febdd4b8d5 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2010 Juergen Beisert, Pengutronix
  *
@@ -10,17 +11,6 @@
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef _MCI_H_
diff --git a/include/of_gpio.h b/include/of_gpio.h
index 95a454c683e5..9076c81e5462 100644
--- a/include/of_gpio.h
+++ b/include/of_gpio.h
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * OF helpers for the GPIO API
  *
  * based on Linux OF_GPIO API
- *
- * 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.
  */
 
 #ifndef __OF_GPIO_H
diff --git a/include/part.h b/include/part.h
index d4d40f6ec9ce..66cc93ae96e2 100644
--- a/include/part.h
+++ b/include/part.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 #ifndef _PART_H
 #define _PART_H
diff --git a/include/reset_source.h b/include/reset_source.h
index 305dde0102d5..8795029315c8 100644
--- a/include/reset_source.h
+++ b/include/reset_source.h
@@ -1,13 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * 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.
  */
 
 #ifndef __INCLUDE_RESET_SOURCE_H
diff --git a/include/rtc.h b/include/rtc.h
index 600dc46c41c7..3190ea20dac8 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2001
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/s_record.h b/include/s_record.h
index 84b4719519fe..190850beed7a 100644
--- a/include/s_record.h
+++ b/include/s_record.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/scsi.h b/include/scsi.h
index 59d47393c8a3..ede19079621f 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -1,21 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2001
  * Denis Peter, MPL AG Switzerland
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
- *
  */
  #ifndef _SCSI_H
  #define _SCSI_H
diff --git a/include/stmp-device.h b/include/stmp-device.h
index 9b5bee47129b..256856c58926 100644
--- a/include/stmp-device.h
+++ b/include/stmp-device.h
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * basic functions for devices following the "stmp" style register layout
  *
  * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K.
- *
- * 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.
  */
 
 #ifndef __STMP_DEVICE_H__
diff --git a/include/watchdog.h b/include/watchdog.h
index 9741570ce229..419c1cdf469e 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -1,14 +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 */
 
 #ifndef INCLUDE_WATCHDOG_H
 # define INCLUDE_WATCHDOG_H
-- 
2.24.1


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

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

* [PATCH v2 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
  2020-02-02 15:42   ` [PATCH v2 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
  2020-02-02 15:42   ` [PATCH v2 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2020-02-02 15:42   ` Roland Hieber
  2020-02-03  7:47     ` Ahmad Fatoum
  2020-02-02 15:42   ` [PATCH v2 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
                     ` (2 subsequent siblings)
  5 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2020-02-02 15:42 UTC (permalink / raw)
  To: barebox; +Cc: Roland Hieber

According to our /README, GPL-2.0-only applies for the whole project
except noted otherwise.

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/abort.h             | 1 +
 include/bbu.h               | 1 +
 include/block.h             | 1 +
 include/blspec.h            | 1 +
 include/boot.h              | 1 +
 include/bootchooser.h       | 1 +
 include/bootm.h             | 1 +
 include/bootsource.h        | 1 +
 include/bunzip2.h           | 1 +
 include/byteorder.h         | 1 +
 include/cache.h             | 1 +
 include/clock.h             | 1 +
 include/cmdlinepart.h       | 1 +
 include/complete.h          | 1 +
 include/console_countdown.h | 1 +
 include/crc.h               | 1 +
 include/crc7.h              | 1 +
 include/dirent.h            | 1 +
 include/dma-dir.h           | 1 +
 include/efi.h               | 1 +
 include/elf.h               | 1 +
 include/envfs.h             | 1 +
 include/errno.h             | 1 +
 include/fb.h                | 1 +
 include/fcntl.h             | 1 +
 include/fdt.h               | 1 +
 include/file-list.h         | 1 +
 include/filetype.h          | 1 +
 include/fs.h                | 1 +
 include/globalvar.h         | 1 +
 include/gpio.h              | 1 +
 include/gpio_keys.h         | 1 +
 include/gunzip.h            | 1 +
 include/image-metadata.h    | 1 +
 include/init.h              | 1 +
 include/io.h                | 1 +
 include/ioctl.h             | 1 +
 include/kallsyms.h          | 1 +
 include/kgdb.h              | 1 +
 include/led.h               | 1 +
 include/libbb.h             | 2 +-
 include/libfile.h           | 1 +
 include/libgen.h            | 1 +
 include/lzo.h               | 1 +
 include/magicvar.h          | 1 +
 include/malloc.h            | 1 +
 include/math.h              | 1 +
 include/memory.h            | 1 +
 include/memtest.h           | 1 +
 include/mmu.h               | 1 +
 include/module.h            | 1 +
 include/nand.h              | 1 +
 include/notifier.h          | 1 +
 include/of.h                | 1 +
 include/of_address.h        | 1 +
 include/of_device.h         | 1 +
 include/of_pci.h            | 1 +
 include/param.h             | 1 +
 include/parseopt.h          | 1 +
 include/partition.h         | 1 +
 include/phy-id-list.h       | 1 +
 include/pinctrl.h           | 1 +
 include/poweroff.h          | 1 +
 include/printk.h            | 1 +
 include/progress.h          | 1 +
 include/pwm.h               | 1 +
 include/qsort.h             | 1 +
 include/ratp.h              | 1 +
 include/ratp_bb.h           | 1 +
 include/readkey.h           | 1 +
 include/regmap.h            | 1 +
 include/regulator.h         | 1 +
 include/restart.h           | 1 +
 include/serdev.h            | 1 +
 include/sntp.h              | 1 +
 include/state.h             | 1 +
 include/stdio.h             | 1 +
 include/stdlib.h            | 1 +
 include/string.h            | 1 +
 include/stringlist.h        | 1 +
 include/twl6030_pwrbtn.h    | 1 +
 include/types.h             | 1 +
 include/ubiformat.h         | 1 +
 include/uncompress.h        | 1 +
 include/unistd.h            | 1 +
 include/usb_dfu_trailer.h   | 1 +
 include/wchar.h             | 1 +
 include/xfuncs.h            | 1 +
 88 files changed, 88 insertions(+), 1 deletion(-)

diff --git a/include/abort.h b/include/abort.h
index 89ee549e3452..039500b04d0b 100644
--- a/include/abort.h
+++ b/include/abort.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __ABORT_H
 #define __ABORT_H
 
diff --git a/include/bbu.h b/include/bbu.h
index 9da6785d2e67..3b9d2f4bf151 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_BBU_H
 #define __INCLUDE_BBU_H
 
diff --git a/include/block.h b/include/block.h
index 91377679b0d4..bd87efdc62bc 100644
--- a/include/block.h
+++ b/include/block.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BLOCK_H
 #define __BLOCK_H
 
diff --git a/include/blspec.h b/include/blspec.h
index 7d911f030bfa..37076cd47c97 100644
--- a/include/blspec.h
+++ b/include/blspec.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LOADER_H__
 #define __LOADER_H__
 
diff --git a/include/boot.h b/include/boot.h
index 4f7612ab803d..4054c27d935a 100644
--- a/include/boot.h
+++ b/include/boot.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOT_H
 #define __BOOT_H
 
diff --git a/include/bootchooser.h b/include/bootchooser.h
index 7822c01459e4..2cfd5b126ab9 100644
--- a/include/bootchooser.h
+++ b/include/bootchooser.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTCHOOSER_H
 #define __BOOTCHOOSER_H
 
diff --git a/include/bootm.h b/include/bootm.h
index a041aa35b9a0..7782de7a476d 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTM_H
 #define __BOOTM_H
 
diff --git a/include/bootsource.h b/include/bootsource.h
index 92f7f27cd4fa..32295ddd96ab 100644
--- a/include/bootsource.h
+++ b/include/bootsource.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTSOURCE_H__
 #define __BOOTSOURCE_H__
 
diff --git a/include/bunzip2.h b/include/bunzip2.h
index 115272137a9c..55404ff846f6 100644
--- a/include/bunzip2.h
+++ b/include/bunzip2.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef DECOMPRESS_BUNZIP2_H
 #define DECOMPRESS_BUNZIP2_H
 
diff --git a/include/byteorder.h b/include/byteorder.h
index 4b255a5fab9b..c3cac85013ec 100644
--- a/include/byteorder.h
+++ b/include/byteorder.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BYTEORDER_H__
 #define __BYTEORDER_H__
 
diff --git a/include/cache.h b/include/cache.h
index 23841dcd06a2..37e008794bf2 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CACHE_H
 #define __CACHE_H
 
diff --git a/include/clock.h b/include/clock.h
index 211748f3a0b9..d681bf630e88 100644
--- a/include/clock.h
+++ b/include/clock.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef CLOCK_H
 #define CLOCK_H
 
diff --git a/include/cmdlinepart.h b/include/cmdlinepart.h
index bf8cdfa62a6e..9f5bdf610a11 100644
--- a/include/cmdlinepart.h
+++ b/include/cmdlinepart.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CMD_LINE_PART_H
 #define __CMD_LINE_PART_H
 
diff --git a/include/complete.h b/include/complete.h
index 491ba66cb442..763d256bf460 100644
--- a/include/complete.h
+++ b/include/complete.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __COMPLETE_
 #define __COMPLETE_
 
diff --git a/include/console_countdown.h b/include/console_countdown.h
index 88cadf11ec9b..df8da71e8bee 100644
--- a/include/console_countdown.h
+++ b/include/console_countdown.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CONSOLE_COUNTDOWN_H
 #define __CONSOLE_COUNTDOWN_H
 
diff --git a/include/crc.h b/include/crc.h
index a67388f732e0..eb972705c21a 100644
--- a/include/crc.h
+++ b/include/crc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_CRC_H
 #define __INCLUDE_CRC_H
 
diff --git a/include/crc7.h b/include/crc7.h
index 0c41cc341f09..27d2dae4223b 100644
--- a/include/crc7.h
+++ b/include/crc7.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_CRC7_H
 #define _LINUX_CRC7_H
 #include <common.h>
diff --git a/include/dirent.h b/include/dirent.h
index 1df5d904520d..d7b5e78b2728 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __DIRENT_H
 #define __DIRENT_H
 
diff --git a/include/dma-dir.h b/include/dma-dir.h
index 970764c5b3c9..d3b1a27b4fbd 100644
--- a/include/dma-dir.h
+++ b/include/dma-dir.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __DMA_DIR_H
 #define __DMA_DIR_H
 
diff --git a/include/efi.h b/include/efi.h
index 43c05939513d..5698a8414586 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_EFI_H
 #define _LINUX_EFI_H
 
diff --git a/include/elf.h b/include/elf.h
index 44be07f73a64..113728f08a28 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_ELF_H
 #define _LINUX_ELF_H
 
diff --git a/include/envfs.h b/include/envfs.h
index c8fc3759c606..d4e2c6110e65 100644
--- a/include/envfs.h
+++ b/include/envfs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _ENVFS_H
 #define _ENVFS_H
 
diff --git a/include/errno.h b/include/errno.h
index 496ccab0ee6d..50f00de5d636 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __ERRNO_H
 #define __ERRNO_H
 
diff --git a/include/fb.h b/include/fb.h
index 271b939968a2..e17d07ae0cd8 100644
--- a/include/fb.h
+++ b/include/fb.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FB_H
 #define __FB_H
 
diff --git a/include/fcntl.h b/include/fcntl.h
index 98020bdfb160..2e7c0eed3479 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FCNTL_H
 #define __FCNTL_H
 
diff --git a/include/fdt.h b/include/fdt.h
index 38a2d27b0207..232514c894c3 100644
--- a/include/fdt.h
+++ b/include/fdt.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _FDT_H
 #define _FDT_H
 
diff --git a/include/file-list.h b/include/file-list.h
index 404d8d64bb4e..9a9edfa378f3 100644
--- a/include/file-list.h
+++ b/include/file-list.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FILE_LIST
 #define __FILE_LIST
 
diff --git a/include/filetype.h b/include/filetype.h
index db95fdaa0a5f..c3a5bdfbbea3 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FILE_TYPE_H
 #define __FILE_TYPE_H
 
diff --git a/include/fs.h b/include/fs.h
index 38debfc41beb..04ec1329e106 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FS_H
 #define __FS_H
 
diff --git a/include/globalvar.h b/include/globalvar.h
index 67391e2042f9..fc85e93e1431 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __GLOBALVAR_H
 #define __GLOBALVAR_H
 
diff --git a/include/gpio.h b/include/gpio.h
index 0c0c0337e01d..98c5b93ba2e6 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __GPIO_H
 #define __GPIO_H
 
diff --git a/include/gpio_keys.h b/include/gpio_keys.h
index f4a22e16dbc8..f12bed2a0b43 100644
--- a/include/gpio_keys.h
+++ b/include/gpio_keys.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _GPIO_KEYS_H
 #define _GPIO_KEYS_H
 
diff --git a/include/gunzip.h b/include/gunzip.h
index b9018941d15b..0a959d5eb7a5 100644
--- a/include/gunzip.h
+++ b/include/gunzip.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef GUNZIP_H
 #define GUNZIP_H
 
diff --git a/include/image-metadata.h b/include/image-metadata.h
index 5904d95acd37..330ca3588a0c 100644
--- a/include/image-metadata.h
+++ b/include/image-metadata.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_IMAGE_METADTA_H
 #define __INCLUDE_IMAGE_METADTA_H
 
diff --git a/include/init.h b/include/init.h
index 527d49afecdb..d1cef14b0765 100644
--- a/include/init.h
+++ b/include/init.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _INIT_H
 #define _INIT_H
 
diff --git a/include/io.h b/include/io.h
index 8eb56b061f12..913002072240 100644
--- a/include/io.h
+++ b/include/io.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __IO_H
 #define __IO_H
 
diff --git a/include/ioctl.h b/include/ioctl.h
index 1ade20f90597..3290a52519e8 100644
--- a/include/ioctl.h
+++ b/include/ioctl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __IOCTL_H
 #define __IOCTL_H
 
diff --git a/include/kallsyms.h b/include/kallsyms.h
index 69b84d2c6c00..e0b3ff7cd503 100644
--- a/include/kallsyms.h
+++ b/include/kallsyms.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __KALLSYMS_H
 #define __KALLSYMS_H
 
diff --git a/include/kgdb.h b/include/kgdb.h
index f543cd6e1833..1f23833f92f1 100644
--- a/include/kgdb.h
+++ b/include/kgdb.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __KGDB_H__
 #define __KGDB_H__
 
diff --git a/include/led.h b/include/led.h
index 0ce857129d5b..6b6aff922a86 100644
--- a/include/led.h
+++ b/include/led.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LED_H
 #define __LED_H
 
diff --git a/include/libbb.h b/include/libbb.h
index d05c19063793..a3a13b41cea8 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1,4 +1,4 @@
-
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBBB_H
 #define __LIBBB_H
 
diff --git a/include/libfile.h b/include/libfile.h
index f1d695187790..350ddddf701d 100644
--- a/include/libfile.h
+++ b/include/libfile.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBFILE_H
 #define __LIBFILE_H
 
diff --git a/include/libgen.h b/include/libgen.h
index 71f06eb6f665..6c0f039efaa2 100644
--- a/include/libgen.h
+++ b/include/libgen.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBGEN_H
 #define __LIBGEN_H
 
diff --git a/include/lzo.h b/include/lzo.h
index 6c34be13efd8..f46f38b0edcf 100644
--- a/include/lzo.h
+++ b/include/lzo.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LZO_H__
 #define __LZO_H__
 /*
diff --git a/include/magicvar.h b/include/magicvar.h
index bb5bd2591fb2..9fb89a84cca3 100644
--- a/include/magicvar.h
+++ b/include/magicvar.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MAGIC_VARS_H
 #define __MAGIC_VARS_H
 
diff --git a/include/malloc.h b/include/malloc.h
index 0d3c9e97a0b9..971fc4058bc6 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MALLOC_H
 #define __MALLOC_H
 
diff --git a/include/math.h b/include/math.h
index 5648e3f9c120..1e59a8479ef5 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /* math.h - interface to shell math "library" -- this allows shells to share
  *          the implementation of arithmetic $((...)) expansions.
  *
diff --git a/include/memory.h b/include/memory.h
index 73ee7661ef3e..906d9f7b2689 100644
--- a/include/memory.h
+++ b/include/memory.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MEM_MALLOC_H
 #define __MEM_MALLOC_H
 
diff --git a/include/memtest.h b/include/memtest.h
index 0100a6c58cd9..df0a391cc3c2 100644
--- a/include/memtest.h
+++ b/include/memtest.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MEMTEST_H
 #define __MEMTEST_H
 
diff --git a/include/mmu.h b/include/mmu.h
index 66b246f6d270..2e23853df353 100644
--- a/include/mmu.h
+++ b/include/mmu.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MMU_H
 #define __MMU_H
 
diff --git a/include/module.h b/include/module.h
index 460a34fe2b63..abf740a789b7 100644
--- a/include/module.h
+++ b/include/module.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MODULE_H
 #define __MODULE_H
 
diff --git a/include/nand.h b/include/nand.h
index fb3b5a108810..f0114a227d45 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __NAND_H__
 #define __NAND_H__
 
diff --git a/include/notifier.h b/include/notifier.h
index e0df3e666bb5..432b66c4ca5a 100644
--- a/include/notifier.h
+++ b/include/notifier.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __NOTIFIER_H
 #define __NOTIFIER_H
 
diff --git a/include/of.h b/include/of.h
index 67601ce80cad..8d6c018b73ec 100644
--- a/include/of.h
+++ b/include/of.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_H
 #define __OF_H
 
diff --git a/include/of_address.h b/include/of_address.h
index 350ecaec827a..66117b1fa7f8 100644
--- a/include/of_address.h
+++ b/include/of_address.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_ADDRESS_H
 #define __OF_ADDRESS_H
 
diff --git a/include/of_device.h b/include/of_device.h
index 54410ad12f55..244f5fcbbb11 100644
--- a/include/of_device.h
+++ b/include/of_device.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_DEVICE_H
 #define __OF_DEVICE_H
 
diff --git a/include/of_pci.h b/include/of_pci.h
index c95cb0135ae0..c78715093660 100644
--- a/include/of_pci.h
+++ b/include/of_pci.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_PCI_H
 #define __OF_PCI_H
 
diff --git a/include/param.h b/include/param.h
index d75f50ea3e60..2d68338bb30b 100644
--- a/include/param.h
+++ b/include/param.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef PARAM_H
 #define PARAM_H
 
diff --git a/include/parseopt.h b/include/parseopt.h
index 273a371ac342..5a40bdc219fe 100644
--- a/include/parseopt.h
+++ b/include/parseopt.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PARSEOPT_H__
 #define __PARSEOPT_H__
 void parseopt_llu_suffix(const char *options, const char *opt,
diff --git a/include/partition.h b/include/partition.h
index 32570530eb99..373134afad25 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PARTITION_H
 #define __PARTITION_H
 
diff --git a/include/phy-id-list.h b/include/phy-id-list.h
index a6070a0248f5..f770c775b8fe 100644
--- a/include/phy-id-list.h
+++ b/include/phy-id-list.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * List of all Etherenet PHY IDs that is not found in any .h files in
  * include/linux
diff --git a/include/pinctrl.h b/include/pinctrl.h
index 7d8716996dab..0fd7f491189c 100644
--- a/include/pinctrl.h
+++ b/include/pinctrl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef PINCTRL_H
 #define PINCTRL_H
 
diff --git a/include/poweroff.h b/include/poweroff.h
index ae9557db5d63..217b68cdf966 100644
--- a/include/poweroff.h
+++ b/include/poweroff.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_POWEROFF_H
 #define __INCLUDE_POWEROFF_H
 
diff --git a/include/printk.h b/include/printk.h
index b0d5d09f835d..6a027175abfe 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PRINTK_H
 #define __PRINTK_H
 
diff --git a/include/progress.h b/include/progress.h
index 5c4dd1e77549..75aa9c4f8616 100644
--- a/include/progress.h
+++ b/include/progress.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PROGRSS_H
 #define __PROGRSS_H
 
diff --git a/include/pwm.h b/include/pwm.h
index 911c760839fa..dcc81af867e8 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PWM_H
 #define __PWM_H
 
diff --git a/include/qsort.h b/include/qsort.h
index d279dc281075..f8d889ea1ea6 100644
--- a/include/qsort.h
+++ b/include/qsort.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __QSORT_H
 #define __QSORT_H
 
diff --git a/include/ratp.h b/include/ratp.h
index d2a81923579d..effa288b4220 100644
--- a/include/ratp.h
+++ b/include/ratp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __RATP_H
 #define __RATP_H
 
diff --git a/include/ratp_bb.h b/include/ratp_bb.h
index b6699979b6b0..a4f28c642ca0 100644
--- a/include/ratp_bb.h
+++ b/include/ratp_bb.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __RATP_BB_H
 #define __RATP_BB_H
 
diff --git a/include/readkey.h b/include/readkey.h
index ed1cd1542d6f..fdb96426e082 100644
--- a/include/readkey.h
+++ b/include/readkey.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef READKEY_H
 #define READKEY_H
 
diff --git a/include/regmap.h b/include/regmap.h
index 09b7b57d52f3..8528f810797c 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __REGMAP_H
 #define __REGMAP_H
 
diff --git a/include/regulator.h b/include/regulator.h
index a445c5c3d10a..d01535df5207 100644
--- a/include/regulator.h
+++ b/include/regulator.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __REGULATOR_H
 #define __REGULATOR_H
 
diff --git a/include/restart.h b/include/restart.h
index 79b57c8e11bf..7ec0910e9404 100644
--- a/include/restart.h
+++ b/include/restart.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_RESTART_H
 #define __INCLUDE_RESTART_H
 
diff --git a/include/serdev.h b/include/serdev.h
index 29030538e5e7..0d020b8e82c2 100644
--- a/include/serdev.h
+++ b/include/serdev.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _SERDEV_H_
 #define _SERDEV_H_
 
diff --git a/include/sntp.h b/include/sntp.h
index bfcfcfa8c837..05cad129cd1d 100644
--- a/include/sntp.h
+++ b/include/sntp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __SNTP_H
 #define __SNTP_H
 
diff --git a/include/state.h b/include/state.h
index d98b781c2089..be1b592576c1 100644
--- a/include/state.h
+++ b/include/state.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STATE_H
 #define __STATE_H
 
diff --git a/include/stdio.h b/include/stdio.h
index 46e277889d68..1cb11e88deea 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STDIO_H
 #define __STDIO_H
 
diff --git a/include/stdlib.h b/include/stdlib.h
index ee3f2299688d..d4056087243d 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STDLIB_H
 #define __STDLIB_H
 
diff --git a/include/string.h b/include/string.h
index 8c63f22491aa..120a613d4688 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STRING_H
 #define __STRING_H
 
diff --git a/include/stringlist.h b/include/stringlist.h
index e85500a99485..5cd452ca5fa4 100644
--- a/include/stringlist.h
+++ b/include/stringlist.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STRINGLIST_H
 #define __STRINGLIST_H
 
diff --git a/include/twl6030_pwrbtn.h b/include/twl6030_pwrbtn.h
index c4e13d1f1de0..4c8e16625638 100644
--- a/include/twl6030_pwrbtn.h
+++ b/include/twl6030_pwrbtn.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _TWL6030_PWRBTN_H
 #define _TWL6030_PWRBTN_H
 
diff --git a/include/types.h b/include/types.h
index 0bfe3b9a0b7e..a6739394e0c8 100644
--- a/include/types.h
+++ b/include/types.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __TYPES_H
 #define __TYPES_H
 
diff --git a/include/ubiformat.h b/include/ubiformat.h
index 8a7a16ac18d8..eca62ae6dba4 100644
--- a/include/ubiformat.h
+++ b/include/ubiformat.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UBIFORMAT_H
 #define __UBIFORMAT_H
 
diff --git a/include/uncompress.h b/include/uncompress.h
index d146c9076809..4bdb03d4f5b6 100644
--- a/include/uncompress.h
+++ b/include/uncompress.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UNCOMPRESS_H
 #define __UNCOMPRESS_H
 
diff --git a/include/unistd.h b/include/unistd.h
index f392e6dd6cbd..06ce3558099f 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UNISTD_H
 #define __UNISTD_H
 
diff --git a/include/usb_dfu_trailer.h b/include/usb_dfu_trailer.h
index 2cf66a590c43..64b84072755d 100644
--- a/include/usb_dfu_trailer.h
+++ b/include/usb_dfu_trailer.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _USB_DFU_TRAILER_H
 #define _USB_DFU_TRAILER_H
 
diff --git a/include/wchar.h b/include/wchar.h
index adb4f373e950..b601cc62079b 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __WCHAR_H
 #define __WCHAR_H
 
diff --git a/include/xfuncs.h b/include/xfuncs.h
index e3f120a04092..a9132d378722 100644
--- a/include/xfuncs.h
+++ b/include/xfuncs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __XFUNCS_H
 #define __XFUNCS_H
 
-- 
2.24.1


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

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

* [PATCH v2 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (2 preceding siblings ...)
  2020-02-02 15:42   ` [PATCH v2 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
@ 2020-02-02 15:42   ` Roland Hieber
  2020-02-03  7:49     ` Ahmad Fatoum
  2020-02-02 15:43   ` [PATCH v2 5/6] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
  2020-02-02 15:43   ` [PATCH v2 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
  5 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2020-02-02 15:42 UTC (permalink / raw)
  To: barebox; +Cc: Roland Hieber

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/fnmatch.h | 17 ++---------------
 include/glob.h    | 17 ++---------------
 2 files changed, 4 insertions(+), 30 deletions(-)

diff --git a/include/fnmatch.h b/include/fnmatch.h
index c0fd6a920710..c13beb9011fb 100644
--- a/include/fnmatch.h
+++ b/include/fnmatch.h
@@ -1,20 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /* Copyright (C) 1991,92,93,96,97,98,99,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+*/
 
 #ifndef	_FNMATCH_H
 #define	_FNMATCH_H	1
diff --git a/include/glob.h b/include/glob.h
index 777815251312..5f532e6652c3 100644
--- a/include/glob.h
+++ b/include/glob.h
@@ -1,20 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /* Copyright (C) 1991,92,95,96,97,98,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+*/
 
 #ifndef	_GLOB_H
 #define	_GLOB_H	1
-- 
2.24.1


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

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

* [PATCH v2 5/6] include: spi: add SPDX GPL-2.0-or-later license tags where applicable
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (3 preceding siblings ...)
  2020-02-02 15:42   ` [PATCH v2 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
@ 2020-02-02 15:43   ` Roland Hieber
  2020-02-03  7:50     ` Ahmad Fatoum
  2020-02-02 15:43   ` [PATCH v2 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
  5 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2020-02-02 15:43 UTC (permalink / raw)
  To: barebox; +Cc: Roland Hieber

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/spi/spi_gpio.h | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/include/spi/spi_gpio.h b/include/spi/spi_gpio.h
index 841c934f6ead..a18b7dbe078a 100644
--- a/include/spi/spi_gpio.h
+++ b/include/spi/spi_gpio.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * SPI master driver using generic bitbanged GPIO
  *
@@ -5,16 +6,6 @@
  *
  * Based on Linux driver
  *   Copyright (C) 2006,2008 David Brownell
- *
- * 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.
  */
 
 #ifndef __SPI_GPIO_H
-- 
2.24.1


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

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

* [PATCH v2 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (4 preceding siblings ...)
  2020-02-02 15:43   ` [PATCH v2 5/6] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2020-02-02 15:43   ` Roland Hieber
  2020-02-03  7:51     ` Ahmad Fatoum
  5 siblings, 1 reply; 41+ messages in thread
From: Roland Hieber @ 2020-02-02 15:43 UTC (permalink / raw)
  To: barebox; +Cc: Roland Hieber

According to our /README, GPL-2.0-only applies for the whole project
except noted otherwise.

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 include/spi/eeprom.h  | 1 +
 include/spi/flash.h   | 1 +
 include/spi/imx-spi.h | 1 +
 include/spi/spi.h     | 1 +
 4 files changed, 4 insertions(+)

diff --git a/include/spi/eeprom.h b/include/spi/eeprom.h
index 15495e59f5d6..410ecea19c16 100644
--- a/include/spi/eeprom.h
+++ b/include/spi/eeprom.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _SPI_EEPROM_H
 #define _SPI_EEPROM_H
 
diff --git a/include/spi/flash.h b/include/spi/flash.h
index c1204e7e61a0..796d649d9a92 100644
--- a/include/spi/flash.h
+++ b/include/spi/flash.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef LINUX_SPI_FLASH_H
 #define LINUX_SPI_FLASH_H
 
diff --git a/include/spi/imx-spi.h b/include/spi/imx-spi.h
index a592573e6265..568795188c0c 100644
--- a/include/spi/imx-spi.h
+++ b/include/spi/imx-spi.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __SPI_IMX_SPI_H
 #define __SPI_IMX_SPI_H
 
diff --git a/include/spi/spi.h b/include/spi/spi.h
index bdcda0bb603c..48a90bcca749 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_SPI_H
 #define __INCLUDE_SPI_H
 
-- 
2.24.1


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

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

* Re: [PATCH v2 1/6] include: add SPDX GPL-2.0-only license tags where applicable
  2020-02-02 15:42   ` [PATCH v2 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
@ 2020-02-03  7:42     ` Ahmad Fatoum
  0 siblings, 0 replies; 41+ messages in thread
From: Ahmad Fatoum @ 2020-02-03  7:42 UTC (permalink / raw)
  To: Roland Hieber, barebox

Hello Roland,

firstly thanks for working on this!

On 2/2/20 4:42 PM, Roland Hieber wrote:
> Interpret "GPLv2" as "GPLv2 only".
> 
> Signed-off-by: Roland Hieber <rohieb@rohieb.name>
> ---
>  include/aimage.h            |  3 +--
>  include/aiodev.h            | 13 +------------
>  include/binfmt.h            |  3 +--
>  include/bootstrap.h         |  3 +--
>  include/bpkfs.h             |  3 +--
>  include/dhcp.h              |  5 +----
>  include/digest.h            | 12 +-----------
>  include/dma.h               |  4 +---
>  include/firmware.h          | 10 +---------
>  include/getopt.h            | 11 +----------
>  include/local_mac_address.h |  3 +--
>  include/menu.h              | 12 +-----------
>  include/of_graph.h          |  5 +----
>  include/of_mtd.h            |  3 +--
>  include/of_net.h            |  3 +--
>  include/password.h          | 11 +----------
>  include/pbl.h               |  3 +--
>  include/poller.h            |  4 +---
>  include/shell.h             |  3 +--
>  include/uimagefs.h          |  3 +--
>  include/w1_mac_address.h    |  3 +--
>  include/xymodem.h           | 11 +----------
>  22 files changed, 22 insertions(+), 109 deletions(-)
> 

> diff --git a/include/xymodem.h b/include/xymodem.h
> index 917cecc003f7..7b8602b26573 100644
> --- a/include/xymodem.h
> +++ b/include/xymodem.h
> @@ -1,17 +1,8 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
>   *
>   * Copyright (C) 2008 Robert Jarzmik
> - *
> - * 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 one should be GPL-2.0-or-later.

With this addressed,
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

-- 
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] 41+ messages in thread

* Re: [PATCH v2 2/6] include: add SPDX GPL-2.0-or-later license tags where applicable
  2020-02-02 15:42   ` [PATCH v2 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2020-02-03  7:45     ` Ahmad Fatoum
  2020-02-03 18:46       ` Roland Hieber
  0 siblings, 1 reply; 41+ messages in thread
From: Ahmad Fatoum @ 2020-02-03  7:45 UTC (permalink / raw)
  To: Roland Hieber, barebox

On 2/2/20 4:42 PM, Roland Hieber wrote:
> Signed-off-by: Roland Hieber <rohieb@rohieb.name>
> ---
>  include/ata_drive.h    | 11 +----------
>  include/command.h      | 12 +-----------
>  include/common.h       | 12 +-----------
>  include/console.h      | 12 +-----------
>  include/debug_ll.h     | 11 +----------
>  include/disks.h        | 11 +----------
>  include/driver.h       | 12 +-----------
>  include/environment.h  | 12 +-----------
>  include/hab.h          | 11 +----------
>  include/image-fit.h    | 14 +-------------
>  include/image.h        | 12 +-----------
>  include/int_sqrt.h     | 12 +-----------
>  include/jtag.h         | 15 +--------------
>  include/kfifo.h        | 11 +----------
>  include/mci.h          | 12 +-----------
>  include/of_gpio.h      |  6 +-----
>  include/part.h         | 12 +-----------
>  include/reset_source.h |  6 +-----
>  include/rtc.h          | 12 +-----------
>  include/s_record.h     | 12 +-----------
>  include/scsi.h         | 13 +------------
>  include/stmp-device.h  |  6 +-----
>  include/watchdog.h     | 12 +-----------
>  23 files changed, 23 insertions(+), 236 deletions(-)
> 
> diff --git a/include/ata_drive.h b/include/ata_drive.h
> index d61c6f11d4d3..d98e410b30c3 100644
> --- a/include/ata_drive.h
> +++ b/include/ata_drive.h
> @@ -1,16 +1,7 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
>  /*
>   * See file CREDITS for list of people who contributed to this
>   * project.

In the previous patch you also removed referenced to the no-longer
existing CREDITS file, but not here. Maybe do that throughout?

(Or have one leading commit that just deleted all references to CREDITS.

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

-- 
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] 41+ messages in thread

* Re: [PATCH v2 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information
  2020-02-02 15:42   ` [PATCH v2 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
@ 2020-02-03  7:47     ` Ahmad Fatoum
  0 siblings, 0 replies; 41+ messages in thread
From: Ahmad Fatoum @ 2020-02-03  7:47 UTC (permalink / raw)
  To: Roland Hieber, barebox



On 2/2/20 4:42 PM, Roland Hieber wrote:
> According to our /README, GPL-2.0-only applies for the whole project
> except noted otherwise.
> 
> Signed-off-by: Roland Hieber <rohieb@rohieb.name>

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

> ---
>  include/abort.h             | 1 +
>  include/bbu.h               | 1 +
>  include/block.h             | 1 +
>  include/blspec.h            | 1 +
>  include/boot.h              | 1 +
>  include/bootchooser.h       | 1 +
>  include/bootm.h             | 1 +
>  include/bootsource.h        | 1 +
>  include/bunzip2.h           | 1 +
>  include/byteorder.h         | 1 +
>  include/cache.h             | 1 +
>  include/clock.h             | 1 +
>  include/cmdlinepart.h       | 1 +
>  include/complete.h          | 1 +
>  include/console_countdown.h | 1 +
>  include/crc.h               | 1 +
>  include/crc7.h              | 1 +
>  include/dirent.h            | 1 +
>  include/dma-dir.h           | 1 +
>  include/efi.h               | 1 +
>  include/elf.h               | 1 +
>  include/envfs.h             | 1 +
>  include/errno.h             | 1 +
>  include/fb.h                | 1 +
>  include/fcntl.h             | 1 +
>  include/fdt.h               | 1 +
>  include/file-list.h         | 1 +
>  include/filetype.h          | 1 +
>  include/fs.h                | 1 +
>  include/globalvar.h         | 1 +
>  include/gpio.h              | 1 +
>  include/gpio_keys.h         | 1 +
>  include/gunzip.h            | 1 +
>  include/image-metadata.h    | 1 +
>  include/init.h              | 1 +
>  include/io.h                | 1 +
>  include/ioctl.h             | 1 +
>  include/kallsyms.h          | 1 +
>  include/kgdb.h              | 1 +
>  include/led.h               | 1 +
>  include/libbb.h             | 2 +-
>  include/libfile.h           | 1 +
>  include/libgen.h            | 1 +
>  include/lzo.h               | 1 +
>  include/magicvar.h          | 1 +
>  include/malloc.h            | 1 +
>  include/math.h              | 1 +
>  include/memory.h            | 1 +
>  include/memtest.h           | 1 +
>  include/mmu.h               | 1 +
>  include/module.h            | 1 +
>  include/nand.h              | 1 +
>  include/notifier.h          | 1 +
>  include/of.h                | 1 +
>  include/of_address.h        | 1 +
>  include/of_device.h         | 1 +
>  include/of_pci.h            | 1 +
>  include/param.h             | 1 +
>  include/parseopt.h          | 1 +
>  include/partition.h         | 1 +
>  include/phy-id-list.h       | 1 +
>  include/pinctrl.h           | 1 +
>  include/poweroff.h          | 1 +
>  include/printk.h            | 1 +
>  include/progress.h          | 1 +
>  include/pwm.h               | 1 +
>  include/qsort.h             | 1 +
>  include/ratp.h              | 1 +
>  include/ratp_bb.h           | 1 +
>  include/readkey.h           | 1 +
>  include/regmap.h            | 1 +
>  include/regulator.h         | 1 +
>  include/restart.h           | 1 +
>  include/serdev.h            | 1 +
>  include/sntp.h              | 1 +
>  include/state.h             | 1 +
>  include/stdio.h             | 1 +
>  include/stdlib.h            | 1 +
>  include/string.h            | 1 +
>  include/stringlist.h        | 1 +
>  include/twl6030_pwrbtn.h    | 1 +
>  include/types.h             | 1 +
>  include/ubiformat.h         | 1 +
>  include/uncompress.h        | 1 +
>  include/unistd.h            | 1 +
>  include/usb_dfu_trailer.h   | 1 +
>  include/wchar.h             | 1 +
>  include/xfuncs.h            | 1 +
>  88 files changed, 88 insertions(+), 1 deletion(-)
> 
> diff --git a/include/abort.h b/include/abort.h
> index 89ee549e3452..039500b04d0b 100644
> --- a/include/abort.h
> +++ b/include/abort.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __ABORT_H
>  #define __ABORT_H
>  
> diff --git a/include/bbu.h b/include/bbu.h
> index 9da6785d2e67..3b9d2f4bf151 100644
> --- a/include/bbu.h
> +++ b/include/bbu.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __INCLUDE_BBU_H
>  #define __INCLUDE_BBU_H
>  
> diff --git a/include/block.h b/include/block.h
> index 91377679b0d4..bd87efdc62bc 100644
> --- a/include/block.h
> +++ b/include/block.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __BLOCK_H
>  #define __BLOCK_H
>  
> diff --git a/include/blspec.h b/include/blspec.h
> index 7d911f030bfa..37076cd47c97 100644
> --- a/include/blspec.h
> +++ b/include/blspec.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __LOADER_H__
>  #define __LOADER_H__
>  
> diff --git a/include/boot.h b/include/boot.h
> index 4f7612ab803d..4054c27d935a 100644
> --- a/include/boot.h
> +++ b/include/boot.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __BOOT_H
>  #define __BOOT_H
>  
> diff --git a/include/bootchooser.h b/include/bootchooser.h
> index 7822c01459e4..2cfd5b126ab9 100644
> --- a/include/bootchooser.h
> +++ b/include/bootchooser.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __BOOTCHOOSER_H
>  #define __BOOTCHOOSER_H
>  
> diff --git a/include/bootm.h b/include/bootm.h
> index a041aa35b9a0..7782de7a476d 100644
> --- a/include/bootm.h
> +++ b/include/bootm.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __BOOTM_H
>  #define __BOOTM_H
>  
> diff --git a/include/bootsource.h b/include/bootsource.h
> index 92f7f27cd4fa..32295ddd96ab 100644
> --- a/include/bootsource.h
> +++ b/include/bootsource.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __BOOTSOURCE_H__
>  #define __BOOTSOURCE_H__
>  
> diff --git a/include/bunzip2.h b/include/bunzip2.h
> index 115272137a9c..55404ff846f6 100644
> --- a/include/bunzip2.h
> +++ b/include/bunzip2.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef DECOMPRESS_BUNZIP2_H
>  #define DECOMPRESS_BUNZIP2_H
>  
> diff --git a/include/byteorder.h b/include/byteorder.h
> index 4b255a5fab9b..c3cac85013ec 100644
> --- a/include/byteorder.h
> +++ b/include/byteorder.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __BYTEORDER_H__
>  #define __BYTEORDER_H__
>  
> diff --git a/include/cache.h b/include/cache.h
> index 23841dcd06a2..37e008794bf2 100644
> --- a/include/cache.h
> +++ b/include/cache.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __CACHE_H
>  #define __CACHE_H
>  
> diff --git a/include/clock.h b/include/clock.h
> index 211748f3a0b9..d681bf630e88 100644
> --- a/include/clock.h
> +++ b/include/clock.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef CLOCK_H
>  #define CLOCK_H
>  
> diff --git a/include/cmdlinepart.h b/include/cmdlinepart.h
> index bf8cdfa62a6e..9f5bdf610a11 100644
> --- a/include/cmdlinepart.h
> +++ b/include/cmdlinepart.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __CMD_LINE_PART_H
>  #define __CMD_LINE_PART_H
>  
> diff --git a/include/complete.h b/include/complete.h
> index 491ba66cb442..763d256bf460 100644
> --- a/include/complete.h
> +++ b/include/complete.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __COMPLETE_
>  #define __COMPLETE_
>  
> diff --git a/include/console_countdown.h b/include/console_countdown.h
> index 88cadf11ec9b..df8da71e8bee 100644
> --- a/include/console_countdown.h
> +++ b/include/console_countdown.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __CONSOLE_COUNTDOWN_H
>  #define __CONSOLE_COUNTDOWN_H
>  
> diff --git a/include/crc.h b/include/crc.h
> index a67388f732e0..eb972705c21a 100644
> --- a/include/crc.h
> +++ b/include/crc.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __INCLUDE_CRC_H
>  #define __INCLUDE_CRC_H
>  
> diff --git a/include/crc7.h b/include/crc7.h
> index 0c41cc341f09..27d2dae4223b 100644
> --- a/include/crc7.h
> +++ b/include/crc7.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _LINUX_CRC7_H
>  #define _LINUX_CRC7_H
>  #include <common.h>
> diff --git a/include/dirent.h b/include/dirent.h
> index 1df5d904520d..d7b5e78b2728 100644
> --- a/include/dirent.h
> +++ b/include/dirent.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __DIRENT_H
>  #define __DIRENT_H
>  
> diff --git a/include/dma-dir.h b/include/dma-dir.h
> index 970764c5b3c9..d3b1a27b4fbd 100644
> --- a/include/dma-dir.h
> +++ b/include/dma-dir.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __DMA_DIR_H
>  #define __DMA_DIR_H
>  
> diff --git a/include/efi.h b/include/efi.h
> index 43c05939513d..5698a8414586 100644
> --- a/include/efi.h
> +++ b/include/efi.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _LINUX_EFI_H
>  #define _LINUX_EFI_H
>  
> diff --git a/include/elf.h b/include/elf.h
> index 44be07f73a64..113728f08a28 100644
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _LINUX_ELF_H
>  #define _LINUX_ELF_H
>  
> diff --git a/include/envfs.h b/include/envfs.h
> index c8fc3759c606..d4e2c6110e65 100644
> --- a/include/envfs.h
> +++ b/include/envfs.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _ENVFS_H
>  #define _ENVFS_H
>  
> diff --git a/include/errno.h b/include/errno.h
> index 496ccab0ee6d..50f00de5d636 100644
> --- a/include/errno.h
> +++ b/include/errno.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __ERRNO_H
>  #define __ERRNO_H
>  
> diff --git a/include/fb.h b/include/fb.h
> index 271b939968a2..e17d07ae0cd8 100644
> --- a/include/fb.h
> +++ b/include/fb.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __FB_H
>  #define __FB_H
>  
> diff --git a/include/fcntl.h b/include/fcntl.h
> index 98020bdfb160..2e7c0eed3479 100644
> --- a/include/fcntl.h
> +++ b/include/fcntl.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __FCNTL_H
>  #define __FCNTL_H
>  
> diff --git a/include/fdt.h b/include/fdt.h
> index 38a2d27b0207..232514c894c3 100644
> --- a/include/fdt.h
> +++ b/include/fdt.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _FDT_H
>  #define _FDT_H
>  
> diff --git a/include/file-list.h b/include/file-list.h
> index 404d8d64bb4e..9a9edfa378f3 100644
> --- a/include/file-list.h
> +++ b/include/file-list.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __FILE_LIST
>  #define __FILE_LIST
>  
> diff --git a/include/filetype.h b/include/filetype.h
> index db95fdaa0a5f..c3a5bdfbbea3 100644
> --- a/include/filetype.h
> +++ b/include/filetype.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __FILE_TYPE_H
>  #define __FILE_TYPE_H
>  
> diff --git a/include/fs.h b/include/fs.h
> index 38debfc41beb..04ec1329e106 100644
> --- a/include/fs.h
> +++ b/include/fs.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __FS_H
>  #define __FS_H
>  
> diff --git a/include/globalvar.h b/include/globalvar.h
> index 67391e2042f9..fc85e93e1431 100644
> --- a/include/globalvar.h
> +++ b/include/globalvar.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __GLOBALVAR_H
>  #define __GLOBALVAR_H
>  
> diff --git a/include/gpio.h b/include/gpio.h
> index 0c0c0337e01d..98c5b93ba2e6 100644
> --- a/include/gpio.h
> +++ b/include/gpio.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __GPIO_H
>  #define __GPIO_H
>  
> diff --git a/include/gpio_keys.h b/include/gpio_keys.h
> index f4a22e16dbc8..f12bed2a0b43 100644
> --- a/include/gpio_keys.h
> +++ b/include/gpio_keys.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _GPIO_KEYS_H
>  #define _GPIO_KEYS_H
>  
> diff --git a/include/gunzip.h b/include/gunzip.h
> index b9018941d15b..0a959d5eb7a5 100644
> --- a/include/gunzip.h
> +++ b/include/gunzip.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef GUNZIP_H
>  #define GUNZIP_H
>  
> diff --git a/include/image-metadata.h b/include/image-metadata.h
> index 5904d95acd37..330ca3588a0c 100644
> --- a/include/image-metadata.h
> +++ b/include/image-metadata.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __INCLUDE_IMAGE_METADTA_H
>  #define __INCLUDE_IMAGE_METADTA_H
>  
> diff --git a/include/init.h b/include/init.h
> index 527d49afecdb..d1cef14b0765 100644
> --- a/include/init.h
> +++ b/include/init.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _INIT_H
>  #define _INIT_H
>  
> diff --git a/include/io.h b/include/io.h
> index 8eb56b061f12..913002072240 100644
> --- a/include/io.h
> +++ b/include/io.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __IO_H
>  #define __IO_H
>  
> diff --git a/include/ioctl.h b/include/ioctl.h
> index 1ade20f90597..3290a52519e8 100644
> --- a/include/ioctl.h
> +++ b/include/ioctl.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __IOCTL_H
>  #define __IOCTL_H
>  
> diff --git a/include/kallsyms.h b/include/kallsyms.h
> index 69b84d2c6c00..e0b3ff7cd503 100644
> --- a/include/kallsyms.h
> +++ b/include/kallsyms.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __KALLSYMS_H
>  #define __KALLSYMS_H
>  
> diff --git a/include/kgdb.h b/include/kgdb.h
> index f543cd6e1833..1f23833f92f1 100644
> --- a/include/kgdb.h
> +++ b/include/kgdb.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __KGDB_H__
>  #define __KGDB_H__
>  
> diff --git a/include/led.h b/include/led.h
> index 0ce857129d5b..6b6aff922a86 100644
> --- a/include/led.h
> +++ b/include/led.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __LED_H
>  #define __LED_H
>  
> diff --git a/include/libbb.h b/include/libbb.h
> index d05c19063793..a3a13b41cea8 100644
> --- a/include/libbb.h
> +++ b/include/libbb.h
> @@ -1,4 +1,4 @@
> -
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __LIBBB_H
>  #define __LIBBB_H
>  
> diff --git a/include/libfile.h b/include/libfile.h
> index f1d695187790..350ddddf701d 100644
> --- a/include/libfile.h
> +++ b/include/libfile.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __LIBFILE_H
>  #define __LIBFILE_H
>  
> diff --git a/include/libgen.h b/include/libgen.h
> index 71f06eb6f665..6c0f039efaa2 100644
> --- a/include/libgen.h
> +++ b/include/libgen.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __LIBGEN_H
>  #define __LIBGEN_H
>  
> diff --git a/include/lzo.h b/include/lzo.h
> index 6c34be13efd8..f46f38b0edcf 100644
> --- a/include/lzo.h
> +++ b/include/lzo.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __LZO_H__
>  #define __LZO_H__
>  /*
> diff --git a/include/magicvar.h b/include/magicvar.h
> index bb5bd2591fb2..9fb89a84cca3 100644
> --- a/include/magicvar.h
> +++ b/include/magicvar.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __MAGIC_VARS_H
>  #define __MAGIC_VARS_H
>  
> diff --git a/include/malloc.h b/include/malloc.h
> index 0d3c9e97a0b9..971fc4058bc6 100644
> --- a/include/malloc.h
> +++ b/include/malloc.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __MALLOC_H
>  #define __MALLOC_H
>  
> diff --git a/include/math.h b/include/math.h
> index 5648e3f9c120..1e59a8479ef5 100644
> --- a/include/math.h
> +++ b/include/math.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /* math.h - interface to shell math "library" -- this allows shells to share
>   *          the implementation of arithmetic $((...)) expansions.
>   *
> diff --git a/include/memory.h b/include/memory.h
> index 73ee7661ef3e..906d9f7b2689 100644
> --- a/include/memory.h
> +++ b/include/memory.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __MEM_MALLOC_H
>  #define __MEM_MALLOC_H
>  
> diff --git a/include/memtest.h b/include/memtest.h
> index 0100a6c58cd9..df0a391cc3c2 100644
> --- a/include/memtest.h
> +++ b/include/memtest.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __MEMTEST_H
>  #define __MEMTEST_H
>  
> diff --git a/include/mmu.h b/include/mmu.h
> index 66b246f6d270..2e23853df353 100644
> --- a/include/mmu.h
> +++ b/include/mmu.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __MMU_H
>  #define __MMU_H
>  
> diff --git a/include/module.h b/include/module.h
> index 460a34fe2b63..abf740a789b7 100644
> --- a/include/module.h
> +++ b/include/module.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __MODULE_H
>  #define __MODULE_H
>  
> diff --git a/include/nand.h b/include/nand.h
> index fb3b5a108810..f0114a227d45 100644
> --- a/include/nand.h
> +++ b/include/nand.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __NAND_H__
>  #define __NAND_H__
>  
> diff --git a/include/notifier.h b/include/notifier.h
> index e0df3e666bb5..432b66c4ca5a 100644
> --- a/include/notifier.h
> +++ b/include/notifier.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __NOTIFIER_H
>  #define __NOTIFIER_H
>  
> diff --git a/include/of.h b/include/of.h
> index 67601ce80cad..8d6c018b73ec 100644
> --- a/include/of.h
> +++ b/include/of.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __OF_H
>  #define __OF_H
>  
> diff --git a/include/of_address.h b/include/of_address.h
> index 350ecaec827a..66117b1fa7f8 100644
> --- a/include/of_address.h
> +++ b/include/of_address.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __OF_ADDRESS_H
>  #define __OF_ADDRESS_H
>  
> diff --git a/include/of_device.h b/include/of_device.h
> index 54410ad12f55..244f5fcbbb11 100644
> --- a/include/of_device.h
> +++ b/include/of_device.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __OF_DEVICE_H
>  #define __OF_DEVICE_H
>  
> diff --git a/include/of_pci.h b/include/of_pci.h
> index c95cb0135ae0..c78715093660 100644
> --- a/include/of_pci.h
> +++ b/include/of_pci.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __OF_PCI_H
>  #define __OF_PCI_H
>  
> diff --git a/include/param.h b/include/param.h
> index d75f50ea3e60..2d68338bb30b 100644
> --- a/include/param.h
> +++ b/include/param.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef PARAM_H
>  #define PARAM_H
>  
> diff --git a/include/parseopt.h b/include/parseopt.h
> index 273a371ac342..5a40bdc219fe 100644
> --- a/include/parseopt.h
> +++ b/include/parseopt.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __PARSEOPT_H__
>  #define __PARSEOPT_H__
>  void parseopt_llu_suffix(const char *options, const char *opt,
> diff --git a/include/partition.h b/include/partition.h
> index 32570530eb99..373134afad25 100644
> --- a/include/partition.h
> +++ b/include/partition.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __PARTITION_H
>  #define __PARTITION_H
>  
> diff --git a/include/phy-id-list.h b/include/phy-id-list.h
> index a6070a0248f5..f770c775b8fe 100644
> --- a/include/phy-id-list.h
> +++ b/include/phy-id-list.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * List of all Etherenet PHY IDs that is not found in any .h files in
>   * include/linux
> diff --git a/include/pinctrl.h b/include/pinctrl.h
> index 7d8716996dab..0fd7f491189c 100644
> --- a/include/pinctrl.h
> +++ b/include/pinctrl.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef PINCTRL_H
>  #define PINCTRL_H
>  
> diff --git a/include/poweroff.h b/include/poweroff.h
> index ae9557db5d63..217b68cdf966 100644
> --- a/include/poweroff.h
> +++ b/include/poweroff.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __INCLUDE_POWEROFF_H
>  #define __INCLUDE_POWEROFF_H
>  
> diff --git a/include/printk.h b/include/printk.h
> index b0d5d09f835d..6a027175abfe 100644
> --- a/include/printk.h
> +++ b/include/printk.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __PRINTK_H
>  #define __PRINTK_H
>  
> diff --git a/include/progress.h b/include/progress.h
> index 5c4dd1e77549..75aa9c4f8616 100644
> --- a/include/progress.h
> +++ b/include/progress.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __PROGRSS_H
>  #define __PROGRSS_H
>  
> diff --git a/include/pwm.h b/include/pwm.h
> index 911c760839fa..dcc81af867e8 100644
> --- a/include/pwm.h
> +++ b/include/pwm.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __PWM_H
>  #define __PWM_H
>  
> diff --git a/include/qsort.h b/include/qsort.h
> index d279dc281075..f8d889ea1ea6 100644
> --- a/include/qsort.h
> +++ b/include/qsort.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __QSORT_H
>  #define __QSORT_H
>  
> diff --git a/include/ratp.h b/include/ratp.h
> index d2a81923579d..effa288b4220 100644
> --- a/include/ratp.h
> +++ b/include/ratp.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __RATP_H
>  #define __RATP_H
>  
> diff --git a/include/ratp_bb.h b/include/ratp_bb.h
> index b6699979b6b0..a4f28c642ca0 100644
> --- a/include/ratp_bb.h
> +++ b/include/ratp_bb.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __RATP_BB_H
>  #define __RATP_BB_H
>  
> diff --git a/include/readkey.h b/include/readkey.h
> index ed1cd1542d6f..fdb96426e082 100644
> --- a/include/readkey.h
> +++ b/include/readkey.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef READKEY_H
>  #define READKEY_H
>  
> diff --git a/include/regmap.h b/include/regmap.h
> index 09b7b57d52f3..8528f810797c 100644
> --- a/include/regmap.h
> +++ b/include/regmap.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __REGMAP_H
>  #define __REGMAP_H
>  
> diff --git a/include/regulator.h b/include/regulator.h
> index a445c5c3d10a..d01535df5207 100644
> --- a/include/regulator.h
> +++ b/include/regulator.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __REGULATOR_H
>  #define __REGULATOR_H
>  
> diff --git a/include/restart.h b/include/restart.h
> index 79b57c8e11bf..7ec0910e9404 100644
> --- a/include/restart.h
> +++ b/include/restart.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __INCLUDE_RESTART_H
>  #define __INCLUDE_RESTART_H
>  
> diff --git a/include/serdev.h b/include/serdev.h
> index 29030538e5e7..0d020b8e82c2 100644
> --- a/include/serdev.h
> +++ b/include/serdev.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _SERDEV_H_
>  #define _SERDEV_H_
>  
> diff --git a/include/sntp.h b/include/sntp.h
> index bfcfcfa8c837..05cad129cd1d 100644
> --- a/include/sntp.h
> +++ b/include/sntp.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __SNTP_H
>  #define __SNTP_H
>  
> diff --git a/include/state.h b/include/state.h
> index d98b781c2089..be1b592576c1 100644
> --- a/include/state.h
> +++ b/include/state.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __STATE_H
>  #define __STATE_H
>  
> diff --git a/include/stdio.h b/include/stdio.h
> index 46e277889d68..1cb11e88deea 100644
> --- a/include/stdio.h
> +++ b/include/stdio.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __STDIO_H
>  #define __STDIO_H
>  
> diff --git a/include/stdlib.h b/include/stdlib.h
> index ee3f2299688d..d4056087243d 100644
> --- a/include/stdlib.h
> +++ b/include/stdlib.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __STDLIB_H
>  #define __STDLIB_H
>  
> diff --git a/include/string.h b/include/string.h
> index 8c63f22491aa..120a613d4688 100644
> --- a/include/string.h
> +++ b/include/string.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __STRING_H
>  #define __STRING_H
>  
> diff --git a/include/stringlist.h b/include/stringlist.h
> index e85500a99485..5cd452ca5fa4 100644
> --- a/include/stringlist.h
> +++ b/include/stringlist.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __STRINGLIST_H
>  #define __STRINGLIST_H
>  
> diff --git a/include/twl6030_pwrbtn.h b/include/twl6030_pwrbtn.h
> index c4e13d1f1de0..4c8e16625638 100644
> --- a/include/twl6030_pwrbtn.h
> +++ b/include/twl6030_pwrbtn.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _TWL6030_PWRBTN_H
>  #define _TWL6030_PWRBTN_H
>  
> diff --git a/include/types.h b/include/types.h
> index 0bfe3b9a0b7e..a6739394e0c8 100644
> --- a/include/types.h
> +++ b/include/types.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __TYPES_H
>  #define __TYPES_H
>  
> diff --git a/include/ubiformat.h b/include/ubiformat.h
> index 8a7a16ac18d8..eca62ae6dba4 100644
> --- a/include/ubiformat.h
> +++ b/include/ubiformat.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __UBIFORMAT_H
>  #define __UBIFORMAT_H
>  
> diff --git a/include/uncompress.h b/include/uncompress.h
> index d146c9076809..4bdb03d4f5b6 100644
> --- a/include/uncompress.h
> +++ b/include/uncompress.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __UNCOMPRESS_H
>  #define __UNCOMPRESS_H
>  
> diff --git a/include/unistd.h b/include/unistd.h
> index f392e6dd6cbd..06ce3558099f 100644
> --- a/include/unistd.h
> +++ b/include/unistd.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __UNISTD_H
>  #define __UNISTD_H
>  
> diff --git a/include/usb_dfu_trailer.h b/include/usb_dfu_trailer.h
> index 2cf66a590c43..64b84072755d 100644
> --- a/include/usb_dfu_trailer.h
> +++ b/include/usb_dfu_trailer.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _USB_DFU_TRAILER_H
>  #define _USB_DFU_TRAILER_H
>  
> diff --git a/include/wchar.h b/include/wchar.h
> index adb4f373e950..b601cc62079b 100644
> --- a/include/wchar.h
> +++ b/include/wchar.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __WCHAR_H
>  #define __WCHAR_H
>  
> diff --git a/include/xfuncs.h b/include/xfuncs.h
> index e3f120a04092..a9132d378722 100644
> --- a/include/xfuncs.h
> +++ b/include/xfuncs.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __XFUNCS_H
>  #define __XFUNCS_H
>  
> 

-- 
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] 41+ messages in thread

* Re: [PATCH v2 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable
  2020-02-02 15:42   ` [PATCH v2 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
@ 2020-02-03  7:49     ` Ahmad Fatoum
  2020-02-03 18:48       ` Roland Hieber
  0 siblings, 1 reply; 41+ messages in thread
From: Ahmad Fatoum @ 2020-02-03  7:49 UTC (permalink / raw)
  To: Roland Hieber, barebox

Hello Roland,

On 2/2/20 4:42 PM, Roland Hieber wrote:
> Signed-off-by: Roland Hieber <rohieb@rohieb.name>
> ---
>  include/fnmatch.h | 17 ++---------------
>  include/glob.h    | 17 ++---------------
>  2 files changed, 4 insertions(+), 30 deletions(-)
> 
> diff --git a/include/fnmatch.h b/include/fnmatch.h
> index c0fd6a920710..c13beb9011fb 100644
> --- a/include/fnmatch.h
> +++ b/include/fnmatch.h
> @@ -1,20 +1,7 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */

There's no LGPL-2.1 file under LICENSES/. This should exist
before we delete the license statements.

With the file added,
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

>  /* Copyright (C) 1991,92,93,96,97,98,99,2001 Free Software Foundation, Inc.
>     This file is part of the GNU C Library.
> -
> -   The GNU C Library is free software; you can redistribute it and/or
> -   modify it under the terms of the GNU Lesser General Public
> -   License as published by the Free Software Foundation; either
> -   version 2.1 of the License, or (at your option) any later version.
> -
> -   The GNU C Library 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
> -   Lesser General Public License for more details.
> -
> -   You should have received a copy of the GNU Lesser General Public
> -   License along with the GNU C Library; if not, write to the Free
> -   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
> -   02111-1307 USA.  */
> +*/
>  
>  #ifndef	_FNMATCH_H
>  #define	_FNMATCH_H	1
> diff --git a/include/glob.h b/include/glob.h
> index 777815251312..5f532e6652c3 100644
> --- a/include/glob.h
> +++ b/include/glob.h
> @@ -1,20 +1,7 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
>  /* Copyright (C) 1991,92,95,96,97,98,2000,2001 Free Software Foundation, Inc.
>     This file is part of the GNU C Library.
> -
> -   The GNU C Library is free software; you can redistribute it and/or
> -   modify it under the terms of the GNU Lesser General Public
> -   License as published by the Free Software Foundation; either
> -   version 2.1 of the License, or (at your option) any later version.
> -
> -   The GNU C Library 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
> -   Lesser General Public License for more details.
> -
> -   You should have received a copy of the GNU Lesser General Public
> -   License along with the GNU C Library; if not, write to the Free
> -   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
> -   02111-1307 USA.  */
> +*/
>  
>  #ifndef	_GLOB_H
>  #define	_GLOB_H	1
> 

-- 
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] 41+ messages in thread

* Re: [PATCH v2 5/6] include: spi: add SPDX GPL-2.0-or-later license tags where applicable
  2020-02-02 15:43   ` [PATCH v2 5/6] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2020-02-03  7:50     ` Ahmad Fatoum
  0 siblings, 0 replies; 41+ messages in thread
From: Ahmad Fatoum @ 2020-02-03  7:50 UTC (permalink / raw)
  To: Roland Hieber, barebox



On 2/2/20 4:43 PM, Roland Hieber wrote:
> Signed-off-by: Roland Hieber <rohieb@rohieb.name>

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

> ---
>  include/spi/spi_gpio.h | 11 +----------
>  1 file changed, 1 insertion(+), 10 deletions(-)
> 
> diff --git a/include/spi/spi_gpio.h b/include/spi/spi_gpio.h
> index 841c934f6ead..a18b7dbe078a 100644
> --- a/include/spi/spi_gpio.h
> +++ b/include/spi/spi_gpio.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
>  /*
>   * SPI master driver using generic bitbanged GPIO
>   *
> @@ -5,16 +6,6 @@
>   *
>   * Based on Linux driver
>   *   Copyright (C) 2006,2008 David Brownell
> - *
> - * 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.
>   */
>  
>  #ifndef __SPI_GPIO_H
> 

-- 
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] 41+ messages in thread

* Re: [PATCH v2 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information
  2020-02-02 15:43   ` [PATCH v2 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
@ 2020-02-03  7:51     ` Ahmad Fatoum
  0 siblings, 0 replies; 41+ messages in thread
From: Ahmad Fatoum @ 2020-02-03  7:51 UTC (permalink / raw)
  To: Roland Hieber, barebox



On 2/2/20 4:43 PM, Roland Hieber wrote:
> According to our /README, GPL-2.0-only applies for the whole project
> except noted otherwise.
> 
> Signed-off-by: Roland Hieber <rohieb@rohieb.name>

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

> ---
>  include/spi/eeprom.h  | 1 +
>  include/spi/flash.h   | 1 +
>  include/spi/imx-spi.h | 1 +
>  include/spi/spi.h     | 1 +
>  4 files changed, 4 insertions(+)
> 
> diff --git a/include/spi/eeprom.h b/include/spi/eeprom.h
> index 15495e59f5d6..410ecea19c16 100644
> --- a/include/spi/eeprom.h
> +++ b/include/spi/eeprom.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef _SPI_EEPROM_H
>  #define _SPI_EEPROM_H
>  
> diff --git a/include/spi/flash.h b/include/spi/flash.h
> index c1204e7e61a0..796d649d9a92 100644
> --- a/include/spi/flash.h
> +++ b/include/spi/flash.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef LINUX_SPI_FLASH_H
>  #define LINUX_SPI_FLASH_H
>  
> diff --git a/include/spi/imx-spi.h b/include/spi/imx-spi.h
> index a592573e6265..568795188c0c 100644
> --- a/include/spi/imx-spi.h
> +++ b/include/spi/imx-spi.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __SPI_IMX_SPI_H
>  #define __SPI_IMX_SPI_H
>  
> diff --git a/include/spi/spi.h b/include/spi/spi.h
> index bdcda0bb603c..48a90bcca749 100644
> --- a/include/spi/spi.h
> +++ b/include/spi/spi.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  #ifndef __INCLUDE_SPI_H
>  #define __INCLUDE_SPI_H
>  
> 

-- 
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] 41+ messages in thread

* Re: [PATCH v2 2/6] include: add SPDX GPL-2.0-or-later license tags where applicable
  2020-02-03  7:45     ` Ahmad Fatoum
@ 2020-02-03 18:46       ` Roland Hieber
  0 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-03 18:46 UTC (permalink / raw)
  To: Ahmad Fatoum, barebox



On 3 February 2020 08:45:37 CET, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>On 2/2/20 4:42 PM, Roland Hieber wrote:
>> Signed-off-by: Roland Hieber <rohieb@rohieb.name>
>> ---
>>  include/ata_drive.h    | 11 +----------
>>  include/command.h      | 12 +-----------
>>  include/common.h       | 12 +-----------
>>  include/console.h      | 12 +-----------
>>  include/debug_ll.h     | 11 +----------
>>  include/disks.h        | 11 +----------
>>  include/driver.h       | 12 +-----------
>>  include/environment.h  | 12 +-----------
>>  include/hab.h          | 11 +----------
>>  include/image-fit.h    | 14 +-------------
>>  include/image.h        | 12 +-----------
>>  include/int_sqrt.h     | 12 +-----------
>>  include/jtag.h         | 15 +--------------
>>  include/kfifo.h        | 11 +----------
>>  include/mci.h          | 12 +-----------
>>  include/of_gpio.h      |  6 +-----
>>  include/part.h         | 12 +-----------
>>  include/reset_source.h |  6 +-----
>>  include/rtc.h          | 12 +-----------
>>  include/s_record.h     | 12 +-----------
>>  include/scsi.h         | 13 +------------
>>  include/stmp-device.h  |  6 +-----
>>  include/watchdog.h     | 12 +-----------
>>  23 files changed, 23 insertions(+), 236 deletions(-)
>> 
>> diff --git a/include/ata_drive.h b/include/ata_drive.h
>> index d61c6f11d4d3..d98e410b30c3 100644
>> --- a/include/ata_drive.h
>> +++ b/include/ata_drive.h
>> @@ -1,16 +1,7 @@
>> +/* SPDX-License-Identifier: GPL-2.0-or-later */
>>  /*
>>   * See file CREDITS for list of people who contributed to this
>>   * project.
>
>In the previous patch you also removed referenced to the no-longer
>existing CREDITS file, but not here. Maybe do that throughout?
>
>(Or have one leading commit that just deleted all references to
>CREDITS.

Hmm, this was not in my branch... anyway, I also thought about doing that, but it should be on a different commit and I can do that treewide too.

 - Roland
>
>Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

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

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

* Re: [PATCH v2 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable
  2020-02-03  7:49     ` Ahmad Fatoum
@ 2020-02-03 18:48       ` Roland Hieber
  0 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-03 18:48 UTC (permalink / raw)
  To: Ahmad Fatoum, barebox



On 3 February 2020 08:49:48 CET, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>Hello Roland,
>
>On 2/2/20 4:42 PM, Roland Hieber wrote:
>> Signed-off-by: Roland Hieber <rohieb@rohieb.name>
>> ---
>>  include/fnmatch.h | 17 ++---------------
>>  include/glob.h    | 17 ++---------------
>>  2 files changed, 4 insertions(+), 30 deletions(-)
>> 
>> diff --git a/include/fnmatch.h b/include/fnmatch.h
>> index c0fd6a920710..c13beb9011fb 100644
>> --- a/include/fnmatch.h
>> +++ b/include/fnmatch.h
>> @@ -1,20 +1,7 @@
>> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
>
>There's no LGPL-2.1 file under LICENSES/. This should exist
>before we delete the license statements.

Right. Thanks for catching this.

 - Roland

>
>With the file added,
>Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
>
>>  /* Copyright (C) 1991,92,93,96,97,98,99,2001 Free Software
>Foundation, Inc.
>>     This file is part of the GNU C Library.
>> -
>> -   The GNU C Library is free software; you can redistribute it
>and/or
>> -   modify it under the terms of the GNU Lesser General Public
>> -   License as published by the Free Software Foundation; either
>> -   version 2.1 of the License, or (at your option) any later
>version.
>> -
>> -   The GNU C Library 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
>> -   Lesser General Public License for more details.
>> -
>> -   You should have received a copy of the GNU Lesser General Public
>> -   License along with the GNU C Library; if not, write to the Free
>> -   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
>> -   02111-1307 USA.  */
>> +*/
>>  
>>  #ifndef	_FNMATCH_H
>>  #define	_FNMATCH_H	1
>> diff --git a/include/glob.h b/include/glob.h
>> index 777815251312..5f532e6652c3 100644
>> --- a/include/glob.h
>> +++ b/include/glob.h
>> @@ -1,20 +1,7 @@
>> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
>>  /* Copyright (C) 1991,92,95,96,97,98,2000,2001 Free Software
>Foundation, Inc.
>>     This file is part of the GNU C Library.
>> -
>> -   The GNU C Library is free software; you can redistribute it
>and/or
>> -   modify it under the terms of the GNU Lesser General Public
>> -   License as published by the Free Software Foundation; either
>> -   version 2.1 of the License, or (at your option) any later
>version.
>> -
>> -   The GNU C Library 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
>> -   Lesser General Public License for more details.
>> -
>> -   You should have received a copy of the GNU Lesser General Public
>> -   License along with the GNU C Library; if not, write to the Free
>> -   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
>> -   02111-1307 USA.  */
>> +*/
>>  
>>  #ifndef	_GLOB_H
>>  #define	_GLOB_H	1
>> 

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

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

* [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup
  2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
                   ` (6 preceding siblings ...)
  2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
@ 2020-02-13 12:12 ` Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 1/7] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
                     ` (7 more replies)
  7 siblings, 8 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Roland Hieber

Changes v2 -> v3:
 * Address feedback from Ahmad Fatoum: add LGPL-2.1 to LICENSES/, fix
   GPL license identifier in include/xymodem.h (and move that change
   between commits accordingly), bring back a lost CREDITS line (will
   get fixed in a later patch).
   git range diff master rhi/spdx-cleanup-v2 rhi/spdx-cleanup-v3:

1:  a68ff4f11476 ! 1:  2ccfab4c7338 include: add SPDX GPL-2.0-only license tags where applicable
    @@ Commit message
         Interpret "GPLv2" as "GPLv2 only".
     
         Signed-off-by: Roland Hieber <rohieb@rohieb.name>
    +    Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
     
      ## include/aimage.h ##
     @@
    @@ include/aimage.h
     
      ## include/aiodev.h ##
     @@
    -+/* SPDX-License-Identifier: GPL-2.0-only */
    - /*
    -  * core.c - Code implementing core functionality of AIODEV susbsystem
       *
    -  * Copyright (c) 2015 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
    -  * Copyright (c) 2015 Zodiac Inflight Innovation
    -- *
    -- * See file CREDITS for list of people who contributed to this
    -- * project.
    +  * See file CREDITS for list of people who contributed to this
    +  * project.
     - *
     - * This program is free software; you can redistribute it and/or modify
     - * it under the terms of the GNU General Public License version 2
    @@ include/w1_mac_address.h
       */
      
      #ifndef __W1_MAC_ADDRESS_H__
    -
    - ## include/xymodem.h ##
    -@@
    -+/* SPDX-License-Identifier: GPL-2.0-only */
    - /*
    -  * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
    -  *
    -  * Copyright (C) 2008 Robert Jarzmik
    -- *
    -- * 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.
    -  */
    - 
    - #ifndef _XYMODEM_
2:  e5ee722d8984 ! 2:  00b9d858e57e include: add SPDX GPL-2.0-or-later license tags where applicable
    @@ Commit message
         include: add SPDX GPL-2.0-or-later license tags where applicable
     
         Signed-off-by: Roland Hieber <rohieb@rohieb.name>
    +    Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
     
      ## include/ata_drive.h ##
     @@
    @@ include/watchdog.h
      
      #ifndef INCLUDE_WATCHDOG_H
      # define INCLUDE_WATCHDOG_H
    +
    + ## include/xymodem.h ##
    +@@
    ++/* SPDX-License-Identifier: GPL-2.0-or-later */
    + /*
    +  * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
    +  *
    +  * Copyright (C) 2008 Robert Jarzmik
    +- *
    +- * 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.
    +  */
    + 
    + #ifndef _XYMODEM_
3:  306b52b19039 ! 3:  5cb7a890e263 include: add SPDX GPL-2.0-only license tags for files without licensing information
    @@ Commit message
         except noted otherwise.
     
         Signed-off-by: Roland Hieber <rohieb@rohieb.name>
    +    Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
     
      ## include/abort.h ##
     @@
-:  ------------ > 4:  e023dc86309d LICENSES: add LGPL-2.1-or-later
4:  5eadf1b41f32 ! 5:  b373f5abc747 include: add SPDX LGPL-2.1-or-later license tags where applicable
    @@ Commit message
         include: add SPDX LGPL-2.1-or-later license tags where applicable
     
         Signed-off-by: Roland Hieber <rohieb@rohieb.name>
    +    Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
     
      ## include/fnmatch.h ##
     @@
5:  54c835c85496 ! 6:  46524f7e15a3 include: spi: add SPDX GPL-2.0-or-later license tags where applicable
    @@ Commit message
         include: spi: add SPDX GPL-2.0-or-later license tags where applicable
     
         Signed-off-by: Roland Hieber <rohieb@rohieb.name>
    +    Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
     
      ## include/spi/spi_gpio.h ##
     @@
6:  c0609972e5cc ! 7:  39870dc4befa include: spi: add SPDX GPL-2.0-only license tags for files without licensing information
    @@ Commit message
         except noted otherwise.
     
         Signed-off-by: Roland Hieber <rohieb@rohieb.name>
    +    Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
     
      ## include/spi/eeprom.h ##
     @@


Changes v1 -> v2:
 * also remove the GPL / LGPL boilerplate lines. Sadly the research on
   why Linux and U-Boot did this did not come up with a good result
   except "SPDX is an industry-wide accepted standard" [1] and
   "SPDX-License-Identifiers are a legally binding shorthand" [2],
   without further elaboration... However, since commit
   23ea88c5e5f47df6beed ("README: add licensing information") we now
   explain in our README what these SPDX tags actually mean, so there
   should be no ambiguity.  (Feedback by Oleksij Rempel, Sam Ravnborg
   and Ahmad Fatoum)

   [1]: https://patchwork.kernel.org/patch/10045625/#21135079
   [2]: e.g. here https://lore.kernel.org/patchwork/patch/854656/


Roland Hieber (7):
  include: add SPDX GPL-2.0-only license tags where applicable
  include: add SPDX GPL-2.0-or-later license tags where applicable
  include: add SPDX GPL-2.0-only license tags for files without
    licensing information
  LICENSES: add LGPL-2.1-or-later
  include: add SPDX LGPL-2.1-or-later license tags where applicable
  include: spi: add SPDX GPL-2.0-or-later license tags where applicable
  include: spi: add SPDX GPL-2.0-only license tags for files without
    licensing information

 LICENSES/preferred/LGPL-2.1-or-later | 468 +++++++++++++++++++++++++++
 include/abort.h                      |   1 +
 include/aimage.h                     |   3 +-
 include/aiodev.h                     |   9 -
 include/ata_drive.h                  |  11 +-
 include/bbu.h                        |   1 +
 include/binfmt.h                     |   3 +-
 include/block.h                      |   1 +
 include/blspec.h                     |   1 +
 include/boot.h                       |   1 +
 include/bootchooser.h                |   1 +
 include/bootm.h                      |   1 +
 include/bootsource.h                 |   1 +
 include/bootstrap.h                  |   3 +-
 include/bpkfs.h                      |   3 +-
 include/bunzip2.h                    |   1 +
 include/byteorder.h                  |   1 +
 include/cache.h                      |   1 +
 include/clock.h                      |   1 +
 include/cmdlinepart.h                |   1 +
 include/command.h                    |  12 +-
 include/common.h                     |  12 +-
 include/complete.h                   |   1 +
 include/console.h                    |  12 +-
 include/console_countdown.h          |   1 +
 include/crc.h                        |   1 +
 include/crc7.h                       |   1 +
 include/debug_ll.h                   |  11 +-
 include/dhcp.h                       |   5 +-
 include/digest.h                     |  12 +-
 include/dirent.h                     |   1 +
 include/disks.h                      |  11 +-
 include/dma-dir.h                    |   1 +
 include/dma.h                        |   4 +-
 include/driver.h                     |  12 +-
 include/efi.h                        |   1 +
 include/elf.h                        |   1 +
 include/envfs.h                      |   1 +
 include/environment.h                |  12 +-
 include/errno.h                      |   1 +
 include/fb.h                         |   1 +
 include/fcntl.h                      |   1 +
 include/fdt.h                        |   1 +
 include/file-list.h                  |   1 +
 include/filetype.h                   |   1 +
 include/firmware.h                   |  10 +-
 include/fnmatch.h                    |  17 +-
 include/fs.h                         |   1 +
 include/getopt.h                     |  11 +-
 include/glob.h                       |  17 +-
 include/globalvar.h                  |   1 +
 include/gpio.h                       |   1 +
 include/gpio_keys.h                  |   1 +
 include/gunzip.h                     |   1 +
 include/hab.h                        |  11 +-
 include/image-fit.h                  |  14 +-
 include/image-metadata.h             |   1 +
 include/image.h                      |  12 +-
 include/init.h                       |   1 +
 include/int_sqrt.h                   |  12 +-
 include/io.h                         |   1 +
 include/ioctl.h                      |   1 +
 include/jtag.h                       |  15 +-
 include/kallsyms.h                   |   1 +
 include/kfifo.h                      |  11 +-
 include/kgdb.h                       |   1 +
 include/led.h                        |   1 +
 include/libbb.h                      |   2 +-
 include/libfile.h                    |   1 +
 include/libgen.h                     |   1 +
 include/local_mac_address.h          |   3 +-
 include/lzo.h                        |   1 +
 include/magicvar.h                   |   1 +
 include/malloc.h                     |   1 +
 include/math.h                       |   1 +
 include/mci.h                        |  12 +-
 include/memory.h                     |   1 +
 include/memtest.h                    |   1 +
 include/menu.h                       |  12 +-
 include/mmu.h                        |   1 +
 include/module.h                     |   1 +
 include/nand.h                       |   1 +
 include/notifier.h                   |   1 +
 include/of.h                         |   1 +
 include/of_address.h                 |   1 +
 include/of_device.h                  |   1 +
 include/of_gpio.h                    |   6 +-
 include/of_graph.h                   |   5 +-
 include/of_mtd.h                     |   3 +-
 include/of_net.h                     |   3 +-
 include/of_pci.h                     |   1 +
 include/param.h                      |   1 +
 include/parseopt.h                   |   1 +
 include/part.h                       |  12 +-
 include/partition.h                  |   1 +
 include/password.h                   |  11 +-
 include/pbl.h                        |   3 +-
 include/phy-id-list.h                |   1 +
 include/pinctrl.h                    |   1 +
 include/poller.h                     |   4 +-
 include/poweroff.h                   |   1 +
 include/printk.h                     |   1 +
 include/progress.h                   |   1 +
 include/pwm.h                        |   1 +
 include/qsort.h                      |   1 +
 include/ratp.h                       |   1 +
 include/ratp_bb.h                    |   1 +
 include/readkey.h                    |   1 +
 include/regmap.h                     |   1 +
 include/regulator.h                  |   1 +
 include/reset_source.h               |   6 +-
 include/restart.h                    |   1 +
 include/rtc.h                        |  12 +-
 include/s_record.h                   |  12 +-
 include/scsi.h                       |  13 +-
 include/serdev.h                     |   1 +
 include/shell.h                      |   3 +-
 include/sntp.h                       |   1 +
 include/spi/eeprom.h                 |   1 +
 include/spi/flash.h                  |   1 +
 include/spi/imx-spi.h                |   1 +
 include/spi/spi.h                    |   1 +
 include/spi/spi_gpio.h               |  11 +-
 include/state.h                      |   1 +
 include/stdio.h                      |   1 +
 include/stdlib.h                     |   1 +
 include/stmp-device.h                |   6 +-
 include/string.h                     |   1 +
 include/stringlist.h                 |   1 +
 include/twl6030_pwrbtn.h             |   1 +
 include/types.h                      |   1 +
 include/ubiformat.h                  |   1 +
 include/uimagefs.h                   |   3 +-
 include/uncompress.h                 |   1 +
 include/unistd.h                     |   1 +
 include/usb_dfu_trailer.h            |   1 +
 include/w1_mac_address.h             |   3 +-
 include/watchdog.h                   |  12 +-
 include/wchar.h                      |   1 +
 include/xfuncs.h                     |   1 +
 include/xymodem.h                    |  11 +-
 141 files changed, 609 insertions(+), 383 deletions(-)
 create mode 100644 LICENSES/preferred/LGPL-2.1-or-later

-- 
2.25.0


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

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

* [PATCH v3 1/7] include: add SPDX GPL-2.0-only license tags where applicable
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
@ 2020-02-13 12:12   ` Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 2/7] include: add SPDX GPL-2.0-or-later " Roland Hieber
                     ` (6 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Ahmad Fatoum, Roland Hieber

From: Roland Hieber <rohieb@rohieb.name>

Interpret "GPLv2" as "GPLv2 only".

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/aimage.h            |  3 +--
 include/aiodev.h            |  9 ---------
 include/binfmt.h            |  3 +--
 include/bootstrap.h         |  3 +--
 include/bpkfs.h             |  3 +--
 include/dhcp.h              |  5 +----
 include/digest.h            | 12 +-----------
 include/dma.h               |  4 +---
 include/firmware.h          | 10 +---------
 include/getopt.h            | 11 +----------
 include/local_mac_address.h |  3 +--
 include/menu.h              | 12 +-----------
 include/of_graph.h          |  5 +----
 include/of_mtd.h            |  3 +--
 include/of_net.h            |  3 +--
 include/password.h          | 11 +----------
 include/pbl.h               |  3 +--
 include/poller.h            |  4 +---
 include/shell.h             |  3 +--
 include/uimagefs.h          |  3 +--
 include/w1_mac_address.h    |  3 +--
 21 files changed, 20 insertions(+), 96 deletions(-)

diff --git a/include/aimage.h b/include/aimage.h
index 9702b7d35ca0..4f34c2477112 100644
--- a/include/aimage.h
+++ b/include/aimage.h
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2011 Jean-Christhophe PLAGNIOL-VILLARD <plagniol@jcrosoft.com>
  *
  * Android boot image
- *
- * Under GPLv2 only
  */
 
 #ifndef __AIMAGE_H__
diff --git a/include/aiodev.h b/include/aiodev.h
index 5e38b4fab5ad..ff877c0d7892 100644
--- a/include/aiodev.h
+++ b/include/aiodev.h
@@ -6,15 +6,6 @@
  *
  * See file CREDITS for list of people who contributed to this
  * project.
- *
- * 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.
  */
 
 #ifndef __AIODEVICE_H
diff --git a/include/binfmt.h b/include/binfmt.h
index 46b627e36da1..7eb46e522573 100644
--- a/include/binfmt.h
+++ b/include/binfmt.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * GPL v2
  */
 
 #ifndef __BFMT_H__
diff --git a/include/bootstrap.h b/include/bootstrap.h
index d3ee6be47c7a..05734a920c3e 100644
--- a/include/bootstrap.h
+++ b/include/bootstrap.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
- *
- * Under GPLv2
  */
 
 #ifndef __BOOSTRAP_H__
diff --git a/include/bpkfs.h b/include/bpkfs.h
index ccb56c1419e5..c80dc211c672 100644
--- a/include/bpkfs.h
+++ b/include/bpkfs.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * under GPLv2 only
  */
 
 #ifndef __BPKFS_H__
diff --git a/include/dhcp.h b/include/dhcp.h
index 0dced8e9faa4..e19dac0d66ab 100644
--- a/include/dhcp.h
+++ b/include/dhcp.h
@@ -1,10 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2015 PHYTEC Messtechnik GmbH,
  * Author: Wadim Egorov <w.egorov@phytec.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.
  */
 
 #ifndef __DHCP_H__
diff --git a/include/digest.h b/include/digest.h
index 176084146b76..6148c03da469 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -1,19 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * 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.
- *
  */
 
 #ifndef __DIGEST_H__
diff --git a/include/dma.h b/include/dma.h
index 7f95782635d8..07b79cd91893 100644
--- a/include/dma.h
+++ b/include/dma.h
@@ -1,8 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 by Marc Kleine-Budde <mkl@pengutronix.de>
- *
- * This file is released under the GPLv2
- *
  */
 
 #ifndef __DMA_H
diff --git a/include/firmware.h b/include/firmware.h
index 7c01a77118eb..19777d9bf711 100644
--- a/include/firmware.h
+++ b/include/firmware.h
@@ -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.
  */
 
 #ifndef FIRMWARE_H
diff --git a/include/getopt.h b/include/getopt.h
index 4f48ba8fd9b2..d4c01e793ad6 100644
--- a/include/getopt.h
+++ b/include/getopt.h
@@ -1,17 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * getopt.h - a simple getopt(3) implementation.
  *
  * 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.
- *
  */
 
 #ifndef __GETOPT_H
diff --git a/include/local_mac_address.h b/include/local_mac_address.h
index 3d1ec66b1f9f..5d2fb9d4c2e0 100644
--- a/include/local_mac_address.h
+++ b/include/local_mac_address.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
- *
- * Under GPLv2 only
  */
 
 #ifndef __LOCAL_MAC_ADDRESS_H__
diff --git a/include/menu.h b/include/menu.h
index 2fef064499f7..77c496c65c17 100644
--- a/include/menu.h
+++ b/include/menu.h
@@ -1,19 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2009-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * 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.
- *
  */
 
 #ifndef __MENU_H__
diff --git a/include/of_graph.h b/include/of_graph.h
index 254dd2ca28c9..ef3fb8b94a76 100644
--- a/include/of_graph.h
+++ b/include/of_graph.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * OF graph binding parsing helpers
  *
@@ -6,10 +7,6 @@
  *
  * Copyright (C) 2012 Renesas Electronics Corp.
  * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
  */
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
diff --git a/include/of_mtd.h b/include/of_mtd.h
index 9f5b8a2796a2..6dbc3d86730d 100644
--- a/include/of_mtd.h
+++ b/include/of_mtd.h
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * OF helpers for mtd.
- *
- * This file is released under the GPLv2
  */
 
 #ifndef __LINUX_OF_MTD_H
diff --git a/include/of_net.h b/include/of_net.h
index 0f6ef200d5c6..f37af58303a5 100644
--- a/include/of_net.h
+++ b/include/of_net.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * OF helpers for network devices.
- *
- * This file is released under the GPLv2
  */
 
 #ifndef __LINUX_OF_NET_H
diff --git a/include/password.h b/include/password.h
index 8b9961815fab..e259a87da1ac 100644
--- a/include/password.h
+++ b/include/password.h
@@ -1,18 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2008-2010 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
- *
- * 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.
- *
  */
 
 #ifndef __PASSWORD_H__
diff --git a/include/pbl.h b/include/pbl.h
index 787bd8293ff1..f84ed3b7bfcf 100644
--- a/include/pbl.h
+++ b/include/pbl.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * Under GPLv2
  */
 
 #ifndef __PBL_H__
diff --git a/include/poller.h b/include/poller.h
index 35a2271d699c..b22b8a1b8959 100644
--- a/include/poller.h
+++ b/include/poller.h
@@ -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
- *
  */
 
 #ifndef POLLER_H
diff --git a/include/shell.h b/include/shell.h
index 65dad0e1d147..073f18102b45 100644
--- a/include/shell.h
+++ b/include/shell.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * (C) Copyright 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * Under GPLv2 only
  */
 
 #ifndef __SHELL_H__
diff --git a/include/uimagefs.h b/include/uimagefs.h
index 3f58589b731e..6b34982e4e97 100644
--- a/include/uimagefs.h
+++ b/include/uimagefs.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * under GPLv2 only
  */
 
 #ifndef __UIMAGEFS_H__
diff --git a/include/w1_mac_address.h b/include/w1_mac_address.h
index cd4be765f73e..1ee0ad27c99d 100644
--- a/include/w1_mac_address.h
+++ b/include/w1_mac_address.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
- *
- * Under GPLv2 only
  */
 
 #ifndef __W1_MAC_ADDRESS_H__
-- 
2.25.0


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

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

* [PATCH v3 2/7] include: add SPDX GPL-2.0-or-later license tags where applicable
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 1/7] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
@ 2020-02-13 12:12   ` Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 3/7] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
                     ` (5 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Ahmad Fatoum, Roland Hieber

From: Roland Hieber <rohieb@rohieb.name>

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/ata_drive.h    | 11 +----------
 include/command.h      | 12 +-----------
 include/common.h       | 12 +-----------
 include/console.h      | 12 +-----------
 include/debug_ll.h     | 11 +----------
 include/disks.h        | 11 +----------
 include/driver.h       | 12 +-----------
 include/environment.h  | 12 +-----------
 include/hab.h          | 11 +----------
 include/image-fit.h    | 14 +-------------
 include/image.h        | 12 +-----------
 include/int_sqrt.h     | 12 +-----------
 include/jtag.h         | 15 +--------------
 include/kfifo.h        | 11 +----------
 include/mci.h          | 12 +-----------
 include/of_gpio.h      |  6 +-----
 include/part.h         | 12 +-----------
 include/reset_source.h |  6 +-----
 include/rtc.h          | 12 +-----------
 include/s_record.h     | 12 +-----------
 include/scsi.h         | 13 +------------
 include/stmp-device.h  |  6 +-----
 include/watchdog.h     | 12 +-----------
 include/xymodem.h      | 11 +----------
 24 files changed, 24 insertions(+), 246 deletions(-)

diff --git a/include/ata_drive.h b/include/ata_drive.h
index d61c6f11d4d3..d98e410b30c3 100644
--- a/include/ata_drive.h
+++ b/include/ata_drive.h
@@ -1,16 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
  */
 
 #ifndef ATA_DISK_H
diff --git a/include/command.h b/include/command.h
index 7555d0053c63..f016e35b2d45 100644
--- a/include/command.h
+++ b/include/command.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/common.h b/include/common.h
index c6eb50420f68..ef2e4e5c31dd 100644
--- a/include/common.h
+++ b/include/common.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef __COMMON_H_
diff --git a/include/console.h b/include/console.h
index 537ac97ab34d..634b95ca4e9a 100644
--- a/include/console.h
+++ b/include/console.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef _CONSOLE_H_
diff --git a/include/debug_ll.h b/include/debug_ll.h
index 504751639950..5bd1afe6ac73 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * debug_ll.h
  *
@@ -5,16 +6,6 @@
  *  12 Feb 2005
  *
  *  Copyright (C) 2005 Marc Singer
- *
- * 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.
  */
 
 #ifndef __INCLUDE_DEBUG_LL_H__
diff --git a/include/disks.h b/include/disks.h
index 9932750a245b..e9b72c250753 100644
--- a/include/disks.h
+++ b/include/disks.h
@@ -1,16 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
  */
 
 #ifndef DISKS_H
diff --git a/include/driver.h b/include/driver.h
index 74be1b3e8e41..6176e6a05f3f 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -1,19 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef DRIVER_H
diff --git a/include/environment.h b/include/environment.h
index 52eafe98824b..39606b8ad958 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef _ENVIRONMENT_H_
diff --git a/include/hab.h b/include/hab.h
index 78c2b865babd..1aa5384053b7 100644
--- a/include/hab.h
+++ b/include/hab.h
@@ -1,18 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Copyright (C) 2014, 2015 Marc Kleine-Budde <mkl@pengutronix.de>
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
  */
 
 #ifndef __HABV4_H
diff --git a/include/image-fit.h b/include/image-fit.h
index fc0883b5dcb1..27c9e835195c 100644
--- a/include/image-fit.h
+++ b/include/image-fit.h
@@ -1,17 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * 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/>.
- *
  * Copyright (C) Jan Lübbe, 2014
  */
 
diff --git a/include/image.h b/include/image.h
index add9c8587402..18344dfef967 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2005
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@ -5,17 +6,6 @@
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
- *
  ********************************************************************
  * NOTE: This header file defines an interface to barebox. Including
  * this (unmodified) header file in another file is considered normal
diff --git a/include/int_sqrt.h b/include/int_sqrt.h
index 55fb4fbe6682..b06e6a8ab155 100644
--- a/include/int_sqrt.h
+++ b/include/int_sqrt.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef __INT_SQRT__
diff --git a/include/jtag.h b/include/jtag.h
index 4cc4eaca9182..b2a533fcb863 100644
--- a/include/jtag.h
+++ b/include/jtag.h
@@ -1,21 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * include/linux/jtag.h
  *
  * Written Aug 2009 by Davide Rizzo <elpa.rizzo@gmail.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; 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, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
 /*
diff --git a/include/kfifo.h b/include/kfifo.h
index 25880f4626b8..9c19d08b696a 100644
--- a/include/kfifo.h
+++ b/include/kfifo.h
@@ -1,17 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * A simple kernel FIFO implementation.
  *
  * Copyright (C) 2004 Stelian Pop <stelian@popies.net>
- *
- * 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.
  */
 #ifndef _LINUX_KFIFO_H
 #define _LINUX_KFIFO_H
diff --git a/include/mci.h b/include/mci.h
index a45d744761a2..50febdd4b8d5 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2010 Juergen Beisert, Pengutronix
  *
@@ -10,17 +11,6 @@
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 
 #ifndef _MCI_H_
diff --git a/include/of_gpio.h b/include/of_gpio.h
index 95a454c683e5..9076c81e5462 100644
--- a/include/of_gpio.h
+++ b/include/of_gpio.h
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * OF helpers for the GPIO API
  *
  * based on Linux OF_GPIO API
- *
- * 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.
  */
 
 #ifndef __OF_GPIO_H
diff --git a/include/part.h b/include/part.h
index d4d40f6ec9ce..66cc93ae96e2 100644
--- a/include/part.h
+++ b/include/part.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
  */
 #ifndef _PART_H
 #define _PART_H
diff --git a/include/reset_source.h b/include/reset_source.h
index 305dde0102d5..8795029315c8 100644
--- a/include/reset_source.h
+++ b/include/reset_source.h
@@ -1,13 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * 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.
  */
 
 #ifndef __INCLUDE_RESET_SOURCE_H
diff --git a/include/rtc.h b/include/rtc.h
index 600dc46c41c7..3190ea20dac8 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2001
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/s_record.h b/include/s_record.h
index 84b4719519fe..190850beed7a 100644
--- a/include/s_record.h
+++ b/include/s_record.h
@@ -1,20 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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/include/scsi.h b/include/scsi.h
index 59d47393c8a3..ede19079621f 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -1,21 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * (C) Copyright 2001
  * Denis Peter, MPL AG Switzerland
  *
  * See file CREDITS for list of people who contributed to this
  * 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; 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.
- *
- *
  */
  #ifndef _SCSI_H
  #define _SCSI_H
diff --git a/include/stmp-device.h b/include/stmp-device.h
index 9b5bee47129b..256856c58926 100644
--- a/include/stmp-device.h
+++ b/include/stmp-device.h
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * basic functions for devices following the "stmp" style register layout
  *
  * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K.
- *
- * 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.
  */
 
 #ifndef __STMP_DEVICE_H__
diff --git a/include/watchdog.h b/include/watchdog.h
index 9741570ce229..419c1cdf469e 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -1,14 +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 */
 
 #ifndef INCLUDE_WATCHDOG_H
 # define INCLUDE_WATCHDOG_H
diff --git a/include/xymodem.h b/include/xymodem.h
index 917cecc003f7..89444f5c5eef 100644
--- a/include/xymodem.h
+++ b/include/xymodem.h
@@ -1,17 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Handles the X-Modem, Y-Modem and Y-Modem/G protocols
  *
  * Copyright (C) 2008 Robert Jarzmik
- *
- * 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.
  */
 
 #ifndef _XYMODEM_
-- 
2.25.0


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

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

* [PATCH v3 3/7] include: add SPDX GPL-2.0-only license tags for files without licensing information
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 1/7] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 2/7] include: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2020-02-13 12:12   ` Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 4/7] LICENSES: add LGPL-2.1-or-later Roland Hieber
                     ` (4 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Ahmad Fatoum, Roland Hieber

From: Roland Hieber <rohieb@rohieb.name>

According to our /README, GPL-2.0-only applies for the whole project
except noted otherwise.

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/abort.h             | 1 +
 include/bbu.h               | 1 +
 include/block.h             | 1 +
 include/blspec.h            | 1 +
 include/boot.h              | 1 +
 include/bootchooser.h       | 1 +
 include/bootm.h             | 1 +
 include/bootsource.h        | 1 +
 include/bunzip2.h           | 1 +
 include/byteorder.h         | 1 +
 include/cache.h             | 1 +
 include/clock.h             | 1 +
 include/cmdlinepart.h       | 1 +
 include/complete.h          | 1 +
 include/console_countdown.h | 1 +
 include/crc.h               | 1 +
 include/crc7.h              | 1 +
 include/dirent.h            | 1 +
 include/dma-dir.h           | 1 +
 include/efi.h               | 1 +
 include/elf.h               | 1 +
 include/envfs.h             | 1 +
 include/errno.h             | 1 +
 include/fb.h                | 1 +
 include/fcntl.h             | 1 +
 include/fdt.h               | 1 +
 include/file-list.h         | 1 +
 include/filetype.h          | 1 +
 include/fs.h                | 1 +
 include/globalvar.h         | 1 +
 include/gpio.h              | 1 +
 include/gpio_keys.h         | 1 +
 include/gunzip.h            | 1 +
 include/image-metadata.h    | 1 +
 include/init.h              | 1 +
 include/io.h                | 1 +
 include/ioctl.h             | 1 +
 include/kallsyms.h          | 1 +
 include/kgdb.h              | 1 +
 include/led.h               | 1 +
 include/libbb.h             | 2 +-
 include/libfile.h           | 1 +
 include/libgen.h            | 1 +
 include/lzo.h               | 1 +
 include/magicvar.h          | 1 +
 include/malloc.h            | 1 +
 include/math.h              | 1 +
 include/memory.h            | 1 +
 include/memtest.h           | 1 +
 include/mmu.h               | 1 +
 include/module.h            | 1 +
 include/nand.h              | 1 +
 include/notifier.h          | 1 +
 include/of.h                | 1 +
 include/of_address.h        | 1 +
 include/of_device.h         | 1 +
 include/of_pci.h            | 1 +
 include/param.h             | 1 +
 include/parseopt.h          | 1 +
 include/partition.h         | 1 +
 include/phy-id-list.h       | 1 +
 include/pinctrl.h           | 1 +
 include/poweroff.h          | 1 +
 include/printk.h            | 1 +
 include/progress.h          | 1 +
 include/pwm.h               | 1 +
 include/qsort.h             | 1 +
 include/ratp.h              | 1 +
 include/ratp_bb.h           | 1 +
 include/readkey.h           | 1 +
 include/regmap.h            | 1 +
 include/regulator.h         | 1 +
 include/restart.h           | 1 +
 include/serdev.h            | 1 +
 include/sntp.h              | 1 +
 include/state.h             | 1 +
 include/stdio.h             | 1 +
 include/stdlib.h            | 1 +
 include/string.h            | 1 +
 include/stringlist.h        | 1 +
 include/twl6030_pwrbtn.h    | 1 +
 include/types.h             | 1 +
 include/ubiformat.h         | 1 +
 include/uncompress.h        | 1 +
 include/unistd.h            | 1 +
 include/usb_dfu_trailer.h   | 1 +
 include/wchar.h             | 1 +
 include/xfuncs.h            | 1 +
 88 files changed, 88 insertions(+), 1 deletion(-)

diff --git a/include/abort.h b/include/abort.h
index 89ee549e3452..039500b04d0b 100644
--- a/include/abort.h
+++ b/include/abort.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __ABORT_H
 #define __ABORT_H
 
diff --git a/include/bbu.h b/include/bbu.h
index 9da6785d2e67..3b9d2f4bf151 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_BBU_H
 #define __INCLUDE_BBU_H
 
diff --git a/include/block.h b/include/block.h
index 91377679b0d4..bd87efdc62bc 100644
--- a/include/block.h
+++ b/include/block.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BLOCK_H
 #define __BLOCK_H
 
diff --git a/include/blspec.h b/include/blspec.h
index 7d911f030bfa..37076cd47c97 100644
--- a/include/blspec.h
+++ b/include/blspec.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LOADER_H__
 #define __LOADER_H__
 
diff --git a/include/boot.h b/include/boot.h
index 4f7612ab803d..4054c27d935a 100644
--- a/include/boot.h
+++ b/include/boot.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOT_H
 #define __BOOT_H
 
diff --git a/include/bootchooser.h b/include/bootchooser.h
index 7822c01459e4..2cfd5b126ab9 100644
--- a/include/bootchooser.h
+++ b/include/bootchooser.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTCHOOSER_H
 #define __BOOTCHOOSER_H
 
diff --git a/include/bootm.h b/include/bootm.h
index a041aa35b9a0..7782de7a476d 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTM_H
 #define __BOOTM_H
 
diff --git a/include/bootsource.h b/include/bootsource.h
index 92f7f27cd4fa..32295ddd96ab 100644
--- a/include/bootsource.h
+++ b/include/bootsource.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BOOTSOURCE_H__
 #define __BOOTSOURCE_H__
 
diff --git a/include/bunzip2.h b/include/bunzip2.h
index 115272137a9c..55404ff846f6 100644
--- a/include/bunzip2.h
+++ b/include/bunzip2.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef DECOMPRESS_BUNZIP2_H
 #define DECOMPRESS_BUNZIP2_H
 
diff --git a/include/byteorder.h b/include/byteorder.h
index 4b255a5fab9b..c3cac85013ec 100644
--- a/include/byteorder.h
+++ b/include/byteorder.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __BYTEORDER_H__
 #define __BYTEORDER_H__
 
diff --git a/include/cache.h b/include/cache.h
index 23841dcd06a2..37e008794bf2 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CACHE_H
 #define __CACHE_H
 
diff --git a/include/clock.h b/include/clock.h
index 211748f3a0b9..d681bf630e88 100644
--- a/include/clock.h
+++ b/include/clock.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef CLOCK_H
 #define CLOCK_H
 
diff --git a/include/cmdlinepart.h b/include/cmdlinepart.h
index bf8cdfa62a6e..9f5bdf610a11 100644
--- a/include/cmdlinepart.h
+++ b/include/cmdlinepart.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CMD_LINE_PART_H
 #define __CMD_LINE_PART_H
 
diff --git a/include/complete.h b/include/complete.h
index 491ba66cb442..763d256bf460 100644
--- a/include/complete.h
+++ b/include/complete.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __COMPLETE_
 #define __COMPLETE_
 
diff --git a/include/console_countdown.h b/include/console_countdown.h
index 88cadf11ec9b..df8da71e8bee 100644
--- a/include/console_countdown.h
+++ b/include/console_countdown.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __CONSOLE_COUNTDOWN_H
 #define __CONSOLE_COUNTDOWN_H
 
diff --git a/include/crc.h b/include/crc.h
index a67388f732e0..eb972705c21a 100644
--- a/include/crc.h
+++ b/include/crc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_CRC_H
 #define __INCLUDE_CRC_H
 
diff --git a/include/crc7.h b/include/crc7.h
index 0c41cc341f09..27d2dae4223b 100644
--- a/include/crc7.h
+++ b/include/crc7.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_CRC7_H
 #define _LINUX_CRC7_H
 #include <common.h>
diff --git a/include/dirent.h b/include/dirent.h
index 1df5d904520d..d7b5e78b2728 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __DIRENT_H
 #define __DIRENT_H
 
diff --git a/include/dma-dir.h b/include/dma-dir.h
index 970764c5b3c9..d3b1a27b4fbd 100644
--- a/include/dma-dir.h
+++ b/include/dma-dir.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __DMA_DIR_H
 #define __DMA_DIR_H
 
diff --git a/include/efi.h b/include/efi.h
index 43c05939513d..5698a8414586 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_EFI_H
 #define _LINUX_EFI_H
 
diff --git a/include/elf.h b/include/elf.h
index 44be07f73a64..113728f08a28 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_ELF_H
 #define _LINUX_ELF_H
 
diff --git a/include/envfs.h b/include/envfs.h
index c8fc3759c606..d4e2c6110e65 100644
--- a/include/envfs.h
+++ b/include/envfs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _ENVFS_H
 #define _ENVFS_H
 
diff --git a/include/errno.h b/include/errno.h
index 496ccab0ee6d..50f00de5d636 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __ERRNO_H
 #define __ERRNO_H
 
diff --git a/include/fb.h b/include/fb.h
index 271b939968a2..e17d07ae0cd8 100644
--- a/include/fb.h
+++ b/include/fb.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FB_H
 #define __FB_H
 
diff --git a/include/fcntl.h b/include/fcntl.h
index 98020bdfb160..2e7c0eed3479 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FCNTL_H
 #define __FCNTL_H
 
diff --git a/include/fdt.h b/include/fdt.h
index 38a2d27b0207..232514c894c3 100644
--- a/include/fdt.h
+++ b/include/fdt.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _FDT_H
 #define _FDT_H
 
diff --git a/include/file-list.h b/include/file-list.h
index 404d8d64bb4e..9a9edfa378f3 100644
--- a/include/file-list.h
+++ b/include/file-list.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FILE_LIST
 #define __FILE_LIST
 
diff --git a/include/filetype.h b/include/filetype.h
index db95fdaa0a5f..c3a5bdfbbea3 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FILE_TYPE_H
 #define __FILE_TYPE_H
 
diff --git a/include/fs.h b/include/fs.h
index 38debfc41beb..04ec1329e106 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __FS_H
 #define __FS_H
 
diff --git a/include/globalvar.h b/include/globalvar.h
index 67391e2042f9..fc85e93e1431 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __GLOBALVAR_H
 #define __GLOBALVAR_H
 
diff --git a/include/gpio.h b/include/gpio.h
index 0c0c0337e01d..98c5b93ba2e6 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __GPIO_H
 #define __GPIO_H
 
diff --git a/include/gpio_keys.h b/include/gpio_keys.h
index f4a22e16dbc8..f12bed2a0b43 100644
--- a/include/gpio_keys.h
+++ b/include/gpio_keys.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _GPIO_KEYS_H
 #define _GPIO_KEYS_H
 
diff --git a/include/gunzip.h b/include/gunzip.h
index b9018941d15b..0a959d5eb7a5 100644
--- a/include/gunzip.h
+++ b/include/gunzip.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef GUNZIP_H
 #define GUNZIP_H
 
diff --git a/include/image-metadata.h b/include/image-metadata.h
index 5904d95acd37..330ca3588a0c 100644
--- a/include/image-metadata.h
+++ b/include/image-metadata.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_IMAGE_METADTA_H
 #define __INCLUDE_IMAGE_METADTA_H
 
diff --git a/include/init.h b/include/init.h
index 527d49afecdb..d1cef14b0765 100644
--- a/include/init.h
+++ b/include/init.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _INIT_H
 #define _INIT_H
 
diff --git a/include/io.h b/include/io.h
index 8eb56b061f12..913002072240 100644
--- a/include/io.h
+++ b/include/io.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __IO_H
 #define __IO_H
 
diff --git a/include/ioctl.h b/include/ioctl.h
index 1ade20f90597..3290a52519e8 100644
--- a/include/ioctl.h
+++ b/include/ioctl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __IOCTL_H
 #define __IOCTL_H
 
diff --git a/include/kallsyms.h b/include/kallsyms.h
index 69b84d2c6c00..e0b3ff7cd503 100644
--- a/include/kallsyms.h
+++ b/include/kallsyms.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __KALLSYMS_H
 #define __KALLSYMS_H
 
diff --git a/include/kgdb.h b/include/kgdb.h
index f543cd6e1833..1f23833f92f1 100644
--- a/include/kgdb.h
+++ b/include/kgdb.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __KGDB_H__
 #define __KGDB_H__
 
diff --git a/include/led.h b/include/led.h
index 0ce857129d5b..6b6aff922a86 100644
--- a/include/led.h
+++ b/include/led.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LED_H
 #define __LED_H
 
diff --git a/include/libbb.h b/include/libbb.h
index d05c19063793..a3a13b41cea8 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1,4 +1,4 @@
-
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBBB_H
 #define __LIBBB_H
 
diff --git a/include/libfile.h b/include/libfile.h
index f1d695187790..350ddddf701d 100644
--- a/include/libfile.h
+++ b/include/libfile.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBFILE_H
 #define __LIBFILE_H
 
diff --git a/include/libgen.h b/include/libgen.h
index 71f06eb6f665..6c0f039efaa2 100644
--- a/include/libgen.h
+++ b/include/libgen.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LIBGEN_H
 #define __LIBGEN_H
 
diff --git a/include/lzo.h b/include/lzo.h
index 6c34be13efd8..f46f38b0edcf 100644
--- a/include/lzo.h
+++ b/include/lzo.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LZO_H__
 #define __LZO_H__
 /*
diff --git a/include/magicvar.h b/include/magicvar.h
index bb5bd2591fb2..9fb89a84cca3 100644
--- a/include/magicvar.h
+++ b/include/magicvar.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MAGIC_VARS_H
 #define __MAGIC_VARS_H
 
diff --git a/include/malloc.h b/include/malloc.h
index 0d3c9e97a0b9..971fc4058bc6 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MALLOC_H
 #define __MALLOC_H
 
diff --git a/include/math.h b/include/math.h
index 5648e3f9c120..1e59a8479ef5 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /* math.h - interface to shell math "library" -- this allows shells to share
  *          the implementation of arithmetic $((...)) expansions.
  *
diff --git a/include/memory.h b/include/memory.h
index 73ee7661ef3e..906d9f7b2689 100644
--- a/include/memory.h
+++ b/include/memory.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MEM_MALLOC_H
 #define __MEM_MALLOC_H
 
diff --git a/include/memtest.h b/include/memtest.h
index 0100a6c58cd9..df0a391cc3c2 100644
--- a/include/memtest.h
+++ b/include/memtest.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MEMTEST_H
 #define __MEMTEST_H
 
diff --git a/include/mmu.h b/include/mmu.h
index 66b246f6d270..2e23853df353 100644
--- a/include/mmu.h
+++ b/include/mmu.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MMU_H
 #define __MMU_H
 
diff --git a/include/module.h b/include/module.h
index 460a34fe2b63..abf740a789b7 100644
--- a/include/module.h
+++ b/include/module.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __MODULE_H
 #define __MODULE_H
 
diff --git a/include/nand.h b/include/nand.h
index fb3b5a108810..f0114a227d45 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __NAND_H__
 #define __NAND_H__
 
diff --git a/include/notifier.h b/include/notifier.h
index e0df3e666bb5..432b66c4ca5a 100644
--- a/include/notifier.h
+++ b/include/notifier.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __NOTIFIER_H
 #define __NOTIFIER_H
 
diff --git a/include/of.h b/include/of.h
index 67601ce80cad..8d6c018b73ec 100644
--- a/include/of.h
+++ b/include/of.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_H
 #define __OF_H
 
diff --git a/include/of_address.h b/include/of_address.h
index 350ecaec827a..66117b1fa7f8 100644
--- a/include/of_address.h
+++ b/include/of_address.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_ADDRESS_H
 #define __OF_ADDRESS_H
 
diff --git a/include/of_device.h b/include/of_device.h
index 54410ad12f55..244f5fcbbb11 100644
--- a/include/of_device.h
+++ b/include/of_device.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_DEVICE_H
 #define __OF_DEVICE_H
 
diff --git a/include/of_pci.h b/include/of_pci.h
index c95cb0135ae0..c78715093660 100644
--- a/include/of_pci.h
+++ b/include/of_pci.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __OF_PCI_H
 #define __OF_PCI_H
 
diff --git a/include/param.h b/include/param.h
index d75f50ea3e60..2d68338bb30b 100644
--- a/include/param.h
+++ b/include/param.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef PARAM_H
 #define PARAM_H
 
diff --git a/include/parseopt.h b/include/parseopt.h
index 273a371ac342..5a40bdc219fe 100644
--- a/include/parseopt.h
+++ b/include/parseopt.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PARSEOPT_H__
 #define __PARSEOPT_H__
 void parseopt_llu_suffix(const char *options, const char *opt,
diff --git a/include/partition.h b/include/partition.h
index 32570530eb99..373134afad25 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PARTITION_H
 #define __PARTITION_H
 
diff --git a/include/phy-id-list.h b/include/phy-id-list.h
index a6070a0248f5..f770c775b8fe 100644
--- a/include/phy-id-list.h
+++ b/include/phy-id-list.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * List of all Etherenet PHY IDs that is not found in any .h files in
  * include/linux
diff --git a/include/pinctrl.h b/include/pinctrl.h
index 7d8716996dab..0fd7f491189c 100644
--- a/include/pinctrl.h
+++ b/include/pinctrl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef PINCTRL_H
 #define PINCTRL_H
 
diff --git a/include/poweroff.h b/include/poweroff.h
index ae9557db5d63..217b68cdf966 100644
--- a/include/poweroff.h
+++ b/include/poweroff.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_POWEROFF_H
 #define __INCLUDE_POWEROFF_H
 
diff --git a/include/printk.h b/include/printk.h
index b0d5d09f835d..6a027175abfe 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PRINTK_H
 #define __PRINTK_H
 
diff --git a/include/progress.h b/include/progress.h
index 5c4dd1e77549..75aa9c4f8616 100644
--- a/include/progress.h
+++ b/include/progress.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PROGRSS_H
 #define __PROGRSS_H
 
diff --git a/include/pwm.h b/include/pwm.h
index 911c760839fa..dcc81af867e8 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __PWM_H
 #define __PWM_H
 
diff --git a/include/qsort.h b/include/qsort.h
index d279dc281075..f8d889ea1ea6 100644
--- a/include/qsort.h
+++ b/include/qsort.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __QSORT_H
 #define __QSORT_H
 
diff --git a/include/ratp.h b/include/ratp.h
index d2a81923579d..effa288b4220 100644
--- a/include/ratp.h
+++ b/include/ratp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __RATP_H
 #define __RATP_H
 
diff --git a/include/ratp_bb.h b/include/ratp_bb.h
index b6699979b6b0..a4f28c642ca0 100644
--- a/include/ratp_bb.h
+++ b/include/ratp_bb.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __RATP_BB_H
 #define __RATP_BB_H
 
diff --git a/include/readkey.h b/include/readkey.h
index ed1cd1542d6f..fdb96426e082 100644
--- a/include/readkey.h
+++ b/include/readkey.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef READKEY_H
 #define READKEY_H
 
diff --git a/include/regmap.h b/include/regmap.h
index 09b7b57d52f3..8528f810797c 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __REGMAP_H
 #define __REGMAP_H
 
diff --git a/include/regulator.h b/include/regulator.h
index a445c5c3d10a..d01535df5207 100644
--- a/include/regulator.h
+++ b/include/regulator.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __REGULATOR_H
 #define __REGULATOR_H
 
diff --git a/include/restart.h b/include/restart.h
index 79b57c8e11bf..7ec0910e9404 100644
--- a/include/restart.h
+++ b/include/restart.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_RESTART_H
 #define __INCLUDE_RESTART_H
 
diff --git a/include/serdev.h b/include/serdev.h
index 29030538e5e7..0d020b8e82c2 100644
--- a/include/serdev.h
+++ b/include/serdev.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _SERDEV_H_
 #define _SERDEV_H_
 
diff --git a/include/sntp.h b/include/sntp.h
index bfcfcfa8c837..05cad129cd1d 100644
--- a/include/sntp.h
+++ b/include/sntp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __SNTP_H
 #define __SNTP_H
 
diff --git a/include/state.h b/include/state.h
index d98b781c2089..be1b592576c1 100644
--- a/include/state.h
+++ b/include/state.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STATE_H
 #define __STATE_H
 
diff --git a/include/stdio.h b/include/stdio.h
index 46e277889d68..1cb11e88deea 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STDIO_H
 #define __STDIO_H
 
diff --git a/include/stdlib.h b/include/stdlib.h
index ee3f2299688d..d4056087243d 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STDLIB_H
 #define __STDLIB_H
 
diff --git a/include/string.h b/include/string.h
index 8c63f22491aa..120a613d4688 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STRING_H
 #define __STRING_H
 
diff --git a/include/stringlist.h b/include/stringlist.h
index e85500a99485..5cd452ca5fa4 100644
--- a/include/stringlist.h
+++ b/include/stringlist.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __STRINGLIST_H
 #define __STRINGLIST_H
 
diff --git a/include/twl6030_pwrbtn.h b/include/twl6030_pwrbtn.h
index c4e13d1f1de0..4c8e16625638 100644
--- a/include/twl6030_pwrbtn.h
+++ b/include/twl6030_pwrbtn.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _TWL6030_PWRBTN_H
 #define _TWL6030_PWRBTN_H
 
diff --git a/include/types.h b/include/types.h
index 0bfe3b9a0b7e..a6739394e0c8 100644
--- a/include/types.h
+++ b/include/types.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __TYPES_H
 #define __TYPES_H
 
diff --git a/include/ubiformat.h b/include/ubiformat.h
index 8a7a16ac18d8..eca62ae6dba4 100644
--- a/include/ubiformat.h
+++ b/include/ubiformat.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UBIFORMAT_H
 #define __UBIFORMAT_H
 
diff --git a/include/uncompress.h b/include/uncompress.h
index d146c9076809..4bdb03d4f5b6 100644
--- a/include/uncompress.h
+++ b/include/uncompress.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UNCOMPRESS_H
 #define __UNCOMPRESS_H
 
diff --git a/include/unistd.h b/include/unistd.h
index f392e6dd6cbd..06ce3558099f 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __UNISTD_H
 #define __UNISTD_H
 
diff --git a/include/usb_dfu_trailer.h b/include/usb_dfu_trailer.h
index 2cf66a590c43..64b84072755d 100644
--- a/include/usb_dfu_trailer.h
+++ b/include/usb_dfu_trailer.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _USB_DFU_TRAILER_H
 #define _USB_DFU_TRAILER_H
 
diff --git a/include/wchar.h b/include/wchar.h
index adb4f373e950..b601cc62079b 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __WCHAR_H
 #define __WCHAR_H
 
diff --git a/include/xfuncs.h b/include/xfuncs.h
index e3f120a04092..a9132d378722 100644
--- a/include/xfuncs.h
+++ b/include/xfuncs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __XFUNCS_H
 #define __XFUNCS_H
 
-- 
2.25.0


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

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

* [PATCH v3 4/7] LICENSES: add LGPL-2.1-or-later
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (2 preceding siblings ...)
  2020-02-13 12:12   ` [PATCH v3 3/7] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
@ 2020-02-13 12:12   ` Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 5/7] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
                     ` (3 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Roland Hieber

---
 LICENSES/preferred/LGPL-2.1-or-later | 468 +++++++++++++++++++++++++++
 1 file changed, 468 insertions(+)
 create mode 100644 LICENSES/preferred/LGPL-2.1-or-later

diff --git a/LICENSES/preferred/LGPL-2.1-or-later b/LICENSES/preferred/LGPL-2.1-or-later
new file mode 100644
index 000000000000..04bb156e77d5
--- /dev/null
+++ b/LICENSES/preferred/LGPL-2.1-or-later
@@ -0,0 +1,468 @@
+GNU LESSER GENERAL PUBLIC LICENSE
+
+Version 2.1, February 1999
+
+Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Everyone is permitted to copy and distribute verbatim copies of this license
+document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts as the
+successor of the GNU Library Public License, version 2, hence the version
+number 2.1.]
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to share
+and change it. By contrast, the GNU General Public Licenses are intended to
+guarantee your freedom to share and change free software--to make sure the
+software is free for all its users.
+
+This license, the Lesser General Public License, applies to some specially
+designated software packages--typically libraries--of the Free Software Foundation
+and other authors who decide to use it. You can use it too, but we suggest
+you first think carefully about whether this license or the ordinary General
+Public License is the better strategy to use in any particular case, based
+on the explanations below.
+
+When we speak of free software, we are referring to freedom of use, not price.
+Our General Public Licenses are designed to make sure that you have the freedom
+to distribute copies of free software (and charge for this service if you
+wish); that you receive source code or can get it if you want it; that you
+can change the software and use pieces of it in new free programs; and that
+you are informed that you can do these things.
+
+To protect your rights, we need to make restrictions that forbid distributors
+to deny you these rights or to ask you to surrender these rights. These restrictions
+translate to certain responsibilities for you if you distribute copies of
+the library or if you modify it.
+
+For example, if you distribute copies of the library, whether gratis or for
+a fee, you must give the recipients all the rights that we gave you. You must
+make sure that they, too, receive or can get the source code. If you link
+other code with the library, you must provide complete object files to the
+recipients, so that they can relink them with the library after making changes
+to the library and recompiling it. And you must show them these terms so they
+know their rights.
+
+We protect your rights with a two-step method: (1) we copyright the library,
+and (2) we offer you this license, which gives you legal permission to copy,
+distribute and/or modify the library.
+
+To protect each distributor, we want to make it very clear that there is no
+warranty for the free library. Also, if the library is modified by someone
+else and passed on, the recipients should know that what they have is not
+the original version, so that the original author's reputation will not be
+affected by problems that might be introduced by others.
+
+Finally, software patents pose a constant threat to the existence of any free
+program. We wish to make sure that a company cannot effectively restrict the
+users of a free program by obtaining a restrictive license from a patent holder.
+Therefore, we insist that any patent license obtained for a version of the
+library must be consistent with the full freedom of use specified in this
+license.
+
+Most GNU software, including some libraries, is covered by the ordinary GNU
+General Public License. This license, the GNU Lesser General Public License,
+applies to certain designated libraries, and is quite different from the ordinary
+General Public License. We use this license for certain libraries in order
+to permit linking those libraries into non-free programs.
+
+When a program is linked with a library, whether statically or using a shared
+library, the combination of the two is legally speaking a combined work, a
+derivative of the original library. The ordinary General Public License therefore
+permits such linking only if the entire combination fits its criteria of freedom.
+The Lesser General Public License permits more lax criteria for linking other
+code with the library.
+
+We call this license the "Lesser" General Public License because it does Less
+to protect the user's freedom than the ordinary General Public License. It
+also provides other free software developers Less of an advantage over competing
+non-free programs. These disadvantages are the reason we use the ordinary
+General Public License for many libraries. However, the Lesser license provides
+advantages in certain special circumstances.
+
+For example, on rare occasions, there may be a special need to encourage the
+widest possible use of a certain library, so that it becomes a de-facto standard.
+To achieve this, non-free programs must be allowed to use the library. A more
+frequent case is that a free library does the same job as widely used non-free
+libraries. In this case, there is little to gain by limiting the free library
+to free software only, so we use the Lesser General Public License.
+
+In other cases, permission to use a particular library in non-free programs
+enables a greater number of people to use a large body of free software. For
+example, permission to use the GNU C Library in non-free programs enables
+many more people to use the whole GNU operating system, as well as its variant,
+the GNU/Linux operating system.
+
+Although the Lesser General Public License is Less protective of the users'
+freedom, it does ensure that the user of a program that is linked with the
+Library has the freedom and the wherewithal to run that program using a modified
+version of the Library.
+
+The precise terms and conditions for copying, distribution and modification
+follow. Pay close attention to the difference between a "work based on the
+library" and a "work that uses the library". The former contains code derived
+from the library, whereas the latter must be combined with the library in
+order to run.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License Agreement applies to any software library or other program
+which contains a notice placed by the copyright holder or other authorized
+party saying it may be distributed under the terms of this Lesser General
+Public License (also called "this License"). Each licensee is addressed as
+"you".
+
+A "library" means a collection of software functions and/or data prepared
+so as to be conveniently linked with application programs (which use some
+of those functions and data) to form executables.
+
+The "Library", below, refers to any such software library or work which has
+been distributed under these terms. A "work based on the Library" means either
+the Library or any derivative work under copyright law: that is to say, a
+work containing the Library or a portion of it, either verbatim or with modifications
+and/or translated straightforwardly into another language. (Hereinafter, translation
+is included without limitation in the term "modification".)
+
+"Source code" for a work means the preferred form of the work for making modifications
+to it. For a library, complete source code means all the source code for all
+modules it contains, plus any associated interface definition files, plus
+the scripts used to control compilation and installation of the library.
+
+Activities other than copying, distribution and modification are not covered
+by this License; they are outside its scope. The act of running a program
+using the Library is not restricted, and output from such a program is covered
+only if its contents constitute a work based on the Library (independent of
+the use of the Library in a tool for writing it). Whether that is true depends
+on what the Library does and what the program that uses the Library does.
+
+1. You may copy and distribute verbatim copies of the Library's complete source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and disclaimer
+of warranty; keep intact all the notices that refer to this License and to
+the absence of any warranty; and distribute a copy of this License along with
+the Library.
+
+You may charge a fee for the physical act of transferring a copy, and you
+may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Library or any portion of it,
+thus forming a work based on the Library, and copy and distribute such modifications
+or work under the terms of Section 1 above, provided that you also meet all
+of these conditions:
+
+      a) The modified work must itself be a software library.
+
+b) You must cause the files modified to carry prominent notices stating that
+you changed the files and the date of any change.
+
+c) You must cause the whole of the work to be licensed at no charge to all
+third parties under the terms of this License.
+
+d) If a facility in the modified Library refers to a function or a table of
+data to be supplied by an application program that uses the facility, other
+than as an argument passed when the facility is invoked, then you must make
+a good faith effort to ensure that, in the event an application does not supply
+such function or table, the facility still operates, and performs whatever
+part of its purpose remains meaningful.
+
+(For example, a function in a library to compute square roots has a purpose
+that is entirely well-defined independent of the application. Therefore, Subsection
+2d requires that any application-supplied function or table used by this function
+must be optional: if the application does not supply it, the square root function
+must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If identifiable
+sections of that work are not derived from the Library, and can be reasonably
+considered independent and separate works in themselves, then this License,
+and its terms, do not apply to those sections when you distribute them as
+separate works. But when you distribute the same sections as part of a whole
+which is a work based on the Library, the distribution of the whole must be
+on the terms of this License, whose permissions for other licensees extend
+to the entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest your
+rights to work written entirely by you; rather, the intent is to exercise
+the right to control the distribution of derivative or collective works based
+on the Library.
+
+In addition, mere aggregation of another work not based on the Library with
+the Library (or with a work based on the Library) on a volume of a storage
+or distribution medium does not bring the other work under the scope of this
+License.
+
+3. You may opt to apply the terms of the ordinary GNU General Public License
+instead of this License to a given copy of the Library. To do this, you must
+alter all the notices that refer to this License, so that they refer to the
+ordinary GNU General Public License, version 2, instead of to this License.
+(If a newer version than version 2 of the ordinary GNU General Public License
+has appeared, then you can specify that version instead if you wish.) Do not
+make any other change in these notices.
+
+Once this change is made in a given copy, it is irreversible for that copy,
+so the ordinary GNU General Public License applies to all subsequent copies
+and derivative works made from that copy.
+
+This option is useful when you wish to copy part of the code of the Library
+into a program that is not a library.
+
+4. You may copy and distribute the Library (or a portion or derivative of
+it, under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you accompany it with the complete corresponding
+machine-readable source code, which must be distributed under the terms of
+Sections 1 and 2 above on a medium customarily used for software interchange.
+
+If distribution of object code is made by offering access to copy from a designated
+place, then offering equivalent access to copy the source code from the same
+place satisfies the requirement to distribute the source code, even though
+third parties are not compelled to copy the source along with the object code.
+
+5. A program that contains no derivative of any portion of the Library, but
+is designed to work with the Library by being compiled or linked with it,
+is called a "work that uses the Library". Such a work, in isolation, is not
+a derivative work of the Library, and therefore falls outside the scope of
+this License.
+
+However, linking a "work that uses the Library" with the Library creates an
+executable that is a derivative of the Library (because it contains portions
+of the Library), rather than a "work that uses the library". The executable
+is therefore covered by this License. Section 6 states terms for distribution
+of such executables.
+
+When a "work that uses the Library" uses material from a header file that
+is part of the Library, the object code for the work may be a derivative work
+of the Library even though the source code is not. Whether this is true is
+especially significant if the work can be linked without the Library, or if
+the work is itself a library. The threshold for this to be true is not precisely
+defined by law.
+
+If such an object file uses only numerical parameters, data structure layouts
+and accessors, and small macros and small inline functions (ten lines or less
+in length), then the use of the object file is unrestricted, regardless of
+whether it is legally a derivative work. (Executables containing this object
+code plus portions of the Library will still fall under Section 6.)
+
+Otherwise, if the work is a derivative of the Library, you may distribute
+the object code for the work under the terms of Section 6. Any executables
+containing that work also fall under Section 6, whether or not they are linked
+directly with the Library itself.
+
+6. As an exception to the Sections above, you may also combine or link a "work
+that uses the Library" with the Library to produce a work containing portions
+of the Library, and distribute that work under terms of your choice, provided
+that the terms permit modification of the work for the customer's own use
+and reverse engineering for debugging such modifications.
+
+You must give prominent notice with each copy of the work that the Library
+is used in it and that the Library and its use are covered by this License.
+You must supply a copy of this License. If the work during execution displays
+copyright notices, you must include the copyright notice for the Library among
+them, as well as a reference directing the user to the copy of this License.
+Also, you must do one of these things:
+
+a) Accompany the work with the complete corresponding machine-readable source
+code for the Library including whatever changes were used in the work (which
+must be distributed under Sections 1 and 2 above); and, if the work is an
+executable linked with the Library, with the complete machine-readable "work
+that uses the Library", as object code and/or source code, so that the user
+can modify the Library and then relink to produce a modified executable containing
+the modified Library. (It is understood that the user who changes the contents
+of definitions files in the Library will not necessarily be able to recompile
+the application to use the modified definitions.)
+
+b) Use a suitable shared library mechanism for linking with the Library. A
+suitable mechanism is one that (1) uses at run time a copy of the library
+already present on the user's computer system, rather than copying library
+functions into the executable, and (2) will operate properly with a modified
+version of the library, if the user installs one, as long as the modified
+version is interface-compatible with the version that the work was made with.
+
+c) Accompany the work with a written offer, valid for at least three years,
+to give the same user the materials specified in Subsection 6a, above, for
+a charge no more than the cost of performing this distribution.
+
+d) If distribution of the work is made by offering access to copy from a designated
+place, offer equivalent access to copy the above specified materials from
+the same place.
+
+e) Verify that the user has already received a copy of these materials or
+that you have already sent this user a copy.
+
+For an executable, the required form of the "work that uses the Library" must
+include any data and utility programs needed for reproducing the executable
+from it. However, as a special exception, the materials to be distributed
+need not include anything that is normally distributed (in either source or
+binary form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component itself
+accompanies the executable.
+
+It may happen that this requirement contradicts the license restrictions of
+other proprietary libraries that do not normally accompany the operating system.
+Such a contradiction means you cannot use both them and the Library together
+in an executable that you distribute.
+
+7. You may place library facilities that are a work based on the Library side-by-side
+in a single library together with other library facilities not covered by
+this License, and distribute such a combined library, provided that the separate
+distribution of the work based on the Library and of the other library facilities
+is otherwise permitted, and provided that you do these two things:
+
+a) Accompany the combined library with a copy of the same work based on the
+Library, uncombined with any other library facilities. This must be distributed
+under the terms of the Sections above.
+
+b) Give prominent notice with the combined library of the fact that part of
+it is a work based on the Library, and explaining where to find the accompanying
+uncombined form of the same work.
+
+8. You may not copy, modify, sublicense, link with, or distribute the Library
+except as expressly provided under this License. Any attempt otherwise to
+copy, modify, sublicense, link with, or distribute the Library is void, and
+will automatically terminate your rights under this License. However, parties
+who have received copies, or rights, from you under this License will not
+have their licenses terminated so long as such parties remain in full compliance.
+
+9. You are not required to accept this License, since you have not signed
+it. However, nothing else grants you permission to modify or distribute the
+Library or its derivative works. These actions are prohibited by law if you
+do not accept this License. Therefore, by modifying or distributing the Library
+(or any work based on the Library), you indicate your acceptance of this License
+to do so, and all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+10. Each time you redistribute the Library (or any work based on the Library),
+the recipient automatically receives a license from the original licensor
+to copy, distribute, link with or modify the Library subject to these terms
+and conditions. You may not impose any further restrictions on the recipients'
+exercise of the rights granted herein. You are not responsible for enforcing
+compliance by third parties with this License.
+
+11. If, as a consequence of a court judgment or allegation of patent infringement
+or for any other reason (not limited to patent issues), conditions are imposed
+on you (whether by court order, agreement or otherwise) that contradict the
+conditions of this License, they do not excuse you from the conditions of
+this License. If you cannot distribute so as to satisfy simultaneously your
+obligations under this License and any other pertinent obligations, then as
+a consequence you may not distribute the Library at all. For example, if a
+patent license would not permit royalty-free redistribution of the Library
+by all those who receive copies directly or indirectly through you, then the
+only way you could satisfy both it and this License would be to refrain entirely
+from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents
+or other property right claims or to contest validity of any such claims;
+this section has the sole purpose of protecting the integrity of the free
+software distribution system which is implemented by public license practices.
+Many people have made generous contributions to the wide range of software
+distributed through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing to
+distribute software through any other system and a licensee cannot impose
+that choice.
+
+This section is intended to make thoroughly clear what is believed to be a
+consequence of the rest of this License.
+
+12. If the distribution and/or use of the Library is restricted in certain
+countries either by patents or by copyrighted interfaces, the original copyright
+holder who places the Library under this License may add an explicit geographical
+distribution limitation excluding those countries, so that distribution is
+permitted only in or among countries not thus excluded. In such case, this
+License incorporates the limitation as if written in the body of this License.
+
+13. The Free Software Foundation may publish revised and/or new versions of
+the Lesser General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to address
+new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library specifies
+a version number of this License which applies to it and "any later version",
+you have the option of following the terms and conditions either of that version
+or of any later version published by the Free Software Foundation. If the
+Library does not specify a license version number, you may choose any version
+ever published by the Free Software Foundation.
+
+14. If you wish to incorporate parts of the Library into other free programs
+whose distribution conditions are incompatible with these, write to the author
+to ask for permission. For software which is copyrighted by the Free Software
+Foundation, write to the Free Software Foundation; we sometimes make exceptions
+for this. Our decision will be guided by the two goals of preserving the free
+status of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+   NO WARRANTY
+
+15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
+THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
+STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY
+"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
+OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
+THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
+OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
+OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
+OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH
+HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Libraries
+
+If you develop a new library, and you want it to be of the greatest possible
+use to the public, we recommend making it free software that everyone can
+redistribute and change. You can do so by permitting redistribution under
+these terms (or, alternatively, under the terms of the ordinary General Public
+License).
+
+To apply these terms, attach the following notices to the library. It is safest
+to attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the "copyright"
+line and a pointer to where the full notice is found.
+
+<one line to give the library's name and an idea of what it does.>
+
+Copyright (C) <year> <name of author>
+
+This library is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 2.1 of the License, or (at your option)
+any later version.
+
+This library 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 Lesser General Public License for more
+details.
+
+You should have received a copy of the GNU Lesser General Public License along
+with this library; if not, write to the Free Software Foundation, Inc., 51
+Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your school,
+if any, to sign a "copyright disclaimer" for the library, if necessary. Here
+is a sample; alter the names:
+
+Yoyodyne, Inc., hereby disclaims all copyright interest in
+
+the library `Frob' (a library for tweaking knobs) written
+
+by James Random Hacker.
+
+< signature of Ty Coon > , 1 April 1990
+
+Ty Coon, President of Vice
+
+That's all there is to it!
-- 
2.25.0


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

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

* [PATCH v3 5/7] include: add SPDX LGPL-2.1-or-later license tags where applicable
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (3 preceding siblings ...)
  2020-02-13 12:12   ` [PATCH v3 4/7] LICENSES: add LGPL-2.1-or-later Roland Hieber
@ 2020-02-13 12:12   ` Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 6/7] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
                     ` (2 subsequent siblings)
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Ahmad Fatoum, Roland Hieber

From: Roland Hieber <rohieb@rohieb.name>

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/fnmatch.h | 17 ++---------------
 include/glob.h    | 17 ++---------------
 2 files changed, 4 insertions(+), 30 deletions(-)

diff --git a/include/fnmatch.h b/include/fnmatch.h
index c0fd6a920710..c13beb9011fb 100644
--- a/include/fnmatch.h
+++ b/include/fnmatch.h
@@ -1,20 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /* Copyright (C) 1991,92,93,96,97,98,99,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+*/
 
 #ifndef	_FNMATCH_H
 #define	_FNMATCH_H	1
diff --git a/include/glob.h b/include/glob.h
index 777815251312..5f532e6652c3 100644
--- a/include/glob.h
+++ b/include/glob.h
@@ -1,20 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /* Copyright (C) 1991,92,95,96,97,98,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+*/
 
 #ifndef	_GLOB_H
 #define	_GLOB_H	1
-- 
2.25.0


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

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

* [PATCH v3 6/7] include: spi: add SPDX GPL-2.0-or-later license tags where applicable
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (4 preceding siblings ...)
  2020-02-13 12:12   ` [PATCH v3 5/7] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
@ 2020-02-13 12:12   ` Roland Hieber
  2020-02-13 12:12   ` [PATCH v3 7/7] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
  2020-02-17  9:09   ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Sascha Hauer
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Ahmad Fatoum, Roland Hieber

From: Roland Hieber <rohieb@rohieb.name>

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/spi/spi_gpio.h | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/include/spi/spi_gpio.h b/include/spi/spi_gpio.h
index 841c934f6ead..a18b7dbe078a 100644
--- a/include/spi/spi_gpio.h
+++ b/include/spi/spi_gpio.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * SPI master driver using generic bitbanged GPIO
  *
@@ -5,16 +6,6 @@
  *
  * Based on Linux driver
  *   Copyright (C) 2006,2008 David Brownell
- *
- * 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.
  */
 
 #ifndef __SPI_GPIO_H
-- 
2.25.0


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

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

* [PATCH v3 7/7] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (5 preceding siblings ...)
  2020-02-13 12:12   ` [PATCH v3 6/7] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
@ 2020-02-13 12:12   ` Roland Hieber
  2020-02-17  9:09   ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Sascha Hauer
  7 siblings, 0 replies; 41+ messages in thread
From: Roland Hieber @ 2020-02-13 12:12 UTC (permalink / raw)
  To: Barebox Mailing List; +Cc: Ahmad Fatoum, Roland Hieber

From: Roland Hieber <rohieb@rohieb.name>

According to our /README, GPL-2.0-only applies for the whole project
except noted otherwise.

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/spi/eeprom.h  | 1 +
 include/spi/flash.h   | 1 +
 include/spi/imx-spi.h | 1 +
 include/spi/spi.h     | 1 +
 4 files changed, 4 insertions(+)

diff --git a/include/spi/eeprom.h b/include/spi/eeprom.h
index 15495e59f5d6..410ecea19c16 100644
--- a/include/spi/eeprom.h
+++ b/include/spi/eeprom.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _SPI_EEPROM_H
 #define _SPI_EEPROM_H
 
diff --git a/include/spi/flash.h b/include/spi/flash.h
index c1204e7e61a0..796d649d9a92 100644
--- a/include/spi/flash.h
+++ b/include/spi/flash.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef LINUX_SPI_FLASH_H
 #define LINUX_SPI_FLASH_H
 
diff --git a/include/spi/imx-spi.h b/include/spi/imx-spi.h
index a592573e6265..568795188c0c 100644
--- a/include/spi/imx-spi.h
+++ b/include/spi/imx-spi.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __SPI_IMX_SPI_H
 #define __SPI_IMX_SPI_H
 
diff --git a/include/spi/spi.h b/include/spi/spi.h
index bdcda0bb603c..48a90bcca749 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __INCLUDE_SPI_H
 #define __INCLUDE_SPI_H
 
-- 
2.25.0


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

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

* Re: [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup
  2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
                     ` (6 preceding siblings ...)
  2020-02-13 12:12   ` [PATCH v3 7/7] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
@ 2020-02-17  9:09   ` Sascha Hauer
  7 siblings, 0 replies; 41+ messages in thread
From: Sascha Hauer @ 2020-02-17  9:09 UTC (permalink / raw)
  To: Roland Hieber; +Cc: Barebox Mailing List

On Thu, Feb 13, 2020 at 01:12:47PM +0100, Roland Hieber wrote:
> Changes v2 -> v3:
>  * Address feedback from Ahmad Fatoum: add LGPL-2.1 to LICENSES/, fix
>    GPL license identifier in include/xymodem.h (and move that change
>    between commits accordingly), bring back a lost CREDITS line (will
>    get fixed in a later patch).
>    git range diff master rhi/spdx-cleanup-v2 rhi/spdx-cleanup-v3:

Applied, thanks

Sascha

-- 
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] 41+ messages in thread

end of thread, other threads:[~2020-02-17  9:09 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07 22:39 [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
2019-02-07 22:39 ` [PATCH 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
2019-02-07 22:39 ` [PATCH 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
2019-02-07 22:39 ` [PATCH 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
2019-02-07 22:39 ` [PATCH 5/6] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
2019-02-07 22:39 ` [PATCH 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
2019-02-08  5:48 ` [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable Oleksij Rempel
2019-02-08  8:59   ` Roland Hieber
2019-02-08  9:09     ` Ahmad Fatoum
2019-02-11 10:25       ` Roland Hieber
2019-02-15  8:57         ` Ahmad Fatoum
2019-02-15 11:18           ` Roland Hieber
2019-02-22 13:25             ` Roland Hieber
2019-02-11 11:06     ` Roland Hieber
2019-03-10 20:42   ` Roland Hieber
2019-03-10 21:06     ` Sam Ravnborg
2019-03-13  9:42       ` Roland Hieber
2020-02-02 15:42 ` [PATCH v2 0/6] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
2020-02-02 15:42   ` [PATCH v2 1/6] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
2020-02-03  7:42     ` Ahmad Fatoum
2020-02-02 15:42   ` [PATCH v2 2/6] include: add SPDX GPL-2.0-or-later " Roland Hieber
2020-02-03  7:45     ` Ahmad Fatoum
2020-02-03 18:46       ` Roland Hieber
2020-02-02 15:42   ` [PATCH v2 3/6] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
2020-02-03  7:47     ` Ahmad Fatoum
2020-02-02 15:42   ` [PATCH v2 4/6] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
2020-02-03  7:49     ` Ahmad Fatoum
2020-02-03 18:48       ` Roland Hieber
2020-02-02 15:43   ` [PATCH v2 5/6] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
2020-02-03  7:50     ` Ahmad Fatoum
2020-02-02 15:43   ` [PATCH v2 6/6] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
2020-02-03  7:51     ` Ahmad Fatoum
2020-02-13 12:12 ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Roland Hieber
2020-02-13 12:12   ` [PATCH v3 1/7] include: add SPDX GPL-2.0-only license tags where applicable Roland Hieber
2020-02-13 12:12   ` [PATCH v3 2/7] include: add SPDX GPL-2.0-or-later " Roland Hieber
2020-02-13 12:12   ` [PATCH v3 3/7] include: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
2020-02-13 12:12   ` [PATCH v3 4/7] LICENSES: add LGPL-2.1-or-later Roland Hieber
2020-02-13 12:12   ` [PATCH v3 5/7] include: add SPDX LGPL-2.1-or-later license tags where applicable Roland Hieber
2020-02-13 12:12   ` [PATCH v3 6/7] include: spi: add SPDX GPL-2.0-or-later " Roland Hieber
2020-02-13 12:12   ` [PATCH v3 7/7] include: spi: add SPDX GPL-2.0-only license tags for files without licensing information Roland Hieber
2020-02-17  9:09   ` [PATCH v3 0/7] SPDX license tags and (L)GPL boilerplate cleanup Sascha Hauer

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