Improve directory coverage in PSA repo detection

Check for the 'drivers' and 'programs' directories additionally to the
ones that are already there.

Signed-off-by: David Horstmann <[email protected]>
This commit is contained in:
David Horstmann
2023-08-29 09:50:16 +01:00
parent 0ac57ca6c6
commit 2fde99962d
+1 -1
View File
@@ -22,7 +22,7 @@ import inspect
def looks_like_psa_crypto_root(path: str) -> bool:
"""Whether the given directory looks like the root of the PSA Crypto source tree."""
return all(os.path.isdir(os.path.join(path, subdir))
for subdir in ['include', 'core', 'tests'])
for subdir in ['include', 'core', 'drivers', 'programs', 'tests'])
def looks_like_mbedtls_root(path: str) -> bool:
"""Whether the given directory looks like the root of the Mbed TLS source tree."""