openocd: src: add GPL license tag on files that miss it
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 26 Jun 2022 09:07:45 +0000 (11:07 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 23 Jul 2022 13:13:39 +0000 (13:13 +0000)
Some file miss completely the license tag.

Add the SPDX tag, using the same GPL-2.0-or-later license of the
OpenOCD project.

The SPDX tag on files *.c is incorrect, as it should use the C99
single line comment using '//'. But current checkpatch doesn't
allow C99 comments, so keep using standard C comments, by now.

Change-Id: I1fb51e722232d14f050458a820c3041de3dc9138
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7058
Tested-by: jenkins
src/flash/nor/fm4.c
src/jtag/drivers/cmsis_dap.h
src/rtos/linux_header.h
src/target/openrisc/jsp_server.h

index 09865d2ab77ff16bcae0ae4e4845af23012d088d..2881f1201fb131df2c3e23218bd1f92ca152feeb 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Spansion FM4 flash
  *
index 7c64d492c8bd0f53616b9e5bd332bb211f7ff784..cf929b0693e168b12fef5fed67b74dacec775103 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 #ifndef OPENOCD_JTAG_DRIVERS_CMSIS_DAP_H
 #define OPENOCD_JTAG_DRIVERS_CMSIS_DAP_H
 
index a2b408efd0d1c3c0d276a043f5fe0903e15ee700..79199643c9c0ccf7d04655d4a35435f88c1852e2 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 #ifndef OPENOCD_RTOS_LINUX_HEADER_H
 #define OPENOCD_RTOS_LINUX_HEADER_H
 
index e5cfaa8b4695e4b2ee6167f8da3372d3100d094e..a522fa8da3732827279988f94b7719de4d337b65 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 #ifndef OPENOCD_TARGET_OPENRISC_JSP_SERVER_H
 #define OPENOCD_TARGET_OPENRISC_JSP_SERVER_H