patman: Look for checkpatch in the scripts directory
PATCH 1/1 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 <[email protected]>
--- tools/patman/checkpatch.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
tools/patman/checkpatch.py +3 -1
@@ -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
Signature · 1 line
1.7.7.3
PATCH 1/1 patman: Look for checkpatch in the scripts directory
Quoted 5 lines · Doug Anderson
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 <[email protected]>
Acked-by Simon Glass <[email protected]>
Quoted 26 lines
--- tools/patman/checkpatch.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)tools/patman/checkpatch.py +3
-2@@ -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 --1.7.7.3
PATCH 1/1 patman: Look for checkpatch in the scripts directory
Quoted 8 lines · Simon Glass
Quoted 5 lines · Doug Anderson
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 <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot-x86, thanks.
Quoted 27 lines
Quoted 27 lines
--- tools/patman/checkpatch.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)tools/patman/checkpatch.py +3
-2@@ -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 --1.7.7.3