Miklos Balint | 470919c | 2018-05-22 17:51:29 +0200 | [diff] [blame] | 1 | /*
|
Edison Ai | bb614aa | 2018-11-21 15:15:00 +0800 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
|
Miklos Balint | 470919c | 2018-05-22 17:51:29 +0200 | [diff] [blame] | 3 | *
|
| 4 | * SPDX-License-Identifier: BSD-3-Clause
|
| 5 | *
|
| 6 | */
|
| 7 |
|
Mate Toth-Pal | 36f2184 | 2018-11-08 16:12:51 +0100 | [diff] [blame] | 8 | {{utilities.donotedit_warning}}
|
Miklos Balint | 470919c | 2018-05-22 17:51:29 +0200 | [diff] [blame] | 9 |
|
| 10 | #ifndef __TFM_PARTITION_DEFS_INC__
|
| 11 | #define __TFM_PARTITION_DEFS_INC__
|
| 12 |
|
Mate Toth-Pal | 36f2184 | 2018-11-08 16:12:51 +0100 | [diff] [blame] | 13 | {% 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 Balint | 470919c | 2018-05-22 17:51:29 +0200 | [diff] [blame] | 24 |
|
Mate Toth-Pal | 36f2184 | 2018-11-08 16:12:51 +0100 | [diff] [blame] | 25 | {% endfor %}
|
| 26 | #define TFM_MAX_USER_PARTITIONS ({{manifests | length()}})
|
Miklos Balint | 470919c | 2018-05-22 17:51:29 +0200 | [diff] [blame] | 27 |
|
| 28 | #endif /* __TFM_PARTITION_DEFS_INC__ */
|