Browse Source

patman: Look for checkpatch in the scripts directory

The Linux kernel stores checkpatch.pl in the scripts directory.  Add
that to the search path to make things more automatic for kernel
development.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
Doug Anderson 12 years ago
parent
commit
d96ef37df7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tools/patman/checkpatch.py

+ 3 - 1
tools/patman/checkpatch.py

@@ -26,10 +26,12 @@ import re
 import terminal
 import terminal
 
 
 def FindCheckPatch():
 def FindCheckPatch():
+    top_level = gitutil.GetTopLevel()
     try_list = [
     try_list = [
         os.getcwd(),
         os.getcwd(),
         os.path.join(os.getcwd(), '..', '..'),
         os.path.join(os.getcwd(), '..', '..'),
-        os.path.join(gitutil.GetTopLevel(), 'tools'),
+        os.path.join(top_level, 'tools'),
+        os.path.join(top_level, 'scripts'),
         '%s/bin' % os.getenv('HOME'),
         '%s/bin' % os.getenv('HOME'),
         ]
         ]
     # Look in current dir
     # Look in current dir