blob: e30b6d3af68dc32b38453c152bb3b0fa5712c465 [file] [log] [blame]
Miklos Balint470919c2018-05-22 17:51:29 +02001/*
Edison Aibb614aa2018-11-21 15:15:00 +08002 * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
Miklos Balint470919c2018-05-22 17:51:29 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
Mate Toth-Pal36f21842018-11-08 16:12:51 +01008{{utilities.donotedit_warning}}
Miklos Balint470919c2018-05-22 17:51:29 +02009
10#ifndef __TFM_PARTITION_DEFS_INC__
11#define __TFM_PARTITION_DEFS_INC__
12
Mate Toth-Pal36f21842018-11-08 16:12:51 +010013{% set ns = namespace(iterator_counter=0) %}
14{% for manifest in manifests %}
15 {% if manifest.attr.conditional %}
16#ifdef {{manifest.attr.conditional}}
17 {% endif %}
18#define {{manifest.manifest.name}}_ID (TFM_SP_BASE + {{ns.iterator_counter}})
19 {% set ns.found = true %}
20 {% set ns.iterator_counter = ns.iterator_counter + 1 %}
21 {% if manifest.attr.conditional %}
22#endif /* {{manifest.attr.conditional}} */
23 {% endif %}
Miklos Balint470919c2018-05-22 17:51:29 +020024
Mate Toth-Pal36f21842018-11-08 16:12:51 +010025{% endfor %}
26#define TFM_MAX_USER_PARTITIONS ({{manifests | length()}})
Miklos Balint470919c2018-05-22 17:51:29 +020027
28#endif /* __TFM_PARTITION_DEFS_INC__ */