checkpatch: check SPDX in Makefile

The firmware in contrib folder use Makefile for the build.
Force checkpatch to check these Makefile for the SPDX.

Change-Id: I815bf6df636c96a15f82c3d8a9de0c4f219303d2
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8520
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2024-10-08 00:37:48 +02:00
parent edf2c82cf6
commit bcf63ac562
1 changed files with 1 additions and 1 deletions

View File

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