]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Handle the MAINTAINERS 'N' tag
authorSimon Glass <sjg@chromium.org>
Tue, 11 Oct 2022 14:15:37 +0000 (08:15 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2022 12:54:42 +0000 (08:54 -0400)
This is needed for some soon-to-be-applied patches. Scan the configs/
directory to see if any of the files match.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Rini <trini@konsulko.com>
Suggested-by: Tom Rini <trini@konsulko.com>
tools/buildman/boards.py

index cdc4d9ffd271492ad0860ce35e3c17008b85ff3f..0bb0723b18eb37dc96e5e8c4b31dd9866cd962a0 100644 (file)
@@ -368,6 +368,17 @@ class MaintainersDatabase:
                                 targets.append(front)
                 elif tag == 'S:':
                     status = rest
+                elif tag == 'N:':
+                    # Just scan the configs directory since that's all we care
+                    # about
+                    for dirpath, _, fnames in os.walk('configs'):
+                        for fname in fnames:
+                            path = os.path.join(dirpath, fname)
+                            front, match, rear = path.partition('configs/')
+                            if not front and match:
+                                front, match, rear = rear.rpartition('_defconfig')
+                                if match and not rear:
+                                    targets.append(front)
                 elif line == '\n':
                     for target in targets:
                         self.database[target] = (status, maintainers)