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 <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8475
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2024-09-02 11:02:19 +02:00
parent 96924dda01
commit 0261cd9958
1 changed files with 2 additions and 0 deletions

View File

@ -3730,6 +3730,8 @@ sub process {
# OpenOCD specific: Begin # OpenOCD specific: Begin
} elsif ($realfile =~ /\.(am|cfg|tcl)$/) { } elsif ($realfile =~ /\.(am|cfg|tcl)$/) {
$comment = '#'; $comment = '#';
} elsif ($realfile =~ /\.(ld)$/) {
$comment = '/*';
# OpenOCD specific: End # OpenOCD specific: End
} }