openocd: build: add SPDX tag

Add the SPDX tag to makefiles, configuration scripts and tcl files
present in the folders under src/

Change-Id: I1e4552aafe46ef4893d510da9d732c5f181784a4
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7051
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2022-06-25 18:19:46 +02:00
parent 5e96b012af
commit 96202cda19
30 changed files with 60 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# not a GNU package. You can remove this line, if # not a GNU package. You can remove this line, if
# have all needed files, that a GNU package needs # have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = gnu 1.6 AUTOMAKE_OPTIONS = gnu 1.6

View File

@ -1,4 +1,6 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Run the autotools bootstrap sequence to create the configure script # Run the autotools bootstrap sequence to create the configure script
# Abort execution on error # Abort execution on error

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
AC_PREREQ([2.69]) AC_PREREQ([2.69])
AC_INIT([openocd], [0.11.0+dev], AC_INIT([openocd], [0.11.0+dev],
[OpenOCD Mailing List <openocd-devel@lists.sourceforge.net>]) [OpenOCD Mailing List <openocd-devel@lists.sourceforge.net>])

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libopenocd.la noinst_LTLIBRARIES += %D%/libopenocd.la
bin_PROGRAMS += %D%/openocd bin_PROGRAMS += %D%/openocd

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libflash.la noinst_LTLIBRARIES += %D%/libflash.la
%C%_libflash_la_SOURCES = \ %C%_libflash_la_SOURCES = \
%D%/common.c %D%/common.h %D%/common.c %D%/common.h

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libocdflashnand.la noinst_LTLIBRARIES += %D%/libocdflashnand.la
%C%_libocdflashnand_la_SOURCES = \ %C%_libocdflashnand_la_SOURCES = \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libocdflashnor.la noinst_LTLIBRARIES += %D%/libocdflashnor.la
%C%_libocdflashnor_la_SOURCES = \ %C%_libocdflashnor_la_SOURCES = \
%D%/core.c \ %D%/core.c \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Defines basic Tcl procs for OpenOCD flash module # Defines basic Tcl procs for OpenOCD flash module
# #

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libhelper.la noinst_LTLIBRARIES += %D%/libhelper.la
%C%_libhelper_la_SOURCES = \ %C%_libhelper_la_SOURCES = \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Defines basic Tcl procs that must exist for OpenOCD scripts to work. # Defines basic Tcl procs that must exist for OpenOCD scripts to work.
# #
# Embedded into OpenOCD executable # Embedded into OpenOCD executable

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libjtag.la noinst_LTLIBRARIES += %D%/libjtag.la
%C%_libjtag_la_LIBADD = %C%_libjtag_la_LIBADD =

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libocdaice.la noinst_LTLIBRARIES += %D%/libocdaice.la
%C%_libocdaice_la_CPPFLAGS = -I$(top_srcdir)/src/jtag/drivers $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS) %C%_libocdaice_la_CPPFLAGS = -I$(top_srcdir)/src/jtag/drivers $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libocdjtagdrivers.la noinst_LTLIBRARIES += %D%/libocdjtagdrivers.la
%C%_libocdjtagdrivers_la_LIBADD = %C%_libocdjtagdrivers_la_LIBADD =

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libocdusbblaster.la noinst_LTLIBRARIES += %D%/libocdusbblaster.la
%C%_libocdusbblaster_la_SOURCES = $(USB_BLASTER_SRC) %C%_libocdusbblaster_la_SOURCES = $(USB_BLASTER_SRC)
%C%_libocdusbblaster_la_CPPFLAGS = -I$(top_srcdir)/src/jtag/drivers $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS) $(LIBFTDI_CFLAGS) %C%_libocdusbblaster_la_CPPFLAGS = -I$(top_srcdir)/src/jtag/drivers $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS) $(LIBFTDI_CFLAGS)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libocdhla.la noinst_LTLIBRARIES += %D%/libocdhla.la
%C%_libocdhla_la_SOURCES = \ %C%_libocdhla_la_SOURCES = \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Defines basic Tcl procs for OpenOCD JTAG module # Defines basic Tcl procs for OpenOCD JTAG module
# Executed during "init". Can be overridden # Executed during "init". Can be overridden

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libpld.la noinst_LTLIBRARIES += %D%/libpld.la
%C%_libpld_la_SOURCES = \ %C%_libpld_la_SOURCES = \
%D%/pld.c \ %D%/pld.c \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/librtos.la noinst_LTLIBRARIES += %D%/librtos.la
%C%_librtos_la_SOURCES = \ %C%_librtos_la_SOURCES = \
%D%/rtos.c \ %D%/rtos.c \

