Skip to contentSkip to conversation

patman: Look for checkpatch in the scripts directory

PATCH New Doug Anderson 2 participants 3 messages Nov 27, 2012 – Jan 31, 2013

lore
Share & tools
lore
#0 lore raw

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.

---
 tools/patman/checkpatch.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
tools/patman/checkpatch.py +3 -1
index d831087..f72f8ee 100644
@@ -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
#1 lore raw

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.

Quoted 26 lines
---
 tools/patman/checkpatch.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
tools/patman/checkpatch.py +3 -2
index d831087..f72f8ee 100644
@@ -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

#2 lore raw

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.

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
index d831087..f72f8ee 100644
@@ -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