blob: 60313705f4da9585c137c765ca8e40eb3385b063 [file] [log] [blame]
Archana6f21e452021-11-23 14:46:51 +05301@rem Generate automatically-generated configuration-independent source files
2@rem and build scripts.
Gilles Peskine73c40962024-05-12 21:38:07 +02003@rem Requirements:
4@rem * Perl must be on the PATH ("perl" command).
5@rem * Python 3.8 or above must be on the PATH ("python" command).
Gilles Peskinefbb59bd2024-05-12 21:38:16 +02006@rem * Either a C compiler called "cc" must be on the PATH, or
7@rem the "CC" environment variable must point to a C compiler.
Gilles Peskine73c40962024-05-12 21:38:07 +02008
9@rem @@@@ library\** @@@@
Xiaokang Qian845693c2023-09-12 03:14:54 +000010@rem psa_crypto_driver_wrappers.h needs to be generated prior to
Archana6f21e452021-11-23 14:46:51 +053011@rem generate_visualc_files.pl being invoked.
12python scripts\generate_driver_wrappers.py || exit /b 1
13perl scripts\generate_errors.pl || exit /b 1
14perl scripts\generate_query_config.pl || exit /b 1
15perl scripts\generate_features.pl || exit /b 1
Elena Uziunaite09fee362024-10-07 17:40:21 +010016python framework\scripts\generate_ssl_debug_helpers.py || exit /b 1
Gilles Peskine73c40962024-05-12 21:38:07 +020017
18@rem @@@@ Build @@@@
Archana6f21e452021-11-23 14:46:51 +053019perl scripts\generate_visualc_files.pl || exit /b 1
Gilles Peskine73c40962024-05-12 21:38:07 +020020
21@rem @@@@ programs\** @@@@
Harry Ramseycefc6722024-11-05 06:43:36 +000022cd tf-psa-crypto
23python scripts\generate_psa_constants.py || exit /b 1
24cd ..
Gilles Peskine73c40962024-05-12 21:38:07 +020025
26@rem @@@@ tests\** @@@@
Ronald Cron34869502024-07-15 15:44:25 +020027python framework\scripts\generate_bignum_tests.py --directory tf-psa-crypto\tests\suites || exit /b 1
28python framework\scripts\generate_config_tests.py tests\suites\test_suite_config.mbedtls_boolean.data || exit /b 1
29python framework\scripts\generate_config_tests.py --directory tf-psa-crypto\tests\suites tests\suites\test_suite_config.psa_boolean.data || exit /b 1
30python framework\scripts\generate_ecp_tests.py --directory tf-psa-crypto\tests\suites || exit /b 1
31python framework\scripts\generate_psa_tests.py --directory tf-psa-crypto\tests\suites || exit /b 1
David Horstmann36c819c2024-11-08 11:56:05 +000032python framework\scripts\generate_test_keys.py --output framework\tests\src\test_keys.h || exit /b 1
David Horstmannf6f3bca2024-05-29 17:57:08 +010033python framework\scripts\generate_test_cert_macros.py --output tests\src\test_certs.h || exit /b 1
Elena Uziunaiteb74c3ea2024-10-08 13:02:48 +010034python framework\scripts\generate_tls13_compat_tests.py || exit /b 1