diff options
author | Simon Glass <sjg@chromium.org> | 2022-10-11 17:15:37 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-31 15:54:42 +0300 |
commit | e8da1da82f1ea1842d6137cdbecef4dc79bb594c (patch) | |
tree | 7b0730e69841fe5136679a340527bc218d614b9e /tools | |
parent | 218e2c45af83f2cb7b1374b9023b4ced6eb0bb77 (diff) | |
download | u-boot-e8da1da82f1ea1842d6137cdbecef4dc79bb594c.tar.xz |
buildman: Handle the MAINTAINERS 'N' tag
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/buildman/boards.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index cdc4d9ffd2..0bb0723b18 100644 --- a/tools/buildman/boards.py +++ b/tools/buildman/boards.py @@ -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) |