diff options
author | Doug Anderson <dianders@chromium.org> | 2012-11-26 19:23:23 +0400 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2013-02-01 03:23:39 +0400 |
commit | d96ef37df78eac5c636866d8f226991a5d96e6bb (patch) | |
tree | 1e55b02fcfab4fc15339ee3b5ead78b9d35be966 /tools | |
parent | a970048e755768e7d7d10c6b209999133ef75814 (diff) | |
download | u-boot-d96ef37df78eac5c636866d8f226991a5d96e6bb.tar.xz |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/patman/checkpatch.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py index d831087d88..f72f8ee261 100644 --- a/tools/patman/checkpatch.py +++ b/tools/patman/checkpatch.py @@ -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 |