patman: Look for checkpatch in the scripts directory
authorDoug Anderson <dianders@chromium.org>
Mon, 26 Nov 2012 15:23:23 +0000 (15:23 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 31 Jan 2013 23:23:39 +0000 (15:23 -0800)
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>
tools/patman/checkpatch.py

index d831087d88b39706b6afee2e70d79ecc8fe434ca..f72f8ee261e0de410622ec859d511d9b9846a637 100644 (file)
@@ -26,10 +26,12 @@ import re
 import terminal
 
 def FindCheckPatch():
+    top_level = gitutil.GetTopLevel()
     try_list = [
         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'),
         ]
     # Look in current dir