From: Doug Anderson Date: Mon, 26 Nov 2012 15:23:23 +0000 (+0000) Subject: patman: Look for checkpatch in the scripts directory X-Git-Tag: v2013.04-rc1~62^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d96ef37df78eac5c636866d8f226991a5d96e6bb;p=kernel%2Fu-boot.git 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 Acked-by: Simon Glass --- diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py index d831087..f72f8ee 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