Skip to content

Commit

Permalink
checkpatch: check for SPDX in linker scripts
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8475
Tested-by: jenkins
  • Loading branch information
borneoa committed Sep 15, 2024
1 parent 96924dd commit 0261cd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3730,6 +3730,8 @@ sub process {
# OpenOCD specific: Begin
} elsif ($realfile =~ /\.(am|cfg|tcl)$/) {
$comment = '#';
} elsif ($realfile =~ /\.(ld)$/) {
$comment = '/*';
# OpenOCD specific: End
}

Expand Down

0 comments on commit 0261cd9

Please sign in to comment.