mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-08 04:07:46 +00:00
Merge pull request #109 from Harry-Ramsey/independent-check-files
Enable check_files.py for TF-PSA-Crypto
This commit is contained in:
@@ -371,10 +371,10 @@ class LicenseIssueTracker(LineIssueTracker):
|
||||
LICENSE_EXEMPTION_RE_LIST = []
|
||||
|
||||
# Exempt third-party drivers which may be under a different license
|
||||
if build_tree.is_mbedtls_3_6():
|
||||
if build_tree.looks_like_tf_psa_crypto_root(os.getcwd()):
|
||||
LICENSE_EXEMPTION_RE_LIST.append(r'drivers/(?=(everest)/.*)')
|
||||
elif 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 += [
|
||||
# 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 = [
|
||||
|
||||
Reference in New Issue
Block a user