Enable check_files.py for TF-PSA-Crypto

This commit enables check_files.py to run for Mbed TLS and
TF-PSA-Crypto.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
Harry Ramsey
2024-12-27 10:28:16 +00:00
parent 57ee691a3e
commit f828f9c15e
+3 -2
View File
@@ -374,7 +374,7 @@ class LicenseIssueTracker(LineIssueTracker):
if build_tree.is_mbedtls_3_6():
LICENSE_EXEMPTION_RE_LIST.append(r'3rdparty/(?!(p256-m)/.*)')
else:
LICENSE_EXEMPTION_RE_LIST.append(r'tf-psa-crypto/drivers/(?=(everest)/.*)')
LICENSE_EXEMPTION_RE_LIST.append(r'(tf-psa-crypto/)?drivers/(?=(everest)/.*)')
LICENSE_EXEMPTION_RE_LIST += [
# Documentation explaining the license may have accidental
@@ -479,7 +479,8 @@ class IntegrityChecker:
"""Instantiate the sanity checker.
Check files under the current directory.
Write a report of issues to log_file."""
build_tree.check_repo_path()
if not build_tree.looks_like_root(os.getcwd()):
raise Exception("This script must be run from Mbed TLS or TF-PSA-Crypto root")
self.logger = None
self.setup_logger(log_file)
self.issues_to_check = [