| /* |
| * Copyright (c) 2018-2019, Arm Limited. All rights reserved. |
| * |
| * SPDX-License-Identifier: BSD-3-Clause |
| * |
| */ |
| |
| {{utilities.donotedit_warning}} |
| |
| #ifndef __TFM_PARTITION_DEFS_INC__ |
| #define __TFM_PARTITION_DEFS_INC__ |
| |
| {% set ns = namespace(iterator_counter=0) %} |
| {% for manifest in manifests %} |
| {% if manifest.attr.conditional %} |
| #ifdef {{manifest.attr.conditional}} |
| {% endif %} |
| #define {{manifest.manifest.name}}_ID (TFM_SP_BASE + {{ns.iterator_counter}}) |
| {% set ns.found = true %} |
| {% set ns.iterator_counter = ns.iterator_counter + 1 %} |
| {% if manifest.attr.conditional %} |
| #endif /* {{manifest.attr.conditional}} */ |
| {% endif %} |
| |
| {% endfor %} |
| #define TFM_MAX_USER_PARTITIONS ({{manifests | length()}}) |
| |
| #endif /* __TFM_PARTITION_DEFS_INC__ */ |