]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
checkpatch: check SPDX in Makefile
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 7 Oct 2024 22:37:48 +0000 (00:37 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 20 Oct 2024 09:21:11 +0000 (09:21 +0000)
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
tools/scripts/checkpatch.pl

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