summaryrefslogtreecommitdiffstats
path: root/BaseTools/Scripts
diff options
context:
space:
mode:
authorLeif Lindholm <leif@nuviainc.com>2020-04-30 00:36:14 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-05-08 04:37:08 +0000
commitf355b986068a4d79caab6ec86471bcadf9a7ad47 (patch)
tree9e0ac9628e3f97f34d66bea4af5e01465ff7daae /BaseTools/Scripts
parent3a3713e62cfad00d78bb938b0d9fb1eedaeff314 (diff)
downloadedk2-f355b986068a4d79caab6ec86471bcadf9a7ad47.tar.gz
edk2-f355b986068a4d79caab6ec86471bcadf9a7ad47.tar.bz2
edk2-f355b986068a4d79caab6ec86471bcadf9a7ad47.zip
BaseTools: add handling for 'S:' flag to GetMaintainer.py
GetMaintainer.py already extracts the value of any S: tags for sections, but it doesn't do anything with that information. Print a warning message, with the status, for each matching section with a status explicitly set to anything other than 'Supported' or 'Maintained'. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Leif Lindholm <leif@nuviainc.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Scripts')
-rw-r--r--BaseTools/Scripts/GetMaintainer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Scripts/GetMaintainer.py b/BaseTools/Scripts/GetMaintainer.py
index fbc63522db..ed7bc7dc2b 100644
--- a/BaseTools/Scripts/GetMaintainer.py
+++ b/BaseTools/Scripts/GetMaintainer.py
@@ -77,8 +77,12 @@ def get_section_maintainers(path, section):
matching the provided path in the provided section."""
maintainers = []
lists = []
+ nowarn_status = ['Supported', 'Maintained']
if path_in_section(path, section):
+ for status in section['status']:
+ if status not in nowarn_status:
+ print('WARNING: Maintained status for "%s" is \'%s\'!' % (path, status))
for address in section['maintainer'], section['reviewer']:
# Convert to list if necessary
if isinstance(address, list):