aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2022-06-26 11:07:45 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-07-23 13:13:39 +0000
commitdb0d4dbc3f1edbaae0057ff356f501b2aa31f69d (patch)
tree617106743e309a47869707c24ac397e0249f09de /src
parentdba88e0238716f2fe0ff861d493cbace88a6bec3 (diff)
downloadriscv-openocd-db0d4dbc3f1edbaae0057ff356f501b2aa31f69d.zip
riscv-openocd-db0d4dbc3f1edbaae0057ff356f501b2aa31f69d.tar.gz
riscv-openocd-db0d4dbc3f1edbaae0057ff356f501b2aa31f69d.tar.bz2
openocd: src: add GPL license tag on files that miss it
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
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/fm4.c2
-rw-r--r--src/jtag/drivers/cmsis_dap.h2
-rw-r--r--src/rtos/linux_header.h2
-rw-r--r--src/target/openrisc/jsp_server.h2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/flash/nor/fm4.c b/src/flash/nor/fm4.c
index 09865d2..2881f12 100644
--- a/src/flash/nor/fm4.c
+++ b/src/flash/nor/fm4.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/*
* Spansion FM4 flash
*
diff --git a/src/jtag/drivers/cmsis_dap.h b/src/jtag/drivers/cmsis_dap.h
index 7c64d49..cf929b0 100644
--- a/src/jtag/drivers/cmsis_dap.h
+++ b/src/jtag/drivers/cmsis_dap.h
@@ -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
diff --git a/src/rtos/linux_header.h b/src/rtos/linux_header.h
index a2b408e..7919964 100644
--- a/src/rtos/linux_header.h
+++ b/src/rtos/linux_header.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifndef OPENOCD_RTOS_LINUX_HEADER_H
#define OPENOCD_RTOS_LINUX_HEADER_H
diff --git a/src/target/openrisc/jsp_server.h b/src/target/openrisc/jsp_server.h
index e5cfaa8..a522fa8 100644
--- a/src/target/openrisc/jsp_server.h
+++ b/src/target/openrisc/jsp_server.h
@@ -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