Skip to content

Commit fa6b187

Browse files
Adjust MBEDTLS_GENERATION_SCRIPTS outside of main
Signed-off-by: Ronald Cron <[email protected]>
1 parent 721e0c9 commit fa6b187

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/make_generated_files.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ def get_generation_script_files(generation_script: str):
160160
),
161161
]
162162

163+
if Path("scripts/generate_visualc_files.pl").is_file():
164+
MBEDTLS_GENERATION_SCRIPTS.append(
165+
GenerationScript(
166+
Path("scripts/generate_visualc_files.pl"),
167+
get_generation_script_files("scripts/generate_visualc_files.pl"),
168+
"--directory", None))
169+
163170
def get_generated_files(generation_scripts: List[GenerationScript]):
164171
"""
165172
List the generated files in Mbed TLS or TF-PSA-Crypto. The path from root
@@ -236,13 +243,6 @@ def main():
236243
if build_tree.looks_like_tf_psa_crypto_root("."):
237244
generation_scripts = TF_PSA_CRYPTO_GENERATION_SCRIPTS
238245
elif not build_tree.is_mbedtls_3_6():
239-
240-
if Path("scripts/generate_visualc_files.pl").is_file():
241-
MBEDTLS_GENERATION_SCRIPTS.append(
242-
GenerationScript(
243-
Path("scripts/generate_visualc_files.pl"),
244-
get_generation_script_files("scripts/generate_visualc_files.pl"),
245-
"--directory", None))
246246
generation_scripts = MBEDTLS_GENERATION_SCRIPTS
247247
else:
248248
raise Exception("No support for Mbed TLS 3.6")

0 commit comments

Comments
 (0)