blob: a03bf97577a9237e8c340b2c8d154b4390c716c0 [file] [log] [blame]
Minos Galanakisea421232019-06-20 17:11:28 +01001#!/usr/bin/env python3
2
3""" an521.py:
4
5 Contains AN519 specific configuration variants. Each configuration is
6 created by a template(defines the expected output of the test) and a
7 decorated class setting the parameters. The whole scope of this module
8 is imported in the config map, to avoid keeping a manual list of the
9 configurations up to date. """
10
11from __future__ import print_function
12import os
13import sys
14
15__copyright__ = """
16/*
17 * Copyright (c) 2019, Arm Limited. All rights reserved.
18 *
19 * SPDX-License-Identifier: BSD-3-Clause
20 *
21 */
22 """
23__author__ = "Minos Galanakis"
24__email__ = "minos.galanakis@linaro.org"
25__project__ = "Trusted Firmware-M Open CI"
26__status__ = "stable"
27__version__ = "1.1"
28
29try:
30 from tfm_ci_pylib.fastmodel_wrapper import FastmodelConfigMap
31 from tfm_ci_pylib.fastmodel_wrapper import config_variant
32
33 from tfm_ci_pylib.fastmodel_wrapper import \
34 template_default_config, template_regression_config, \
35 template_coreipc_config, template_coreipctfmlevel2_config
36except ImportError:
37 dir_path = os.path.dirname(os.path.realpath(__file__))
38 sys.path.append(os.path.join(dir_path, "../"))
39 from tfm_ci_pylib.fastmodel_wrapper import FastmodelConfigMap
40 from tfm_ci_pylib.fastmodel_wrapper import config_variant
41 from tfm_ci_pylib.fastmodel_wrapper import \
42 template_default_config, template_regression_config, \
43 template_coreipc_config, template_coreipctfmlevel2_config
44# ===================== AN521 Configuration Classes ======================
45# Configurations will be dynamically defined
46
47# ===================== Default Config ======================
48
49
50@config_variant(platform="AN519",
51 compiler="ARMCLANG",
52 build_type="Debug",
53 bootloader="BL2")
54class an519_armclang_configdefault_debug_bl2(template_default_config):
55 pass
56
57
58@config_variant(platform="AN519",
59 compiler="GNUARM",
60 build_type="Debug",
61 bootloader="BL2")
62class an519_gnuarm_configdefault_debug_bl2(template_default_config):
63 pass
64
65
66@config_variant(platform="AN519",
67 compiler="ARMCLANG",
68 build_type="Debug",
69 bootloader="NOBL2")
70class an519_armclang_configdefault_debug_nobl2(template_default_config):
71 pass
72
73
74@config_variant(platform="AN519",
75 compiler="GNUARM",
76 build_type="Debug",
77 bootloader="NOBL2")
78class an519_gnuarm_configdefault_debug_nobl2(template_default_config):
79 pass
80
81
82@config_variant(platform="AN519",
83 compiler="ARMCLANG",
84 build_type="Release",
85 bootloader="BL2")
86class an519_armclang_configdefault_release_bl2(template_default_config):
87 pass
88
89
90@config_variant(platform="AN519",
91 compiler="GNUARM",
92 build_type="Release",
93 bootloader="BL2")
94class an519_gnuarm_configdefault_release_bl2(template_default_config):
95 pass
96
97
98@config_variant(platform="AN519",
99 compiler="ARMCLANG",
100 build_type="Release",
101 bootloader="NOBL2")
102class an519_armclang_configdefault_release_nobl2(template_default_config):
103 pass
104
105
106@config_variant(platform="AN519",
107 compiler="GNUARM",
108 build_type="Release",
109 bootloader="NOBL2")
110class an519_gnuarm_configdefault_release_nobl2(template_default_config):
111 pass
112
113# ===================== Regressions Config ======================
114
115
116@config_variant(platform="AN519",
117 compiler="ARMCLANG",
118 build_type="Debug",
119 bootloader="BL2")
120class an519_armclang_configregression_debug_bl2(template_regression_config):
121 pass
122
123
124@config_variant(platform="AN519",
125 compiler="GNUARM",
126 build_type="Debug",
127 bootloader="BL2")
128class an519_gnuarm_configregression_debug_bl2(template_regression_config):
129 pass
130
131
132@config_variant(platform="AN519",
133 compiler="ARMCLANG",
134 build_type="Debug",
135 bootloader="NOBL2")
136class an519_armclang_configregression_debug_nobl2(template_regression_config):
137 pass
138
139
140@config_variant(platform="AN519",
141 compiler="GNUARM",
142 build_type="Debug",
143 bootloader="NOBL2")
144class an519_gnuarm_configregression_debug_nobl2(template_regression_config):
145 pass
146
147
148@config_variant(platform="AN519",
149 compiler="ARMCLANG",
150 build_type="Release",
151 bootloader="BL2")
152class an519_armclang_configregression_release_bl2(template_regression_config):
153 pass
154
155
156@config_variant(platform="AN519",
157 compiler="GNUARM",
158 build_type="Release",
159 bootloader="BL2")
160class an519_gnuarm_configregression_release_bl2(template_regression_config):
161 pass
162
163
164@config_variant(platform="AN519",
165 compiler="ARMCLANG",
166 build_type="Release",
167 bootloader="NOBL2")
168class an519_armclang_configregression_release_nobl2(
169 template_regression_config):
170 pass
171
172
173@config_variant(platform="AN519",
174 compiler="GNUARM",
175 build_type="Release",
176 bootloader="NOBL2")
177class an519_gnuarm_configregression_release_nobl2(template_regression_config):
178 pass
179
180# ===================== CoreIPC Config ======================
181
182
183@config_variant(platform="AN519",
184 compiler="ARMCLANG",
185 build_type="Debug",
186 bootloader="BL2")
187class an519_armclang_configcoreipc_debug_bl2(template_coreipc_config):
188
189 pass
190
191
192@config_variant(platform="AN519",
193 compiler="ARMCLANG",
194 build_type="Debug",
195 bootloader="NOBL2")
196class an519_armclang_configcoreipc_debug_nobl2(template_coreipc_config):
197 pass
198
199
200@config_variant(platform="AN519",
201 compiler="ARMCLANG",
202 build_type="Release",
203 bootloader="BL2")
204class an519_armclang_configcoreipc_release_bl2(template_coreipc_config):
205
206 pass
207
208
209@config_variant(platform="AN519",
210 compiler="ARMCLANG",
211 build_type="Release",
212 bootloader="NOBL2")
213class an519_armclang_configcoreipc_release_nobl2(template_coreipc_config):
214 pass
215
216
217@config_variant(platform="AN519",
218 compiler="GNUARM",
219 build_type="Debug",
220 bootloader="BL2")
221class an519_gnuarm_configcoreipc_debug_bl2(template_coreipc_config):
222
223 pass
224
225
226@config_variant(platform="AN519",
227 compiler="GNUARM",
228 build_type="Debug",
229 bootloader="NOBL2")
230class an519_gnuarm_configcoreipc_debug_nobl2(template_coreipc_config):
231 pass
232
233
234@config_variant(platform="AN519",
235 compiler="GNUARM",
236 build_type="Release",
237 bootloader="BL2")
238class an519_gnuarm_configcoreipc_release_bl2(template_coreipc_config):
239
240 pass
241
242
243@config_variant(platform="AN519",
244 compiler="GNUARM",
245 build_type="Release",
246 bootloader="NOBL2")
247class an519_gnuarm_configcoreipc_release_nobl2(template_coreipc_config):
248 pass
249
250# ===================== CoreIPCTfmLevel2 Config ======================
251
252
253@config_variant(platform="AN519",
254 compiler="ARMCLANG",
255 build_type="Debug",
256 bootloader="BL2")
257class an519_armclang_configcoreipctfmlevel2_debug_bl2(template_coreipctfmlevel2_config):
258 pass
259
260
261@config_variant(platform="AN519",
262 compiler="ARMCLANG",
263 build_type="Debug",
264 bootloader="NOBL2")
265class an519_armclang_configcoreipctfmlevel2_debug_nobl2(template_coreipctfmlevel2_config):
266 pass
267
268
269@config_variant(platform="AN519",
270 compiler="ARMCLANG",
271 build_type="Release",
272 bootloader="BL2")
273class an519_armclang_configcoreipctfmlevel2_release_bl2(template_coreipctfmlevel2_config):
274 pass
275
276
277@config_variant(platform="AN519",
278 compiler="ARMCLANG",
279 build_type="Release",
280 bootloader="NOBL2")
281class an519_armclang_configcoreipctfmlevel2_release_nobl2(template_coreipctfmlevel2_config):
282 pass
283
284
285@config_variant(platform="AN519",
286 compiler="GNUARM",
287 build_type="Debug",
288 bootloader="BL2")
289class an519_gnuarm_configcoreipctfmlevel2_debug_bl2(template_coreipctfmlevel2_config):
290 pass
291
292
293@config_variant(platform="AN519",
294 compiler="GNUARM",
295 build_type="Debug",
296 bootloader="NOBL2")
297class an519_gnuarm_configcoreipctfmlevel2_debug_nobl2(template_coreipctfmlevel2_config):
298 pass
299
300
301@config_variant(platform="AN519",
302 compiler="GNUARM",
303 build_type="Release",
304 bootloader="BL2")
305class an519_gnuarm_configcoreipctfmlevel2_release_bl2(template_coreipctfmlevel2_config):
306 pass
307
308
309@config_variant(platform="AN519",
310 compiler="GNUARM",
311 build_type="Release",
312 bootloader="NOBL2")
313class an519_gnuarm_configcoreipctfmlevel2_release_nobl2(template_coreipctfmlevel2_config):
314 pass
315
316AN519 = FastmodelConfigMap(globals(), "AN519")
317
318if __name__ == "__main__":
319 pass