This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7160

-- gerrit

commit 5b536e75fba48a3bbd725ad2f56c7b10a6e50aeb
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Wed Aug 31 00:20:16 2022 +0200

    contrib: 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: I24bd362eeb6b74f09aceb9b757d45cbfa4afe334
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/contrib/60-openocd.rules b/contrib/60-openocd.rules
index 43821c2681..bb6f478a1e 100644
--- a/contrib/60-openocd.rules
+++ b/contrib/60-openocd.rules
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Copy this file to /etc/udev/rules.d/
 # If rules fail to reload automatically, you can refresh udev rules
 # with the command "udevadm control --reload"
diff --git a/contrib/buildroot/openocd_be_defconfig 
b/contrib/buildroot/openocd_be_defconfig
index 9752da50ea..2fe28f6478 100644
--- a/contrib/buildroot/openocd_be_defconfig
+++ b/contrib/buildroot/openocd_be_defconfig
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BR2_armeb=y
 BR2_cortex_a7=y
 BR2_TOOLCHAIN_EXTERNAL=y
diff --git a/contrib/cross-build.sh b/contrib/cross-build.sh
index 9328c3ab64..b199bf7157 100755
--- a/contrib/cross-build.sh
+++ b/contrib/cross-build.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # This is an example of how to do a cross-build of OpenOCD using pkg-config.
 # Cross-building with pkg-config is deceptively hard and most guides and
diff --git a/contrib/gen-stellaris-part-header.pl 
b/contrib/gen-stellaris-part-header.pl
index 68f2889b31..3f982f4ab0 100755
--- a/contrib/gen-stellaris-part-header.pl
+++ b/contrib/gen-stellaris-part-header.pl
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Automatically generates the StellarisParts struct in 
src/flash/nor/stellaris.c
 # Uses the header files from TI/Luminary's StellarisWare complete Firmware 
Development Package
 # available from: http://www.luminarymicro.com/products/software_updates.html
diff --git a/contrib/loaders/Makefile b/contrib/loaders/Makefile
index 0a637aff59..ae6a5ebad7 100644
--- a/contrib/loaders/Makefile
+++ b/contrib/loaders/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 .PHONY: arm clean-arm
 
 all: arm stm8
diff --git a/contrib/loaders/checksum/Makefile 
b/contrib/loaders/checksum/Makefile
index 623e42576e..5789a0824e 100644
--- a/contrib/loaders/checksum/Makefile
+++ b/contrib/loaders/checksum/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../src/helper/bin2char.sh
 
 ARM_CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/debug/xscale/Makefile 
b/contrib/loaders/debug/xscale/Makefile
index a0455c7331..cdecd144bd 100644
--- a/contrib/loaders/debug/xscale/Makefile
+++ b/contrib/loaders/debug/xscale/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/debug/xscale/debug_handler.ld 
b/contrib/loaders/debug/xscale/debug_handler.ld
index d943b13b3e..0e46cb13fb 100644
--- a/contrib/loaders/debug/xscale/debug_handler.ld
+++ b/contrib/loaders/debug/xscale/debug_handler.ld
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /* identify the Entry Point  */
 ENTRY(reset_handler)
 
diff --git a/contrib/loaders/erase_check/Makefile 
b/contrib/loaders/erase_check/Makefile
index 1a0fd9e3f5..d49c049c4d 100644
--- a/contrib/loaders/erase_check/Makefile
+++ b/contrib/loaders/erase_check/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../src/helper/bin2char.sh
 
 ARM_CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/at91sam7x/at91sam7x_ocl_flash.script 
b/contrib/loaders/flash/at91sam7x/at91sam7x_ocl_flash.script
index 85450c14c0..1099d83de9 100644
--- a/contrib/loaders/flash/at91sam7x/at91sam7x_ocl_flash.script
+++ b/contrib/loaders/flash/at91sam7x/at91sam7x_ocl_flash.script
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 soft_reset_halt
 load_image at91sam7x_ocl.bin 0x200000
 resume 0x200000
diff --git a/contrib/loaders/flash/at91sam7x/makefile 
b/contrib/loaders/flash/at91sam7x/makefile
index 39482976ec..3d101c1a0e 100644
--- a/contrib/loaders/flash/at91sam7x/makefile
+++ b/contrib/loaders/flash/at91sam7x/makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 
##############################################################################################
 # Start of default section
 #
