Permit MIT licenses when checking copyright
Some source files in TF-A are distributed under the terms of the MIT
license, as they are derived from other projects where the original
files are licensed under the MIT license instead of the BSD-3-Clause
license.
Change-Id: I48d78acd4c3a5de717bfe5273971e0fe8fc514aa
Signed-off-by: Chris Kay <chris.kay@arm.com>
diff --git a/script/static-checks/check-copyright.py b/script/static-checks/check-copyright.py
index 63db460..2f084e0 100755
--- a/script/static-checks/check-copyright.py
+++ b/script/static-checks/check-copyright.py
@@ -60,7 +60,7 @@
TIME_PERIOD = '[0-9]{4}(-[0-9]{4})?'
# Any string with valid license ID, don't allow adding postfix
-LICENSE_ID = '.*(BSD-3-Clause|BSD-2-Clause-FreeBSD)([ ,.\);].*)?'
+LICENSE_ID = '.*(BSD-3-Clause|BSD-2-Clause-FreeBSD|MIT)([ ,.\);].*)?'
# File must contain both lines to pass the check
COPYRIGHT_LINE = LINE_START + 'Copyright' + '.*' + TIME_PERIOD + '.*' + EOL