[PATCH 1/5] buildman: Handle the MAINTAINERS 'N' tag
Simon Glass
sjg at chromium.org
Mon Oct 10 22:00:28 CEST 2022
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 at chromium.org>
Suggested-by: Tom Rini <trini at konsulko.com>
---
tools/buildman/boards.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py
index cdc4d9ffd27..0bb0723b18e 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)
--
2.38.0.rc2.412.g84df46c1b4-goog
More information about the U-Boot
mailing list