diff --git a/contrib/loaders/flash/bluenrg-x/Makefile 
b/contrib/loaders/flash/bluenrg-x/Makefile
index 1a5cfc013f..81d479aa55 100644
--- a/contrib/loaders/flash/bluenrg-x/Makefile
+++ b/contrib/loaders/flash/bluenrg-x/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/bluenrg-x/bluenrg-x_write.c 
b/contrib/loaders/flash/bluenrg-x/bluenrg-x_write.c
index f09f7f58ab..f4e43cda1a 100644
--- a/contrib/loaders/flash/bluenrg-x/bluenrg-x_write.c
+++ b/contrib/loaders/flash/bluenrg-x/bluenrg-x_write.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /* To be built with arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m0 -O3 
bluenrgx.c */
 /* Then postprocess output of command "arm-none-eabi-objdump -d bluenrgx.o" to 
make a C array of bytes */
 
diff --git a/contrib/loaders/flash/cc3220sf/Makefile 
b/contrib/loaders/flash/cc3220sf/Makefile
index d1dcc25fda..1c745770f3 100644
--- a/contrib/loaders/flash/cc3220sf/Makefile
+++ b/contrib/loaders/flash/cc3220sf/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/fespi/Makefile 
b/contrib/loaders/flash/fespi/Makefile
index edecf0a729..d63b819f62 100644
--- a/contrib/loaders/flash/fespi/Makefile
+++ b/contrib/loaders/flash/fespi/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= riscv64-unknown-elf-
diff --git a/contrib/loaders/flash/fespi/riscv.lds 
b/contrib/loaders/flash/fespi/riscv.lds
index 77fe0e5582..7473128bf7 100644
--- a/contrib/loaders/flash/fespi/riscv.lds
+++ b/contrib/loaders/flash/fespi/riscv.lds
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 OUTPUT_ARCH( "riscv" )
 
 SECTIONS
diff --git a/contrib/loaders/flash/fespi/riscv_fespi.c 
b/contrib/loaders/flash/fespi/riscv_fespi.c
index b6164330d3..5323f92bfd 100644
--- a/contrib/loaders/flash/fespi/riscv_fespi.c
+++ b/contrib/loaders/flash/fespi/riscv_fespi.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
diff --git a/contrib/loaders/flash/fespi/riscv_wrapper.S 
b/contrib/loaders/flash/fespi/riscv_wrapper.S
index 4f632a76ec..4bc4fe6dd9 100644
--- a/contrib/loaders/flash/fespi/riscv_wrapper.S
+++ b/contrib/loaders/flash/fespi/riscv_wrapper.S
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 #if __riscv_xlen == 64
 # define LREG ld
 # define SREG sd
diff --git a/contrib/loaders/flash/fm4/Makefile 
b/contrib/loaders/flash/fm4/Makefile
index 207b9d0fa4..5e6593b46e 100644
--- a/contrib/loaders/flash/fm4/Makefile
+++ b/contrib/loaders/flash/fm4/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/fm4/erase.S 
b/contrib/loaders/flash/fm4/erase.S
index 6fdf81dc2a..666487d88c 100644
--- a/contrib/loaders/flash/fm4/erase.S
+++ b/contrib/loaders/flash/fm4/erase.S
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Spansion FM4 flash sector erase algorithm
  *
diff --git a/contrib/loaders/flash/fm4/fm4.h b/contrib/loaders/flash/fm4/fm4.h
index 603aac8762..76a4f3321b 100644
--- a/contrib/loaders/flash/fm4/fm4.h
+++ b/contrib/loaders/flash/fm4/fm4.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Spansion FM4 flash macros
  *
diff --git a/contrib/loaders/flash/fm4/write.S 
b/contrib/loaders/flash/fm4/write.S
index a8d01cde24..0819da7c3c 100644
--- a/contrib/loaders/flash/fm4/write.S
+++ b/contrib/loaders/flash/fm4/write.S
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Spansion FM4 flash write algorithm
  *
