blob: 07a72f924a2cedf1452e3d692072fb112eb554c2 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" lava_job_generator_configs.py:
4
5 Default configurations for lava job generator """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Jamie Fox9283cbc2024-04-22 13:40:01 +010011 * Copyright (c) 2018-2024, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Xinyu Zhang22a12752022-10-10 17:21:21 +080022
23import os
24
25
Leonardo Sandoval66386a22021-04-15 14:35:08 -050026tf_downloads="https://downloads.trustedfirmware.org"
27coverage_trace_plugin=tf_downloads + "/coverage-plugin/qa-tools/coverage-tool/coverage-plugin/coverage_trace.so"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010028
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010029
Xinyu Zhang22a12752022-10-10 17:21:21 +080030# LAVA test-monitor definition for configs without regression tests.
Xinyu Zhangf724cd22022-03-21 15:46:26 +080031# "Non-Secure system starting..." is expected to indicate
32# that TF-M has been booted successfully.
Xinyu Zhang32355382023-04-25 17:49:06 +080033no_reg_tests_monitors_cfg = {
Xinyu Zhang22a12752022-10-10 17:21:21 +080034 'name': 'NS_SYSTEM_BOOTING',
35 'start': 'Non-Secure system',
36 'end': r'starting\\.{3}',
37 'pattern': r'Non-Secure system starting\\.{3}',
38 'fixup': {"pass": "!", "fail": ""},
39}
Xinyu Zhangf724cd22022-03-21 15:46:26 +080040
Xinyu Zhang22a12752022-10-10 17:21:21 +080041# LAVA test-monitor definitions for configs with tests.
Paul Sokolovsky65671e62022-03-23 21:09:12 +030042# Results of each test case is parsed separately, capturing test case id.
43# Works across any test suites enabled.
Xinyu Zhang32355382023-04-25 17:49:06 +080044mcuboot_tests_monitor_cfg = {
Xinyu Zhang22a12752022-10-10 17:21:21 +080045 'name': 'mcuboot_suite',
46 'start': 'Execute test suites for the MCUBOOT area',
47 'end': 'End of MCUBOOT test suites',
48 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
49 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
50}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010051
Xinyu Zhang32355382023-04-25 17:49:06 +080052s_reg_tests_monitors_cfg = {
Xinyu Zhang22a12752022-10-10 17:21:21 +080053 'name': 'secure_regression_suite',
54 'start': 'Execute test suites for the Secure area',
55 'end': 'End of Secure test suites',
56 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
57 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
58}
Paul Sokolovsky6024d012022-01-22 20:21:07 +030059
Xinyu Zhang32355382023-04-25 17:49:06 +080060ns_reg_tests_monitors_cfg = {
Xinyu Zhang22a12752022-10-10 17:21:21 +080061 'name': 'non_secure_regression_suite',
62 'start': 'Execute test suites for the Non-secure area',
63 'end': 'End of Non-secure test suites',
64 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
65 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
66}
Paul Sokolovsky6024d012022-01-22 20:21:07 +030067
Raef Colesf9a20742024-06-06 10:47:49 +010068bl1_1_reg_tests_monitors_cfg = {
69 'name': 'BL1_1_regression_suite',
70 'start': 'Execute test suites for the BL1_1 area',
71 'end': 'End of BL1_1 test suites',
72 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
73 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
74}
75
76bl1_2_reg_tests_monitors_cfg = {
77 'name': 'BL1_2_regression_suite',
78 'start': 'Execute test suites for the BL1_2 area',
79 'end': 'End of BL1_2 test suites',
80 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
81 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
82}
83
Xinyu Zhang32355382023-04-25 17:49:06 +080084arch_tests_monitors_cfg = {
Xinyu Zhang22a12752022-10-10 17:21:21 +080085 'name': 'psa_api_suite',
86 'start': 'Running..',
87 'end': 'Entering standby..',
88 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?)\r?\n"
89 r".+?"
90 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED|SIM ERROR))",
91 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED", "sim_error": "SIM ERROR"},
92}
Paul Sokolovskye3d2bb12022-06-06 17:04:34 +030093
Xinyu Zhang32355382023-04-25 17:49:06 +080094# Group related monitors into same list to simplify the code
95no_reg_tests_monitors = [no_reg_tests_monitors_cfg]
96
97reg_tests_monitors = [] + \
98 ([mcuboot_tests_monitor_cfg] if "RegBL2" in os.getenv("TEST_REGRESSION") and os.getenv("BL2") == "True" else []) + \
99 ([s_reg_tests_monitors_cfg] if "RegS" in os.getenv("TEST_REGRESSION") else []) + \
Raef Colesf9a20742024-06-06 10:47:49 +0100100 ([ns_reg_tests_monitors_cfg] if "RegNS" in os.getenv("TEST_REGRESSION") else []) + \
101 ([bl1_1_reg_tests_monitors_cfg] if "RegBL1_1" in os.getenv("TEST_REGRESSION") else []) + \
102 ([bl1_2_reg_tests_monitors_cfg] if "RegBL1_2" in os.getenv("TEST_REGRESSION") else [])
Xinyu Zhang32355382023-04-25 17:49:06 +0800103
104arch_tests_monitors = [arch_tests_monitors_cfg]
105
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300106
Xinyu Zhang22a12752022-10-10 17:21:21 +0800107# MPS2 with BL2 bootloader for AN521
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100108# IMAGE0ADDRESS: 0x10000000
109# IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader
110# IMAGE1ADDRESS: 0x10080000
111# IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100112tfm_mps2_sse_200 = {
Matthew Hart2c2688f2020-05-26 13:09:20 +0100113 "templ": "mps2.jinja2",
114 "job_name": "mps2_an521_bl2",
Minos Galanakisafb43152019-09-25 14:17:39 +0100115 "device_type": "mps",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100116 "job_timeout": 15,
117 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800118 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100119 "poweroff_timeout": 1,
120 "recovery_store_url": "https://ci.trustedfirmware.org/userContent/",
Xinyu Zhang22a12752022-10-10 17:21:21 +0800121 "platforms": {"arm/mps2/an521": "mps2_sse200_an512_new.tar.gz"},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800122 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200123 # Run script references to test_.*/.*.bin
124 # These files will be saved under folders: test_firmware and test_bootloader
125 "test_firmware": {
126 "data": "nspe/tfm_s_ns_signed.bin"
127 },
128 "test_bootloader": {
129 "data": "spe/bin/bl2.bin"
130 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800131 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800132 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800133 'no_reg_tests': no_reg_tests_monitors,
Jianliang Shen9798e552022-11-21 12:55:42 +0800134 # FPU test on FPGA not supported yet
Xinyu Zhang32355382023-04-25 17:49:06 +0800135 'reg_tests': (reg_tests_monitors if 'FPON' not in os.getenv("EXTRA_PARAMS") else [mcuboot_tests_monitor_cfg]),
136 # FF test on FPGA not supported in LAVA yet
137 'arch_tests': (arch_tests_monitors if os.getenv("TEST_PSA_API") != "IPC" else []),
Xinyu Zhang22a12752022-10-10 17:21:21 +0800138 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100139}
140
Bence Balogh1aa8d582023-08-29 13:10:02 +0200141# FVP with BL2 bootloader for Corstone300
Bence Balogh4fe9b882022-03-30 15:23:47 +0200142# firmware <-> ns <-> application: --application cpu0=bl2.axf
143# bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
Bence Balogh1aa8d582023-08-29 13:10:02 +0200144fvp_mps3_cs300_bl2 = {
Bence Balogh4fe9b882022-03-30 15:23:47 +0200145 "templ": "fvp_mps3.jinja2",
Bence Balogh1aa8d582023-08-29 13:10:02 +0200146 "job_name": "fvp_mps3_cs300_bl2",
Bence Balogh4fe9b882022-03-30 15:23:47 +0200147 "device_type": "fvp",
148 "job_timeout": 15,
149 "action_timeout": 10,
150 "monitor_timeout": 15,
151 "poweroff_timeout": 1,
Bence Balogh1aa8d582023-08-29 13:10:02 +0200152 "platforms": {"arm/mps3/corstone300/fvp": ""},
Bence Balogh4fe9b882022-03-30 15:23:47 +0200153 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200154 "bl2": {
155 "application": "spe/bin/bl2.axf"
156 },
157 "tfm_s_ns_img": {
158 "data": "nspe/tfm_s_ns_signed.bin",
159 "offset": "0x38000000",
160 }
Bence Balogh4fe9b882022-03-30 15:23:47 +0200161 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800162 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800163 'no_reg_tests': no_reg_tests_monitors,
164 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800165 }
Bence Balogh4fe9b882022-03-30 15:23:47 +0200166}
Dean Bircha6ede7e2020-03-13 14:00:33 +0000167
Gergely Korcsáka403e222024-04-09 10:51:00 +0200168# FVP with BL1 and BL2 bootloader for Corstone315
169fvp_mps4_cs315_bl1_bl2 = {
Gergely Korcsák2fd397d2024-11-21 10:56:23 +0100170 "templ": "fvp_mps4_cs315.jinja2",
Gergely Korcsáka403e222024-04-09 10:51:00 +0200171 "job_name": "fvp_mps4_cs315_bl1_bl2",
172 "device_type": "fvp",
173 "job_timeout": 15,
174 "action_timeout": 10,
175 "monitor_timeout": 15,
176 "poweroff_timeout": 1,
177 "platforms": {"arm/mps4/corstone315": ""},
178 "binaries": {
179 "bl1": {
180 "data": "spe/bin/bl1_1.bin",
181 "offset": "0x11000000",
182 },
183 "bl2": {
184 "data": "spe/bin/bl2_signed.bin",
185 "offset": "0x12031400",
186 },
187 "cm_prov": {
188 "data": "spe/bin/cm_provisioning_bundle.bin",
189 "offset": "0x12024000",
190 },
191 "dm_prov": {
192 "data": "spe/bin/dm_provisioning_bundle.bin",
193 "offset": "0x1202aa00",
194 },
195 "tfm_s_ns_img": {
196 "data": "nspe/tfm_s_ns_signed.bin",
197 "offset": "0x38000000",
198 }
199 },
200 "monitors": {
201 'no_reg_tests': no_reg_tests_monitors,
202 'reg_tests': reg_tests_monitors,
203 }
204}
205
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200206# FVP with BL1 and BL2 bootloader for Corstone320
207fvp_mps4_cs320_bl1_bl2 = {
Gergely Korcsák2fd397d2024-11-21 10:56:23 +0100208 "templ": "fvp_mps4_cs320.jinja2",
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200209 "job_name": "fvp_mps4_cs320_bl1_bl2",
210 "device_type": "fvp",
211 "job_timeout": 15,
212 "action_timeout": 10,
213 "monitor_timeout": 15,
214 "poweroff_timeout": 1,
215 "platforms": {"arm/mps4/corstone320": ""},
216 "binaries": {
217 "bl1": {
218 "data": "spe/bin/bl1_1.bin",
219 "offset": "0x11000000",
220 },
221 "bl2": {
222 "data": "spe/bin/bl2_signed.bin",
223 "offset": "0x12031400",
224 },
225 "cm_prov": {
226 "data": "spe/bin/cm_provisioning_bundle.bin",
227 "offset": "0x12024000",
228 },
229 "dm_prov": {
230 "data": "spe/bin/dm_provisioning_bundle.bin",
231 "offset": "0x1202aa00",
232 },
233 "tfm_s_ns_img": {
234 "data": "nspe/tfm_s_ns_signed.bin",
235 "offset": "0x38000000",
236 }
237 },
238 "monitors": {
239 'no_reg_tests': no_reg_tests_monitors,
240 'reg_tests': reg_tests_monitors,
241 }
242}
243
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000244# FVP with BL1 and BL2 bootloader for Corstone1000
245fvp_corstone1000 = {
246 "templ": "fvp_corstone1000.jinja2",
247 "job_name": "fvp_corstone1000",
248 "device_type": "fvp",
249 "job_timeout": 15,
250 "action_timeout": 10,
251 "monitor_timeout": 15,
252 "poweroff_timeout": 1,
253 "platforms": {"arm/corstone1000": ""},
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000254 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200255 "bl1": {
256 "application": "spe/bin/bl1.bin"
257 },
258 "tfm_s_ns_img": {
259 "data": "spe/bin/cs1000.bin",
260 "offset": "0x68000000",
261 }
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000262 },
263 "monitors": {
264 'reg_tests': reg_tests_monitors if "FVP" in os.getenv('EXTRA_PARAMS') else [],
265 }
266}
Satish Kumar1cfdd912022-08-01 09:24:07 +0100267
Xinyu Zhang22a12752022-10-10 17:21:21 +0800268# FVP with BL2 bootloader for AN521
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800269# application: --application cpu0=bl2.axf
270# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100271fvp_mps2_an521_bl2 = {
272 "templ": "fvp_mps2.jinja2",
273 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000274 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100275 "job_timeout": 15,
276 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800277 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000278 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800279 "platforms": {"arm/mps2/an521": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800280 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200281 "bl2": {
282 "application": "spe/bin/bl2.axf"
283 },
284 "tfm_s_ns_img": {
285 "data": "nspe/tfm_s_ns_signed.bin",
286 "offset": "0x10080000",
287 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800288 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800289 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800290 'no_reg_tests': no_reg_tests_monitors,
291 'reg_tests': reg_tests_monitors,
292 'arch_tests': arch_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800293 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000294}
295
296
Xinyu Zhang22a12752022-10-10 17:21:21 +0800297# FVP with BL2 bootloader for AN519
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800298# application: --application cpu0=bl2.axf
299# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100300fvp_mps2_an519_bl2 = {
301 "templ": "fvp_mps2.jinja2",
302 "job_name": "fvp_mps2_an519_bl2",
303 "device_type": "fvp",
304 "job_timeout": 15,
305 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800306 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100307 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800308 "platforms": {"arm/mps2/an519": ""},
Matthew Hart2c2688f2020-05-26 13:09:20 +0100309 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800310 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200311 "bl2": {
312 "application": "spe/bin/bl2.axf"
313 },
314 "tfm_s_ns_img": {
315 "data": "nspe/tfm_s_ns_signed.bin",
316 "offset": "0x10080000",
317 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800318 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800319 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800320 'no_reg_tests': no_reg_tests_monitors,
321 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800322 }
Matthew Hart2c2688f2020-05-26 13:09:20 +0100323}
324
Jamie Fox82a91d02024-09-27 14:54:14 +0100325# RSE on TC3 FVP
326fvp_rse_tc3 = {
327 "templ": "fvp_rse_tc3.jinja2",
328 "job_name": "fvp_rse_tc3",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100329 "device_type": "fvp",
330 "job_timeout": 15,
331 "action_timeout": 10,
332 "monitor_timeout": 15,
333 "poweroff_timeout": 1,
Jamie Fox82a91d02024-09-27 14:54:14 +0100334 "platforms": {"arm/rse/tc/tc3": ""},
Jamie Fox9283cbc2024-04-22 13:40:01 +0100335 "binaries": {
Gergely Korcsák5c442b32024-06-19 18:23:43 +0200336 "rom": {
337 "data": "spe/bin/rom.bin"
338 },
339 "cm_provisioning_bundle": {
340 "data": "spe/bin/encrypted_cm_provisioning_bundle_0.bin"
341 },
342 "dm_provisioning_bundle": {
343 "data": "spe/bin/encrypted_dm_provisioning_bundle_0.bin"
344 },
345 "flash": {
346 "data": "spe/bin/host_flash.bin"
347 }
Jamie Fox9283cbc2024-04-22 13:40:01 +0100348 },
349 "monitors": {
350 'no_reg_tests': no_reg_tests_monitors,
351 'reg_tests': reg_tests_monitors,
352 }
353}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100354
Antonio de Angelisc7526e82024-10-09 00:12:17 +0200355# QEMU for AN521 with BL2 bootloader
356qemu_mps2_bl2 = {
357 "templ": "qemu_mps2_bl2.jinja2",
358 "job_name": "qemu_mps2_bl2",
359 "device_type": "qemu",
360 "job_timeout": 30,
361 "action_timeout": 20,
362 "monitor_timeout": 20,
363 "poweroff_timeout": 1,
364 "platforms": {"arm/mps2/an521": ""},
365 "binaries": {
366 "mcuboot": {
367 "data": "spe/bin/bl2.bin",
368 "offset": "0x10000000"
369 },
370 "tfm": {
371 "data": "nspe/tfm_s_ns_signed.bin",
372 "offset": "0x10080000"
373 }
374 },
375 "monitors": {
376 # FPU test on AN521 qemu not supported yet
377 'reg_tests': (reg_tests_monitors if 'FPON' not in os.getenv("EXTRA_PARAMS") else [mcuboot_tests_monitor_cfg]),
378 }
379}
380
381
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100382# Musca-B1 with BL2 bootloader
383# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
384# srec_cat bin/bl2.bin -Binary -offset 0xA000000 bin/tfm_s_ns_signed.bin -Binary -offset 0xA020000 -o tfm.hex -Intel
Fathi Boudra31225f72020-11-25 13:51:07 +0100385musca_b1_bl2 = {
386 "templ": "musca_b1.jinja2",
387 "job_name": "musca_b1_bl2",
388 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800389 "job_timeout": 40,
390 "action_timeout": 20,
Arthur She724958f2024-06-03 14:15:35 -0700391 "monitor_timeout": 10,
392 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800393 "platforms": {"arm/musca_b1": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800394 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200395 "test_binary": {
396 "data": "spe/bin/tfm.hex" # firmware
397 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800398 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800399 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800400 'no_reg_tests': no_reg_tests_monitors,
401 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800402 }
Fathi Boudra31225f72020-11-25 13:51:07 +0100403}
404
Arthur She07c91b52021-07-15 15:03:10 -0700405# STM32L562E-DK
406stm32l562e_dk = {
407 "templ": "stm32l562e_dk.jinja2",
408 "job_name": "stm32l562e_dk",
409 "device_type": "stm32l562e-dk",
410 "job_timeout": 24,
411 "action_timeout": 15,
412 "monitor_timeout": 15,
413 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800414 "platforms": {"stm/stm32l562e_dk": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800415 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200416 "tarball": {
417 "data": "spe/api_ns/bin/stm32l562e-dk-tfm.tar.bz2"
418 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800419 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800420 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800421 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800422 }
Arthur She07c91b52021-07-15 15:03:10 -0700423}
Xinyu Zhang97114342021-01-21 14:08:03 +0800424
Arthur She96c6f772023-05-09 21:32:50 -0700425# STM32U5 B-U585I-IOT02A
426b_u585i_iot02a = {
427 "templ": "b_u585i_iot02a.jinja2",
428 "job_name": "b_u585i_iot02a",
429 "device_type": "b-u585i-iot02a",
430 "job_timeout": 5,
431 "action_timeout": 3,
432 "monitor_timeout": 3,
433 "poweroff_timeout": 2,
434 "platforms": {"stm/b_u585i_iot02a": ""},
435 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200436 "tarball": {
437 "data": "spe/api_ns/bin/b_u585i_iot02a-tfm.tar.bz2"
438 }
Arthur She96c6f772023-05-09 21:32:50 -0700439 },
440 "monitors": {
441 'reg_tests': reg_tests_monitors,
442 }
443}
444
Anton Komlev4164ab62024-02-23 10:59:56 +0100445# STM32H5 STM32H573I-DK
446stm32h573i_dk = {
447 "templ": "stm32h573i_dk.jinja2",
448 "job_name": "stm32h573i_dk",
449 "device_type": "stm32h573i-dk",
450 "job_timeout": 5,
451 "action_timeout": 3,
452 "monitor_timeout": 3,
453 "poweroff_timeout": 2,
454 "platforms": {"stm/stm32h573i_dk": ""},
455 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200456 "tarball": {
457 "data": "spe/api_ns/bin/stm32h573i_dk-tfm.tar.bz2"
458 }
Anton Komlev4164ab62024-02-23 10:59:56 +0100459 },
460 "monitors": {
461 'reg_tests': reg_tests_monitors,
462 }
463}
464
Arthur She3c0dadd2021-11-18 21:17:48 -0800465# LPCxpresso55S69
466lpcxpresso55s69 = {
467 "templ": "lpcxpresso55s69.jinja2",
468 "job_name": "lpcxpresso55s69",
469 "device_type": "lpcxpresso55s69",
470 "job_timeout": 24,
471 "action_timeout": 15,
472 "monitor_timeout": 15,
473 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800474 "platforms": {"nxp/lpcxpresso55s69": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800475 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200476 "tarball": {
477 "data": "nspe/bin/lpcxpresso55s69-tfm.tar.bz2"
478 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800479 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800480 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800481 'no_reg_tests': no_reg_tests_monitors,
482 'reg_tests': reg_tests_monitors,
Arthur She3c0dadd2021-11-18 21:17:48 -0800483 }
484}
485
Arthur She87602dc2022-02-06 14:42:18 -0800486# Cypress PSoC64
487psoc64 = {
488 "templ": "psoc64.jinja2",
489 "job_name": "psoc64",
490 "device_type": "cy8ckit-064s0s2-4343w",
Xinyu Zhange8bb1b12022-10-18 17:42:30 +0800491 "job_timeout": 30,
492 "action_timeout": 20,
493 "monitor_timeout": 20,
Arthur She87602dc2022-02-06 14:42:18 -0800494 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800495 "platforms": {"cypress/psoc64": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800496 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200497 "spe": {
498 "data": "spe/bin/tfm_s_signed.hex"
499 },
500 "nspe": {
501 "data": "nspe/tfm_ns_signed.hex"
502 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800503 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800504 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800505 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800506 }
Arthur She87602dc2022-02-06 14:42:18 -0800507}
508
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100509# All configurations should be mapped here
Xinyu Zhang426c7252023-10-12 17:43:53 +0800510# Configs need bl2
511lava_gen_config_map_bl2 = {
Fathi Boudra31225f72020-11-25 13:51:07 +0100512 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh1aa8d582023-08-29 13:10:02 +0200513 "fvp_mps3_cs300_bl2": fvp_mps3_cs300_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100514 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100515 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
Gergely Korcsáka403e222024-04-09 10:51:00 +0200516 "fvp_mps4_cs315_bl1_bl2": fvp_mps4_cs315_bl1_bl2,
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200517 "fvp_mps4_cs320_bl1_bl2": fvp_mps4_cs320_bl1_bl2,
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000518 "fvp_corstone1000": fvp_corstone1000,
Jamie Fox82a91d02024-09-27 14:54:14 +0100519 "fvp_rse_tc3": fvp_rse_tc3,
Antonio de Angelisc7526e82024-10-09 00:12:17 +0200520 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100521 "musca_b1": musca_b1_bl2,
Anton Komlev19b3c0b2024-03-05 16:24:17 +0100522 "stm32l562e_dk": stm32l562e_dk,
Arthur Shecee9f692024-06-10 19:20:00 +0200523 "b_u585i_iot02a": b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +0100524 "stm32h573i_dk": stm32h573i_dk
Xinyu Zhang426c7252023-10-12 17:43:53 +0800525}
526
527# Configs without bl2
528lava_gen_config_map_nobl2 = {
529 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800530 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100531}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100532
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100533lavagen_config_sort_order = [
534 "templ",
535 "job_name",
536 "device_type",
537 "job_timeout",
538 "action_timeout",
539 "monitor_timeout",
540 "recovery_store_url",
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100541 "platforms",
Xinyu Zhang22a12752022-10-10 17:21:21 +0800542 "monitors"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100543]
544
545lava_gen_monitor_sort_order = [
546 'name',
547 'start',
548 'end',
549 'pattern',
550 'fixup',
551]