mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-23 16:20:49 +00:00
Rename the template file from .conf to .jinja
Signed-off-by: Archana <archana.madhavan@silabs.com>
This commit is contained in:
parent
e03960e460
commit
c08248d650
@ -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.
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 .. .
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user