diff --git a/scripts/check_files.py b/scripts/check_files.py index 87326e872..05c38e109 100755 --- a/scripts/check_files.py +++ b/scripts/check_files.py @@ -367,9 +367,15 @@ class LicenseIssueTracker(LineIssueTracker): heading = "License issue:" - LICENSE_EXEMPTION_RE_LIST = [ - # Exempt third-party drivers which may be under a different license - r'tf-psa-crypto/drivers/(?=(everest)/.*)', + LICENSE_EXEMPTION_RE_LIST = [] + + # Exempt third-party drivers which may be under a different license + 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 += [ # Documentation explaining the license may have accidental # false positives. r'(ChangeLog|LICENSE|framework\/LICENSE|[-0-9A-Z_a-z]+\.md)\Z',