@@ -373,14 +373,15 @@ class LicenseIssueTracker(LineIssueTracker):
373
373
r'3rdparty/(?!(p256-m)/.*)' ,
374
374
# Documentation explaining the license may have accidental
375
375
# false positives.
376
- r'(ChangeLog|LICENSE|[-0-9A-Z_a-z]+\.md)\Z' ,
376
+ r'(ChangeLog|LICENSE|framework\/LICENSE| [-0-9A-Z_a-z]+\.md)\Z' ,
377
377
# Files imported from TF-M, and not used except in test builds,
378
378
# may be under a different license.
379
379
r'configs/ext/crypto_config_profile_medium\.h\Z' ,
380
380
r'configs/ext/tfm_mbedcrypto_config_profile_medium\.h\Z' ,
381
381
r'configs/ext/README\.md\Z' ,
382
382
# Third-party file.
383
383
r'dco\.txt\Z' ,
384
+ r'framework\/dco\.txt\Z' ,
384
385
]
385
386
path_exemptions = re .compile ('|' .join (BINARY_FILE_PATH_RE_LIST +
386
387
LICENSE_EXEMPTION_RE_LIST ))
@@ -486,7 +487,8 @@ def collect_files():
486
487
487
488
These are the regular files commited into Git.
488
489
"""
489
- bytes_output = subprocess .check_output (['git' , 'ls-files' , '-z' ])
490
+ bytes_output = subprocess .check_output (['git' , 'ls-files' ,
491
+ '--recurse-submodules' , '-z' ])
490
492
bytes_filepaths = bytes_output .split (b'\0 ' )[:- 1 ]
491
493
ascii_filepaths = map (lambda fp : fp .decode ('ascii' ), bytes_filepaths )
492
494
# Filter out directories. Normally Git doesn't list directories
0 commit comments