[PATCH 2/2] patman: symlink top level .checkpatch.conf

Maxim Cournoyer maxim.cournoyer at gmail.com
Fri Jan 13 14:50:50 CET 2023


This makes it possible to run the patman test suite simply by invoking
'pytest' from the patman sub-directory:

  $ cd tools/patman
  $ pytest

Otherwise, the top level .checkpatch.conf would be ignored and
multiple test_checkpatch.py tests would fail.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer at savoirfairelinux.com>
---

 .gitignore                    | 1 +
 tools/patman/.checkpatch.conf | 1 +
 2 files changed, 2 insertions(+)
 create mode 120000 tools/patman/.checkpatch.conf

diff --git a/.gitignore b/.gitignore
index eb769f144c..3adf1faf4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
 # Normal rules (sorted alphabetically)
 #
 .*
+!.checkpatch.conf
 *.a
 *.asn1.[ch]
 *.bin
diff --git a/tools/patman/.checkpatch.conf b/tools/patman/.checkpatch.conf
new file mode 120000
index 0000000000..c0e2020afe
--- /dev/null
+++ b/tools/patman/.checkpatch.conf
@@ -0,0 +1 @@
+../../.checkpatch.conf
\ No newline at end of file
-- 
2.38.1



More information about the U-Boot mailing list