Skip to content

Commit c8c9121

Browse files
committed
checkpatch: fix path of documentation
In OpenOCD documentation is in folder "doc". Fix search path of 'checkpatch.rst'. This file is used to provide verbose explanation of failing checks while using command line flag '-v'. Change-Id: Id864369d371cbd5a24e76bf90c54ff03159051c3 Signed-off-by: Antonio Borneo <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/7022 Tested-by: jenkins
1 parent 01cf43a commit c8c9121

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/scripts/checkpatch.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@
7878
my $codespellfile = "/usr/share/codespell/dictionary.txt";
7979
my $user_codespellfile = "";
8080
my $conststructsfile = "$D/const_structs.checkpatch";
81+
if (!$OpenOCD) {
8182
my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst";
83+
} # !$OpenOCD
84+
# OpenOCD Specific: Begin
85+
my $docsfile = "$D/../../doc/checkpatch.rst";
86+
# OpenOCD Specific: End
8287
my $typedefsfile;
8388
my $color = "auto";
8489
my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE

0 commit comments

Comments
 (0)