Rename the template file from .conf to .jinja

Signed-off-by: Archana <archana.madhavan@silabs.com>
This commit is contained in:
Archana 2021-12-19 09:28:39 +05:30
parent e03960e460
commit c08248d650
No known key found for this signature in database
GPG Key ID: 0F162FC9DB6BE502
5 changed files with 5 additions and 5 deletions

View File

@ -28,5 +28,5 @@ While that is the larger goal, for version 1.0 here's what's changed
#### What's changed #### What's changed
(1) psa_crypto_driver_wrappers.c will from this point on be auto generated. (1) psa_crypto_driver_wrappers.c will from this point on be auto generated.
(2) The auto generation is based on the template file at scripts/data_files/driver_templates/psa_crypto_driver_wrappers.conf. (2) The auto generation is based on the template file at scripts/data_files/driver_templates/psa_crypto_driver_wrappers.c.jinja.
(3) So while all driver wrapper templating support is yet to come in, the library user will need to patch into the template file as needed. (3) So while all driver wrapper templating support is yet to come in, the library user will need to patch into the template file as needed.

View File

@ -168,7 +168,7 @@ if(GEN_FILES)
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/../scripts/generate_driver_wrappers.py ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/generate_driver_wrappers.py
${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files/driver_templates/psa_crypto_driver_wrappers.conf ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files/driver_templates/psa_crypto_driver_wrappers.c.jinja
) )

View File

@ -320,7 +320,7 @@ version_features.c:
$(PERL) ../scripts/generate_features.pl $(PERL) ../scripts/generate_features.pl
psa_crypto_driver_wrappers.c: ../scripts/generate_driver_wrappers.py psa_crypto_driver_wrappers.c: ../scripts/generate_driver_wrappers.py
psa_crypto_driver_wrappers.c: ../scripts/data_files/driver_templates/psa_crypto_driver_wrappers.conf psa_crypto_driver_wrappers.c: ../scripts/data_files/driver_templates/psa_crypto_driver_wrappers.c.jinja
psa_crypto_driver_wrappers.c: psa_crypto_driver_wrappers.c:
echo " Gen $@" echo " Gen $@"
$(PYTHON) ../scripts/generate_driver_wrappers.py --mbedtls-root .. . $(PYTHON) ../scripts/generate_driver_wrappers.py --mbedtls-root .. .

View File

@ -42,8 +42,8 @@ def generate_driver_wrapper_file(mbedtls_root: str, output_dir: str) -> None:
Generate the file psa_crypto_driver_wrapper.c. Generate the file psa_crypto_driver_wrapper.c.
""" """
driver_wrapper_template_filename = \ driver_wrapper_template_filename = \
os.path.join(mbedtls_root, os.path.join(mbedtls_root, \
"scripts/data_files/driver_templates/psa_crypto_driver_wrappers.conf") "scripts/data_files/driver_templates/psa_crypto_driver_wrappers.c.jinja")
result = render(driver_wrapper_template_filename) result = render(driver_wrapper_template_filename)