blob: be359b0a4d996834238cabdfc4e09241fa2ee394 [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 = {
170 "templ": "fvp_mps4.jinja2",
171 "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
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000206# FVP with BL1 and BL2 bootloader for Corstone1000
207fvp_corstone1000 = {
208 "templ": "fvp_corstone1000.jinja2",
209 "job_name": "fvp_corstone1000",
210 "device_type": "fvp",
211 "job_timeout": 15,
212 "action_timeout": 10,
213 "monitor_timeout": 15,
214 "poweroff_timeout": 1,
215 "platforms": {"arm/corstone1000": ""},
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000216 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200217 "bl1": {
218 "application": "spe/bin/bl1.bin"
219 },
220 "tfm_s_ns_img": {
221 "data": "spe/bin/cs1000.bin",
222 "offset": "0x68000000",
223 }
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000224 },
225 "monitors": {
226 'reg_tests': reg_tests_monitors if "FVP" in os.getenv('EXTRA_PARAMS') else [],
227 }
228}
Satish Kumar1cfdd912022-08-01 09:24:07 +0100229
Xinyu Zhang22a12752022-10-10 17:21:21 +0800230# FVP with BL2 bootloader for AN521
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800231# application: --application cpu0=bl2.axf
232# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100233fvp_mps2_an521_bl2 = {
234 "templ": "fvp_mps2.jinja2",
235 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000236 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100237 "job_timeout": 15,
238 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800239 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000240 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800241 "platforms": {"arm/mps2/an521": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800242 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200243 "bl2": {
244 "application": "spe/bin/bl2.axf"
245 },
246 "tfm_s_ns_img": {
247 "data": "nspe/tfm_s_ns_signed.bin",
248 "offset": "0x10080000",
249 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800250 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800251 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800252 'no_reg_tests': no_reg_tests_monitors,
253 'reg_tests': reg_tests_monitors,
254 'arch_tests': arch_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800255 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000256}
257
258
Xinyu Zhang22a12752022-10-10 17:21:21 +0800259# FVP with BL2 bootloader for AN519
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800260# application: --application cpu0=bl2.axf
261# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100262fvp_mps2_an519_bl2 = {
263 "templ": "fvp_mps2.jinja2",
264 "job_name": "fvp_mps2_an519_bl2",
265 "device_type": "fvp",
266 "job_timeout": 15,
267 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800268 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100269 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800270 "platforms": {"arm/mps2/an519": ""},
Matthew Hart2c2688f2020-05-26 13:09:20 +0100271 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800272 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200273 "bl2": {
274 "application": "spe/bin/bl2.axf"
275 },
276 "tfm_s_ns_img": {
277 "data": "nspe/tfm_s_ns_signed.bin",
278 "offset": "0x10080000",
279 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800280 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800281 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800282 'no_reg_tests': no_reg_tests_monitors,
283 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800284 }
Matthew Hart2c2688f2020-05-26 13:09:20 +0100285}
286
Jamie Fox82a91d02024-09-27 14:54:14 +0100287# RSE on TC3 FVP
288fvp_rse_tc3 = {
289 "templ": "fvp_rse_tc3.jinja2",
290 "job_name": "fvp_rse_tc3",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100291 "device_type": "fvp",
292 "job_timeout": 15,
293 "action_timeout": 10,
294 "monitor_timeout": 15,
295 "poweroff_timeout": 1,
Jamie Fox82a91d02024-09-27 14:54:14 +0100296 "platforms": {"arm/rse/tc/tc3": ""},
Jamie Fox9283cbc2024-04-22 13:40:01 +0100297 "binaries": {
Gergely Korcsák5c442b32024-06-19 18:23:43 +0200298 "rom": {
299 "data": "spe/bin/rom.bin"
300 },
301 "cm_provisioning_bundle": {
302 "data": "spe/bin/encrypted_cm_provisioning_bundle_0.bin"
303 },
304 "dm_provisioning_bundle": {
305 "data": "spe/bin/encrypted_dm_provisioning_bundle_0.bin"
306 },
307 "flash": {
308 "data": "spe/bin/host_flash.bin"
309 }
Jamie Fox9283cbc2024-04-22 13:40:01 +0100310 },
311 "monitors": {
312 'no_reg_tests': no_reg_tests_monitors,
313 'reg_tests': reg_tests_monitors,
314 }
315}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100316
Xinyu Zhang22a12752022-10-10 17:21:21 +0800317# QEMU for AN521 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100318qemu_mps2_bl2 = {
319 "templ": "qemu_mps2_bl2.jinja2",
320 "job_name": "qemu_mps2_bl2",
321 "device_type": "qemu",
Xinyu Zhang5dcb0d52022-10-24 14:10:19 +0800322 "job_timeout": 30,
323 "action_timeout": 20,
324 "monitor_timeout": 20,
Xinyu Zhangaad0e642022-08-09 14:28:58 +0800325 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800326 "platforms": {"arm/mps2/an521": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800327 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200328 "mcuboot": {
329 "data": "spe/bin/bl2.bin",
330 "offset": "0x10000000"
331 },
332 "tfm": {
333 "data": "nspe/tfm_s_ns_signed.bin",
334 "offset": "0x10080000"
335 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800336 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800337 "monitors": {
Jianliang Shen9798e552022-11-21 12:55:42 +0800338 # FPU test on AN521 qemu not supported yet
Xinyu Zhang32355382023-04-25 17:49:06 +0800339 'reg_tests': (reg_tests_monitors if 'FPON' not in os.getenv("EXTRA_PARAMS") else [mcuboot_tests_monitor_cfg]),
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800340 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100341}
342
343
344# Musca-B1 with BL2 bootloader
345# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
346# 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 +0100347musca_b1_bl2 = {
348 "templ": "musca_b1.jinja2",
349 "job_name": "musca_b1_bl2",
350 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800351 "job_timeout": 40,
352 "action_timeout": 20,
Arthur She724958f2024-06-03 14:15:35 -0700353 "monitor_timeout": 10,
354 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800355 "platforms": {"arm/musca_b1": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800356 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200357 "test_binary": {
358 "data": "spe/bin/tfm.hex" # firmware
359 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800360 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800361 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800362 'no_reg_tests': no_reg_tests_monitors,
363 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800364 }
Fathi Boudra31225f72020-11-25 13:51:07 +0100365}
366
Arthur She07c91b52021-07-15 15:03:10 -0700367# STM32L562E-DK
368stm32l562e_dk = {
369 "templ": "stm32l562e_dk.jinja2",
370 "job_name": "stm32l562e_dk",
371 "device_type": "stm32l562e-dk",
372 "job_timeout": 24,
373 "action_timeout": 15,
374 "monitor_timeout": 15,
375 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800376 "platforms": {"stm/stm32l562e_dk": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800377 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200378 "tarball": {
379 "data": "spe/api_ns/bin/stm32l562e-dk-tfm.tar.bz2"
380 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800381 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800382 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800383 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800384 }
Arthur She07c91b52021-07-15 15:03:10 -0700385}
Xinyu Zhang97114342021-01-21 14:08:03 +0800386
Arthur She96c6f772023-05-09 21:32:50 -0700387# STM32U5 B-U585I-IOT02A
388b_u585i_iot02a = {
389 "templ": "b_u585i_iot02a.jinja2",
390 "job_name": "b_u585i_iot02a",
391 "device_type": "b-u585i-iot02a",
392 "job_timeout": 5,
393 "action_timeout": 3,
394 "monitor_timeout": 3,
395 "poweroff_timeout": 2,
396 "platforms": {"stm/b_u585i_iot02a": ""},
397 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200398 "tarball": {
399 "data": "spe/api_ns/bin/b_u585i_iot02a-tfm.tar.bz2"
400 }
Arthur She96c6f772023-05-09 21:32:50 -0700401 },
402 "monitors": {
403 'reg_tests': reg_tests_monitors,
404 }
405}
406
Anton Komlev4164ab62024-02-23 10:59:56 +0100407# STM32H5 STM32H573I-DK
408stm32h573i_dk = {
409 "templ": "stm32h573i_dk.jinja2",
410 "job_name": "stm32h573i_dk",
411 "device_type": "stm32h573i-dk",
412 "job_timeout": 5,
413 "action_timeout": 3,
414 "monitor_timeout": 3,
415 "poweroff_timeout": 2,
416 "platforms": {"stm/stm32h573i_dk": ""},
417 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200418 "tarball": {
419 "data": "spe/api_ns/bin/stm32h573i_dk-tfm.tar.bz2"
420 }
Anton Komlev4164ab62024-02-23 10:59:56 +0100421 },
422 "monitors": {
423 'reg_tests': reg_tests_monitors,
424 }
425}
426
Arthur She3c0dadd2021-11-18 21:17:48 -0800427# LPCxpresso55S69
428lpcxpresso55s69 = {
429 "templ": "lpcxpresso55s69.jinja2",
430 "job_name": "lpcxpresso55s69",
431 "device_type": "lpcxpresso55s69",
432 "job_timeout": 24,
433 "action_timeout": 15,
434 "monitor_timeout": 15,
435 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800436 "platforms": {"nxp/lpcxpresso55s69": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800437 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200438 "tarball": {
439 "data": "nspe/bin/lpcxpresso55s69-tfm.tar.bz2"
440 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800441 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800442 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800443 'no_reg_tests': no_reg_tests_monitors,
444 'reg_tests': reg_tests_monitors,
Arthur She3c0dadd2021-11-18 21:17:48 -0800445 }
446}
447
Arthur She87602dc2022-02-06 14:42:18 -0800448# Cypress PSoC64
449psoc64 = {
450 "templ": "psoc64.jinja2",
451 "job_name": "psoc64",
452 "device_type": "cy8ckit-064s0s2-4343w",
Xinyu Zhange8bb1b12022-10-18 17:42:30 +0800453 "job_timeout": 30,
454 "action_timeout": 20,
455 "monitor_timeout": 20,
Arthur She87602dc2022-02-06 14:42:18 -0800456 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800457 "platforms": {"cypress/psoc64": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800458 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200459 "spe": {
460 "data": "spe/bin/tfm_s_signed.hex"
461 },
462 "nspe": {
463 "data": "nspe/tfm_ns_signed.hex"
464 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800465 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800466 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800467 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800468 }
Arthur She87602dc2022-02-06 14:42:18 -0800469}
470
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100471# All configurations should be mapped here
Xinyu Zhang426c7252023-10-12 17:43:53 +0800472# Configs need bl2
473lava_gen_config_map_bl2 = {
Fathi Boudra31225f72020-11-25 13:51:07 +0100474 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh1aa8d582023-08-29 13:10:02 +0200475 "fvp_mps3_cs300_bl2": fvp_mps3_cs300_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100476 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100477 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
Gergely Korcsáka403e222024-04-09 10:51:00 +0200478 "fvp_mps4_cs315_bl1_bl2": fvp_mps4_cs315_bl1_bl2,
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000479 "fvp_corstone1000": fvp_corstone1000,
Jamie Fox82a91d02024-09-27 14:54:14 +0100480 "fvp_rse_tc3": fvp_rse_tc3,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100481 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100482 "musca_b1": musca_b1_bl2,
Anton Komlev19b3c0b2024-03-05 16:24:17 +0100483 "stm32l562e_dk": stm32l562e_dk,
Arthur Shecee9f692024-06-10 19:20:00 +0200484 "b_u585i_iot02a": b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +0100485 "stm32h573i_dk": stm32h573i_dk
Xinyu Zhang426c7252023-10-12 17:43:53 +0800486}
487
488# Configs without bl2
489lava_gen_config_map_nobl2 = {
490 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800491 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100492}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100493
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100494lavagen_config_sort_order = [
495 "templ",
496 "job_name",
497 "device_type",
498 "job_timeout",
499 "action_timeout",
500 "monitor_timeout",
501 "recovery_store_url",
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100502 "platforms",
Xinyu Zhang22a12752022-10-10 17:21:21 +0800503 "monitors"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100504]
505
506lava_gen_monitor_sort_order = [
507 'name',
508 'start',
509 'end',
510 'pattern',
511 'fixup',
512]