]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: symlink top level .checkpatch.conf
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Fri, 13 Jan 2023 13:50:50 +0000 (08:50 -0500)
committerSimon Glass <sjg@chromium.org>
Wed, 18 Jan 2023 21:55:41 +0000 (14:55 -0700)
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@savoirfairelinux.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
.gitignore
tools/patman/.checkpatch.conf [new symlink]

index eb769f144c3d3a19e772db238b5d152363748742..3adf1faf4e71633c64c35082f1fefc4aaa832fe7 100644 (file)
@@ -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 (symlink)
index 0000000..c0e2020
--- /dev/null
@@ -0,0 +1 @@
+../../.checkpatch.conf
\ No newline at end of file