Skip to content

Commit

Permalink
Rename the template file from .conf to .jinja
Browse files Browse the repository at this point in the history
Signed-off-by: Archana <[email protected]>
  • Loading branch information
silabs-ArchanaM committed Dec 19, 2021
1 parent e03960e commit c08248d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ While that is the larger goal, for version 1.0 here's what's changed
#### What's changed

(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.
2 changes: 1 addition & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ if(GEN_FILES)
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS
${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
)


Expand Down
2 changes: 1 addition & 1 deletion library/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ version_features.c:
$(PERL) ../scripts/generate_features.pl

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:
echo " Gen $@"
$(PYTHON) ../scripts/generate_driver_wrappers.py --mbedtls-root .. .
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_driver_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def generate_driver_wrapper_file(mbedtls_root: str, output_dir: str) -> None:
Generate the file psa_crypto_driver_wrapper.c.
"""
driver_wrapper_template_filename = \
os.path.join(mbedtls_root,
"scripts/data_files/driver_templates/psa_crypto_driver_wrappers.conf")
os.path.join(mbedtls_root, \
"scripts/data_files/driver_templates/psa_crypto_driver_wrappers.c.jinja")

result = render(driver_wrapper_template_filename)

Expand Down

0 comments on commit c08248d

Please sign in to comment.