aboutsummaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2022-06-26 23:10:08 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-07-23 13:16:09 +0000
commitc3d3487d6147e38433630761bbf9539d4cc13aab (patch)
tree9054ba348cee8edddb9ebe7bfaf4578490fb89b8 /src/target
parent4db9add47f282c264c512fb76e43c6707f72ab2b (diff)
downloadriscv-openocd-c3d3487d6147e38433630761bbf9539d4cc13aab.zip
riscv-openocd-c3d3487d6147e38433630761bbf9539d4cc13aab.tar.gz
riscv-openocd-c3d3487d6147e38433630761bbf9539d4cc13aab.tar.bz2
openocd: src: fix incorrect SPDX tags
The SPDX tag is aimed at machine handling and it's thus expected to be placed in the first line in specific format. Move the SPDX tag to the first line and fix it where needed. 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: Ie9a05f530009d482a4116eebd147fd7e1ee3d41e Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7066 Tested-by: jenkins
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arc.c4
-rw-r--r--src/target/arc.h4
-rw-r--r--src/target/arc_cmd.c4
-rw-r--r--src/target/arc_cmd.h4
-rw-r--r--src/target/arc_jtag.c4
-rw-r--r--src/target/arc_jtag.h4
-rw-r--r--src/target/arc_mem.c4
-rw-r--r--src/target/arc_mem.h4
-rw-r--r--src/target/mips64.c4
-rw-r--r--src/target/mips64_pracc.c4
-rw-r--r--src/target/mips_mips64.c4
11 files changed, 22 insertions, 22 deletions
diff --git a/src/target/arc.c b/src/target/arc.c
index 471f16a..63de3f9 100644
--- a/src/target/arc.c
+++ b/src/target/arc.c
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2015,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Mischa Jonker <mischa.jonker@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
diff --git a/src/target/arc.h b/src/target/arc.h
index f0351bd..86d8d09 100644
--- a/src/target/arc.h
+++ b/src/target/arc.h
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2015,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Mischa Jonker <mischa.jonker@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
#ifndef OPENOCD_TARGET_ARC_H
diff --git a/src/target/arc_cmd.c b/src/target/arc_cmd.c
index 26c67c6..8c859f2 100644
--- a/src/target/arc_cmd.c
+++ b/src/target/arc_cmd.c
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2015,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Mischa Jonker <mischa.jonker@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
#ifdef HAVE_CONFIG_H
diff --git a/src/target/arc_cmd.h b/src/target/arc_cmd.h
index b2264eb..f728bd5 100644
--- a/src/target/arc_cmd.h
+++ b/src/target/arc_cmd.h
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2014,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Mischa Jonker <mischa.jonker@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
#ifndef OPENOCD_TARGET_ARC_CMD_H
diff --git a/src/target/arc_jtag.c b/src/target/arc_jtag.c
index ca1a096..d949aaa 100644
--- a/src/target/arc_jtag.c
+++ b/src/target/arc_jtag.c
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2014,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Mischa Jonker <mischa.jonker@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
#ifdef HAVE_CONFIG_H
diff --git a/src/target/arc_jtag.h b/src/target/arc_jtag.h
index 99795f5..c2dc7b7 100644
--- a/src/target/arc_jtag.h
+++ b/src/target/arc_jtag.h
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2014,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Mischa Jonker <mischa.jonker@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
#ifndef OPENOCD_TARGET_ARC_JTAG_H
diff --git a/src/target/arc_mem.c b/src/target/arc_mem.c
index 81d1ab2..0dc3f68 100644
--- a/src/target/arc_mem.c
+++ b/src/target/arc_mem.c
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2014,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Mischa Jonker <mischa.jonker@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
#ifdef HAVE_CONFIG_H
diff --git a/src/target/arc_mem.h b/src/target/arc_mem.h
index 06e1c88..861823d 100644
--- a/src/target/arc_mem.h
+++ b/src/target/arc_mem.h
@@ -1,10 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2013-2014,2019-2020 Synopsys, Inc. *
* Frank Dols <frank.dols@synopsys.com> *
* Anton Kolesov <anton.kolesov@synopsys.com> *
* Evgeniy Didin <didin@synopsys.com> *
- * *
- * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/
#ifndef OPENOCD_TARGET_ARC_MEM_H
diff --git a/src/target/mips64.c b/src/target/mips64.c
index 347cdfc..f9f54c2 100644
--- a/src/target/mips64.c
+++ b/src/target/mips64.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/*
* Support for processors implementing MIPS64 instruction set
*
@@ -10,8 +12,6 @@
* Copyright (C) 2008 by Spencer Oliver
* Copyright (C) 2008 by David T.L. Wong
* Copyright (C) 2010 by Konstantin Kostyukhin, Nikolay Shmyrev
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifdef HAVE_CONFIG_H
diff --git a/src/target/mips64_pracc.c b/src/target/mips64_pracc.c
index 81a4cfb..ee0d74d 100644
--- a/src/target/mips64_pracc.c
+++ b/src/target/mips64_pracc.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/*
* Support for processors implementing MIPS64 instruction set
*
@@ -9,8 +11,6 @@
* Copyright (C) 2008 by Spencer Oliver
* Copyright (C) 2008 by David T.L. Wong
* Copyright (C) 2010 by Konstantin Kostyukhin, Nikolay Shmyrev
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifdef HAVE_CONFIG_H
diff --git a/src/target/mips_mips64.c b/src/target/mips_mips64.c
index 5d821d7..449f5a2 100644
--- a/src/target/mips_mips64.c
+++ b/src/target/mips_mips64.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/*
* MIPS64 generic target support
*
@@ -8,8 +10,6 @@
* Based on the work of:
* Copyright (C) 2008 by Spencer Oliver
* Copyright (C) 2008 by David T.L. Wong
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifdef HAVE_CONFIG_H