diff --git a/contrib/loaders/flash/gd32vf103/Makefile 
b/contrib/loaders/flash/gd32vf103/Makefile
index 2c34e08c08..812fd8acaf 100644
--- a/contrib/loaders/flash/gd32vf103/Makefile
+++ b/contrib/loaders/flash/gd32vf103/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= riscv-none-embed-
diff --git a/contrib/loaders/flash/kinetis/Makefile 
b/contrib/loaders/flash/kinetis/Makefile
index b240f53d44..d6c072bb4f 100644
--- a/contrib/loaders/flash/kinetis/Makefile
+++ b/contrib/loaders/flash/kinetis/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/kinetis_ke/Makefile 
b/contrib/loaders/flash/kinetis_ke/Makefile
index 7d8dba8c73..17cbf3298b 100644
--- a/contrib/loaders/flash/kinetis_ke/Makefile
+++ b/contrib/loaders/flash/kinetis_ke/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/max32xxx/Makefile 
b/contrib/loaders/flash/max32xxx/Makefile
index 8f3f9242e4..1565c811c1 100644
--- a/contrib/loaders/flash/max32xxx/Makefile
+++ b/contrib/loaders/flash/max32xxx/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/nrf5/Makefile 
b/contrib/loaders/flash/nrf5/Makefile
index 67390b9bdb..254ccd7da6 100644
--- a/contrib/loaders/flash/nrf5/Makefile
+++ b/contrib/loaders/flash/nrf5/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/sh_qspi/Makefile 
b/contrib/loaders/flash/sh_qspi/Makefile
index 2bfbad1b00..a7e0aea4ec 100644
--- a/contrib/loaders/flash/sh_qspi/Makefile
+++ b/contrib/loaders/flash/sh_qspi/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 CROSS_COMPILE=arm-linux-gnueabihf-
 BIN2C = ../../../../src/helper/bin2char.sh
 
diff --git a/contrib/loaders/flash/stm32/Makefile 
b/contrib/loaders/flash/stm32/Makefile
index cee282aa3e..5a97e7bb9c 100644
--- a/contrib/loaders/flash/stm32/Makefile
+++ b/contrib/loaders/flash/stm32/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/flash/stmqspi/Makefile 
b/contrib/loaders/flash/stmqspi/Makefile
index 810c7e87c1..b07d452a82 100644
--- a/contrib/loaders/flash/stmqspi/Makefile
+++ b/contrib/loaders/flash/stmqspi/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 SRCS=stmqspi_erase_check.S stmqspi_crc32.S stmqspi_read.S stmqspi_write.S \
diff --git a/contrib/loaders/flash/stmqspi/gpio_conf_stm32.pl 
b/contrib/loaders/flash/stmqspi/gpio_conf_stm32.pl
index b7538640ed..49b15c2022 100755
--- a/contrib/loaders/flash/stmqspi/gpio_conf_stm32.pl
+++ b/contrib/loaders/flash/stmqspi/gpio_conf_stm32.pl
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #
 # Helper for generating GPIO setup for STM32F0, F4, F7, H7, L0, L1, L4, L4+
 # and F1 (for 'stmqspi' and 'cmspi' drivers).
diff --git a/contrib/loaders/flash/xmc1xxx/Makefile 
b/contrib/loaders/flash/xmc1xxx/Makefile
index b97c602d03..0bda5b72ab 100644
--- a/contrib/loaders/flash/xmc1xxx/Makefile
+++ b/contrib/loaders/flash/xmc1xxx/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../../src/helper/bin2char.sh
 
 CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/loaders/watchdog/Makefile 
b/contrib/loaders/watchdog/Makefile
index ed6d8f4e55..2da9c32eca 100644
--- a/contrib/loaders/watchdog/Makefile
+++ b/contrib/loaders/watchdog/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 BIN2C = ../../../src/helper/bin2char.sh
 
 ARM_CROSS_COMPILE ?= arm-none-eabi-
diff --git a/contrib/rtos-helpers/FreeRTOS-openocd.c 
b/contrib/rtos-helpers/FreeRTOS-openocd.c
index 81a3ab77ab..45fc0ce10f 100644
--- a/contrib/rtos-helpers/FreeRTOS-openocd.c
+++ b/contrib/rtos-helpers/FreeRTOS-openocd.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Since at least FreeRTOS V7.5.3 uxTopUsedPriority is no longer
  * present in the kernel, so it has to be supplied by other means for
diff --git a/contrib/rtos-helpers/uCOS-III-openocd.c 
b/contrib/rtos-helpers/uCOS-III-openocd.c
index 5a37bd4c52..1e9cba4dc1 100644
--- a/contrib/rtos-helpers/uCOS-III-openocd.c
+++ b/contrib/rtos-helpers/uCOS-III-openocd.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * uC/OS-III does not provide a fixed layout for OS_TCB, which makes it
  * impossible to determine the appropriate offsets within the structure

-- 

Reply via email to