Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move certain "generate" scripts to the framework #91

Open
mpg opened this issue Dec 4, 2024 · 0 comments
Open

Move certain "generate" scripts to the framework #91

mpg opened this issue Dec 4, 2024 · 0 comments
Labels
size-s Estimated task size: small (~2d)

Comments

@mpg
Copy link
Contributor

mpg commented Dec 4, 2024

Move the following scripts to the framework:

scripts/generate_features.pl
scripts/generate_psa_constants.py
scripts/generate_query_config.pl
programs/test/generate_cpp_dummy_build.sh (to ./scripts as well)

Note: as of writing, generate_features.pl is identical between 3.6 and development, but the other three have minor differences that need resolving.

For generate_psa_constants.py we probably want to use is_mbedtls_3_6() from the build_tree module. (Once the script is in the framework repo, from . import build_tree should work. From the mbedtls repo, I think we want import framework_scripts_path # pylint: disable=unused-import then from mbedtls_framework import build_tree.)

For generate_cpp_dummy_build.sh we probably want to use in_3_6_branch from scripts/project_detection.sh.

For generate_query_config.pl since this a Perl script we don't have a utility function ready, but I guess a good old-fashioned -d tf-psa-crypto should do nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size-s Estimated task size: small (~2d)
Projects
Status: Framework 2/3 (for the CI)
Development

No branches or pull requests

1 participant