blob: f632d32e9f022d3358454e556a8bd469ee7b75fc [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.
Ronald Cron6a2cbe72024-11-13 09:20:30 +010012python tf-psa-crypto\scripts\generate_driver_wrappers.py || exit /b 1
Archana6f21e452021-11-23 14:46:51 +053013perl 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
Bence Szépkútid2968bd2021-05-06 09:55:44 +020023python scripts\generate_psa_constants.py || exit /b 1
Ronald Cron81a674e2025-03-11 12:53:45 +010024python framework\scripts\generate_config_tests.py || exit /b 1
Harry Ramseycefc6722024-11-05 06:43:36 +000025cd ..
Gilles Peskine73c40962024-05-12 21:38:07 +020026
27@rem @@@@ tests\** @@@@
Ronald Cron34869502024-07-15 15:44:25 +020028python framework\scripts\generate_bignum_tests.py --directory tf-psa-crypto\tests\suites || exit /b 1
Ronald Cron81a674e2025-03-11 12:53:45 +010029python framework\scripts\generate_config_tests.py || exit /b 1
Ronald Cron34869502024-07-15 15:44:25 +020030python 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
Ronald Cronf6eee5a2024-12-09 09:10:51 +010032python framework\scripts\generate_test_keys.py --output framework\tests\include\test\test_keys.h || exit /b 1
Ronald Cronf25121c2024-12-12 12:15:51 +010033python tf-psa-crypto\framework\scripts\generate_test_keys.py --output tf-psa-crypto\framework\tests\include\test\test_keys.h || exit /b 1
David Horstmannf6f3bca2024-05-29 17:57:08 +010034python framework\scripts\generate_test_cert_macros.py --output tests\src\test_certs.h || exit /b 1
Gilles Peskine47733332025-03-01 14:28:20 +010035python framework\scripts\generate_tls_handshake_tests.py || exit /b 1
Elena Uziunaiteb74c3ea2024-10-08 13:02:48 +010036python framework\scripts\generate_tls13_compat_tests.py || exit /b 1