View File

@ -1,2 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/librtt.la noinst_LTLIBRARIES += %D%/librtt.la
%C%_librtt_la_SOURCES = %D%/rtt.c %D%/rtt.h %D%/tcl.c %C%_librtt_la_SOURCES = %D%/rtt.c %D%/rtt.h %D%/tcl.c

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libserver.la noinst_LTLIBRARIES += %D%/libserver.la
%C%_libserver_la_SOURCES = \ %C%_libserver_la_SOURCES = \
%D%/server.c \ %D%/server.c \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Defines basic Tcl procs for OpenOCD server modules # Defines basic Tcl procs for OpenOCD server modules
# Handle GDB 'R' packet. Can be overridden by configuration script, # Handle GDB 'R' packet. Can be overridden by configuration script,

View File

@ -1,2 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libsvf.la noinst_LTLIBRARIES += %D%/libsvf.la
%C%_libsvf_la_SOURCES = %D%/svf.c %D%/svf.h %C%_libsvf_la_SOURCES = %D%/svf.c %D%/svf.h

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
%C%_libtarget_la_LIBADD = %D%/openrisc/libopenrisc.la \ %C%_libtarget_la_LIBADD = %D%/openrisc/libopenrisc.la \
%D%/riscv/libriscv.la \ %D%/riscv/libriscv.la \
%D%/xtensa/libxtensa.la \ %D%/xtensa/libxtensa.la \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libespressif.la noinst_LTLIBRARIES += %D%/libespressif.la
%C%_libespressif_la_SOURCES = \ %C%_libespressif_la_SOURCES = \
%D%/esp_xtensa.c \ %D%/esp_xtensa.c \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libopenrisc.la noinst_LTLIBRARIES += %D%/libopenrisc.la
%C%_libopenrisc_la_SOURCES = \ %C%_libopenrisc_la_SOURCES = \
%D%/or1k.c \ %D%/or1k.c \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libriscv.la noinst_LTLIBRARIES += %D%/libriscv.la
%C%_libriscv_la_SOURCES = \ %C%_libriscv_la_SOURCES = \
%D%/asm.h \ %D%/asm.h \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Defines basic Tcl procs for OpenOCD target module # Defines basic Tcl procs for OpenOCD target module
proc new_target_name { } { proc new_target_name { } {

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libxtensa.la noinst_LTLIBRARIES += %D%/libxtensa.la
%C%_libxtensa_la_SOURCES = \ %C%_libxtensa_la_SOURCES = \
%D%/xtensa.c \ %D%/xtensa.c \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libtransport.la noinst_LTLIBRARIES += %D%/libtransport.la
%C%_libtransport_la_SOURCES = \ %C%_libtransport_la_SOURCES = \
%D%/transport.c \ %D%/transport.c \

View File

@ -1,2 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
noinst_LTLIBRARIES += %D%/libxsvf.la noinst_LTLIBRARIES += %D%/libxsvf.la
%C%_libxsvf_la_SOURCES = %D%/xsvf.c %D%/xsvf.h %C%_libxsvf_la_SOURCES = %D%/xsvf.c %D%/xsvf.h