Skip to content

Commit 721e0c9

Browse files
Prepare make_generated_files.py to the removal of generate_visualc_files.pl
Signed-off-by: Ronald Cron <[email protected]>
1 parent 820a16c commit 721e0c9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/make_generated_files.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ def get_generation_script_files(generation_script: str):
158158
[Path("tests/opt-testcases/handshake-generated.sh")],
159159
None, "--output"
160160
),
161-
GenerationScript(
162-
Path("scripts/generate_visualc_files.pl"),
163-
get_generation_script_files("scripts/generate_visualc_files.pl"),
164-
"--directory", None
165-
),
166161
]
167162

168163
def get_generated_files(generation_scripts: List[GenerationScript]):
@@ -241,6 +236,13 @@ def main():
241236
if build_tree.looks_like_tf_psa_crypto_root("."):
242237
generation_scripts = TF_PSA_CRYPTO_GENERATION_SCRIPTS
243238
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))
244246
generation_scripts = MBEDTLS_GENERATION_SCRIPTS
245247
else:
246248
raise Exception("No support for Mbed TLS 3.6")

0 commit comments

Comments
 (0)