From 0261cd995888e83f6099f0d94a5e9a96a47bc609 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Mon, 2 Sep 2024 11:02:19 +0200 Subject: [PATCH] checkpatch: check for SPDX in linker scripts Current script does not enforces the check for the SPDX tag in the linker scripts. Add the extension '.ld' in the OpenOCD specific part. Change-Id: I1cb6bc52e9dd86d99a26393085c7e2c9e8bac11f Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/8475 Tested-by: jenkins --- tools/scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index a2f89eac8..59a3eed12 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -3730,6 +3730,8 @@ sub process { # OpenOCD specific: Begin } elsif ($realfile =~ /\.(am|cfg|tcl)$/) { $comment = '#'; + } elsif ($realfile =~ /\.(ld)$/) { + $comment = '/*'; # OpenOCD specific: End }