diff options
Diffstat (limited to 'docs/design_documents/tfm_code_generation_with_jinja2.rst')
-rw-r--r-- | docs/design_documents/tfm_code_generation_with_jinja2.rst | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/docs/design_documents/tfm_code_generation_with_jinja2.rst b/docs/design_documents/tfm_code_generation_with_jinja2.rst index 8a0317de65..2e730238db 100644 --- a/docs/design_documents/tfm_code_generation_with_jinja2.rst +++ b/docs/design_documents/tfm_code_generation_with_jinja2.rst @@ -62,22 +62,16 @@ Improvements over the current solution Example ******* -Below code snippet enumerates the secure function IDs: +Below code snippet enumerates services in Secure Partitions: .. code-block:: - {% for manifest in manifests %} - {% if manifest.attr.conditional %} - #ifdef {{manifest.attr.conditional}} + {% for partition in partitions %} + {% if partition.manifest.services %} + {% for service in partition.manifest.services %} + {do something for the service} + {% endfor %} {% endif %} - /******** {{manifest.manifest.tfm_partition_name}} ********/ - {% for sec_func in manifest.manifest.secure_functions %} - {{'{'}}{{sec_func.tfm_symbol}}, {{sec_func.sfid}}{{'}'}}, - {% endfor %} - {% if manifest.attr.conditional %} - #endif /* {{manifest.attr.conditional}} */ - {% endif %} - {% endfor %} -*Copyright (c) 2019-2020, Arm Limited. All rights reserved.* +*Copyright (c) 2019-2021, Arm Limited. All rights reserved.* |