From 73c409644214a528304c356e720c4d2a45122cbe Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Sun, 12 May 2024 21:38:07 +0200 Subject: [PATCH 1/2] Make the file a bit more readable Signed-off-by: Gilles Peskine --- scripts/make_generated_files.bat | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/make_generated_files.bat b/scripts/make_generated_files.bat index 6d35f501b8..f9c3c74eb1 100644 --- a/scripts/make_generated_files.bat +++ b/scripts/make_generated_files.bat @@ -1,6 +1,10 @@ @rem Generate automatically-generated configuration-independent source files @rem and build scripts. -@rem Perl and Python 3 must be on the PATH. +@rem Requirements: +@rem * Perl must be on the PATH ("perl" command). +@rem * Python 3.8 or above must be on the PATH ("python" command). + +@rem @@@@ library\** @@@@ @rem psa_crypto_driver_wrappers.h needs to be generated prior to @rem generate_visualc_files.pl being invoked. python scripts\generate_driver_wrappers.py || exit /b 1 @@ -8,8 +12,14 @@ perl scripts\generate_errors.pl || exit /b 1 perl scripts\generate_query_config.pl || exit /b 1 perl scripts\generate_features.pl || exit /b 1 python scripts\generate_ssl_debug_helpers.py || exit /b 1 + +@rem @@@@ Build @@@@ perl scripts\generate_visualc_files.pl || exit /b 1 + +@rem @@@@ programs\** @@@@ python scripts\generate_psa_constants.py || exit /b 1 + +@rem @@@@ tests\** @@@@ python framework\scripts\generate_bignum_tests.py --directory tf-psa-crypto\tests\suites || exit /b 1 python framework\scripts\generate_config_tests.py tests\suites\test_suite_config.mbedtls_boolean.data || exit /b 1 python framework\scripts\generate_config_tests.py --directory tf-psa-crypto\tests\suites tests\suites\test_suite_config.psa_boolean.data || exit /b 1 From fbb59bd73bf0eb23dfce176fb56a8f0882271f69 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Sun, 12 May 2024 21:38:16 +0200 Subject: [PATCH 2/2] Document the C compiler requirement Signed-off-by: Gilles Peskine --- scripts/make_generated_files.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/make_generated_files.bat b/scripts/make_generated_files.bat index f9c3c74eb1..3d5f32d05a 100644 --- a/scripts/make_generated_files.bat +++ b/scripts/make_generated_files.bat @@ -3,6 +3,8 @@ @rem Requirements: @rem * Perl must be on the PATH ("perl" command). @rem * Python 3.8 or above must be on the PATH ("python" command). +@rem * Either a C compiler called "cc" must be on the PATH, or +@rem the "CC" environment variable must point to a C compiler. @rem @@@@ library\** @@@@ @rem psa_crypto_driver_wrappers.h needs to be generated prior to