blob: 2949c8128a3f756e41ddbb015b73cd313d1803b2 [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
Xinyu Zhang32355382023-04-25 17:49:06 +080068arch_tests_monitors_cfg = {
Xinyu Zhang22a12752022-10-10 17:21:21 +080069 'name': 'psa_api_suite',
70 'start': 'Running..',
71 'end': 'Entering standby..',
72 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?)\r?\n"
73 r".+?"
74 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED|SIM ERROR))",
75 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED", "sim_error": "SIM ERROR"},
76}
Paul Sokolovskye3d2bb12022-06-06 17:04:34 +030077
Xinyu Zhang32355382023-04-25 17:49:06 +080078# Group related monitors into same list to simplify the code
79no_reg_tests_monitors = [no_reg_tests_monitors_cfg]
80
81reg_tests_monitors = [] + \
82 ([mcuboot_tests_monitor_cfg] if "RegBL2" in os.getenv("TEST_REGRESSION") and os.getenv("BL2") == "True" else []) + \
83 ([s_reg_tests_monitors_cfg] if "RegS" in os.getenv("TEST_REGRESSION") else []) + \
84 ([ns_reg_tests_monitors_cfg] if "RegNS" in os.getenv("TEST_REGRESSION") else [])
85
86arch_tests_monitors = [arch_tests_monitors_cfg]
87
Paul Sokolovsky6024d012022-01-22 20:21:07 +030088
Xinyu Zhang22a12752022-10-10 17:21:21 +080089# MPS2 with BL2 bootloader for AN521
Fathi Boudracaa90bd2020-12-04 22:00:14 +010090# IMAGE0ADDRESS: 0x10000000
91# IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader
92# IMAGE1ADDRESS: 0x10080000
93# IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010094tfm_mps2_sse_200 = {
Matthew Hart2c2688f2020-05-26 13:09:20 +010095 "templ": "mps2.jinja2",
96 "job_name": "mps2_an521_bl2",
Minos Galanakisafb43152019-09-25 14:17:39 +010097 "device_type": "mps",
Matthew Hart2c2688f2020-05-26 13:09:20 +010098 "job_timeout": 15,
99 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800100 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100101 "poweroff_timeout": 1,
102 "recovery_store_url": "https://ci.trustedfirmware.org/userContent/",
Xinyu Zhang22a12752022-10-10 17:21:21 +0800103 "platforms": {"arm/mps2/an521": "mps2_sse200_an512_new.tar.gz"},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800104 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200105 # Run script references to test_.*/.*.bin
106 # These files will be saved under folders: test_firmware and test_bootloader
107 "test_firmware": {
108 "data": "nspe/tfm_s_ns_signed.bin"
109 },
110 "test_bootloader": {
111 "data": "spe/bin/bl2.bin"
112 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800113 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800114 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800115 'no_reg_tests': no_reg_tests_monitors,
Jianliang Shen9798e552022-11-21 12:55:42 +0800116 # FPU test on FPGA not supported yet
Xinyu Zhang32355382023-04-25 17:49:06 +0800117 'reg_tests': (reg_tests_monitors if 'FPON' not in os.getenv("EXTRA_PARAMS") else [mcuboot_tests_monitor_cfg]),
118 # FF test on FPGA not supported in LAVA yet
119 'arch_tests': (arch_tests_monitors if os.getenv("TEST_PSA_API") != "IPC" else []),
Xinyu Zhang22a12752022-10-10 17:21:21 +0800120 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100121}
122
Bence Balogh1aa8d582023-08-29 13:10:02 +0200123# FVP with BL2 bootloader for Corstone300
Bence Balogh4fe9b882022-03-30 15:23:47 +0200124# firmware <-> ns <-> application: --application cpu0=bl2.axf
125# bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
Bence Balogh1aa8d582023-08-29 13:10:02 +0200126fvp_mps3_cs300_bl2 = {
Bence Balogh4fe9b882022-03-30 15:23:47 +0200127 "templ": "fvp_mps3.jinja2",
Bence Balogh1aa8d582023-08-29 13:10:02 +0200128 "job_name": "fvp_mps3_cs300_bl2",
Bence Balogh4fe9b882022-03-30 15:23:47 +0200129 "device_type": "fvp",
130 "job_timeout": 15,
131 "action_timeout": 10,
132 "monitor_timeout": 15,
133 "poweroff_timeout": 1,
Bence Balogh1aa8d582023-08-29 13:10:02 +0200134 "platforms": {"arm/mps3/corstone300/fvp": ""},
Bence Balogh4fe9b882022-03-30 15:23:47 +0200135 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200136 "bl2": {
137 "application": "spe/bin/bl2.axf"
138 },
139 "tfm_s_ns_img": {
140 "data": "nspe/tfm_s_ns_signed.bin",
141 "offset": "0x38000000",
142 }
Bence Balogh4fe9b882022-03-30 15:23:47 +0200143 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800144 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800145 'no_reg_tests': no_reg_tests_monitors,
146 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800147 }
Bence Balogh4fe9b882022-03-30 15:23:47 +0200148}
Dean Bircha6ede7e2020-03-13 14:00:33 +0000149
Gergely Korcsáka403e222024-04-09 10:51:00 +0200150# FVP with BL1 and BL2 bootloader for Corstone315
151fvp_mps4_cs315_bl1_bl2 = {
152 "templ": "fvp_mps4.jinja2",
153 "job_name": "fvp_mps4_cs315_bl1_bl2",
154 "device_type": "fvp",
155 "job_timeout": 15,
156 "action_timeout": 10,
157 "monitor_timeout": 15,
158 "poweroff_timeout": 1,
159 "platforms": {"arm/mps4/corstone315": ""},
160 "binaries": {
161 "bl1": {
162 "data": "spe/bin/bl1_1.bin",
163 "offset": "0x11000000",
164 },
165 "bl2": {
166 "data": "spe/bin/bl2_signed.bin",
167 "offset": "0x12031400",
168 },
169 "cm_prov": {
170 "data": "spe/bin/cm_provisioning_bundle.bin",
171 "offset": "0x12024000",
172 },
173 "dm_prov": {
174 "data": "spe/bin/dm_provisioning_bundle.bin",
175 "offset": "0x1202aa00",
176 },
177 "tfm_s_ns_img": {
178 "data": "nspe/tfm_s_ns_signed.bin",
179 "offset": "0x38000000",
180 }
181 },
182 "monitors": {
183 'no_reg_tests': no_reg_tests_monitors,
184 'reg_tests': reg_tests_monitors,
185 }
186}
187
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000188# FVP with BL1 and BL2 bootloader for Corstone1000
189fvp_corstone1000 = {
190 "templ": "fvp_corstone1000.jinja2",
191 "job_name": "fvp_corstone1000",
192 "device_type": "fvp",
193 "job_timeout": 15,
194 "action_timeout": 10,
195 "monitor_timeout": 15,
196 "poweroff_timeout": 1,
197 "platforms": {"arm/corstone1000": ""},
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000198 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200199 "bl1": {
200 "application": "spe/bin/bl1.bin"
201 },
202 "tfm_s_ns_img": {
203 "data": "spe/bin/cs1000.bin",
204 "offset": "0x68000000",
205 }
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000206 },
207 "monitors": {
208 'reg_tests': reg_tests_monitors if "FVP" in os.getenv('EXTRA_PARAMS') else [],
209 }
210}
Satish Kumar1cfdd912022-08-01 09:24:07 +0100211
Xinyu Zhang22a12752022-10-10 17:21:21 +0800212# FVP with BL2 bootloader for AN521
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800213# application: --application cpu0=bl2.axf
214# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100215fvp_mps2_an521_bl2 = {
216 "templ": "fvp_mps2.jinja2",
217 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000218 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100219 "job_timeout": 15,
220 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800221 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000222 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800223 "platforms": {"arm/mps2/an521": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800224 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200225 "bl2": {
226 "application": "spe/bin/bl2.axf"
227 },
228 "tfm_s_ns_img": {
229 "data": "nspe/tfm_s_ns_signed.bin",
230 "offset": "0x10080000",
231 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800232 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800233 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800234 'no_reg_tests': no_reg_tests_monitors,
235 'reg_tests': reg_tests_monitors,
236 'arch_tests': arch_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800237 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000238}
239
240
Xinyu Zhang22a12752022-10-10 17:21:21 +0800241# FVP with BL2 bootloader for AN519
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800242# application: --application cpu0=bl2.axf
243# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100244fvp_mps2_an519_bl2 = {
245 "templ": "fvp_mps2.jinja2",
246 "job_name": "fvp_mps2_an519_bl2",
247 "device_type": "fvp",
248 "job_timeout": 15,
249 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800250 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100251 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800252 "platforms": {"arm/mps2/an519": ""},
Matthew Hart2c2688f2020-05-26 13:09:20 +0100253 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800254 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200255 "bl2": {
256 "application": "spe/bin/bl2.axf"
257 },
258 "tfm_s_ns_img": {
259 "data": "nspe/tfm_s_ns_signed.bin",
260 "offset": "0x10080000",
261 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800262 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800263 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800264 'no_reg_tests': no_reg_tests_monitors,
265 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800266 }
Matthew Hart2c2688f2020-05-26 13:09:20 +0100267}
268
Jamie Fox9283cbc2024-04-22 13:40:01 +0100269# RSE on TC FVP
270fvp_rse_tc = {
271 "templ": "fvp_rse_tc.jinja2",
272 "job_name": "fvp_rse_tc",
273 "device_type": "fvp",
274 "job_timeout": 15,
275 "action_timeout": 10,
276 "monitor_timeout": 15,
277 "poweroff_timeout": 1,
278 "platforms": {"arm/rse/tc": ""},
279 "binaries": {
280 "rom": "spe/bin/rom.bin",
281 "cm_provisioning_bundle": "spe/bin/encrypted_cm_provisioning_bundle_0.bin",
282 "dm_provisioning_bundle": "spe/bin/encrypted_dm_provisioning_bundle_0.bin",
283 "flash": "spe/bin/host_flash.bin"
284 },
285 "monitors": {
286 'no_reg_tests': no_reg_tests_monitors,
287 'reg_tests': reg_tests_monitors,
288 }
289}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100290
Xinyu Zhang22a12752022-10-10 17:21:21 +0800291# QEMU for AN521 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100292qemu_mps2_bl2 = {
293 "templ": "qemu_mps2_bl2.jinja2",
294 "job_name": "qemu_mps2_bl2",
295 "device_type": "qemu",
Xinyu Zhang5dcb0d52022-10-24 14:10:19 +0800296 "job_timeout": 30,
297 "action_timeout": 20,
298 "monitor_timeout": 20,
Xinyu Zhangaad0e642022-08-09 14:28:58 +0800299 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800300 "platforms": {"arm/mps2/an521": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800301 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200302 "mcuboot": {
303 "data": "spe/bin/bl2.bin",
304 "offset": "0x10000000"
305 },
306 "tfm": {
307 "data": "nspe/tfm_s_ns_signed.bin",
308 "offset": "0x10080000"
309 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800310 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800311 "monitors": {
Jianliang Shen9798e552022-11-21 12:55:42 +0800312 # FPU test on AN521 qemu not supported yet
Xinyu Zhang32355382023-04-25 17:49:06 +0800313 '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 +0800314 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100315}
316
317
318# Musca-B1 with BL2 bootloader
319# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
320# 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 +0100321musca_b1_bl2 = {
322 "templ": "musca_b1.jinja2",
323 "job_name": "musca_b1_bl2",
324 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800325 "job_timeout": 40,
326 "action_timeout": 20,
Arthur She724958f2024-06-03 14:15:35 -0700327 "monitor_timeout": 10,
328 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800329 "platforms": {"arm/musca_b1": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800330 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200331 "test_binary": {
332 "data": "spe/bin/tfm.hex" # firmware
333 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800334 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800335 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800336 'no_reg_tests': no_reg_tests_monitors,
337 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800338 }
Fathi Boudra31225f72020-11-25 13:51:07 +0100339}
340
Arthur She07c91b52021-07-15 15:03:10 -0700341# STM32L562E-DK
342stm32l562e_dk = {
343 "templ": "stm32l562e_dk.jinja2",
344 "job_name": "stm32l562e_dk",
345 "device_type": "stm32l562e-dk",
346 "job_timeout": 24,
347 "action_timeout": 15,
348 "monitor_timeout": 15,
349 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800350 "platforms": {"stm/stm32l562e_dk": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800351 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200352 "tarball": {
353 "data": "spe/api_ns/bin/stm32l562e-dk-tfm.tar.bz2"
354 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800355 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800356 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800357 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800358 }
Arthur She07c91b52021-07-15 15:03:10 -0700359}
Xinyu Zhang97114342021-01-21 14:08:03 +0800360
Arthur She96c6f772023-05-09 21:32:50 -0700361# STM32U5 B-U585I-IOT02A
362b_u585i_iot02a = {
363 "templ": "b_u585i_iot02a.jinja2",
364 "job_name": "b_u585i_iot02a",
365 "device_type": "b-u585i-iot02a",
366 "job_timeout": 5,
367 "action_timeout": 3,
368 "monitor_timeout": 3,
369 "poweroff_timeout": 2,
370 "platforms": {"stm/b_u585i_iot02a": ""},
371 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200372 "tarball": {
373 "data": "spe/api_ns/bin/b_u585i_iot02a-tfm.tar.bz2"
374 }
Arthur She96c6f772023-05-09 21:32:50 -0700375 },
376 "monitors": {
377 'reg_tests': reg_tests_monitors,
378 }
379}
380
Anton Komlev4164ab62024-02-23 10:59:56 +0100381# STM32H5 STM32H573I-DK
382stm32h573i_dk = {
383 "templ": "stm32h573i_dk.jinja2",
384 "job_name": "stm32h573i_dk",
385 "device_type": "stm32h573i-dk",
386 "job_timeout": 5,
387 "action_timeout": 3,
388 "monitor_timeout": 3,
389 "poweroff_timeout": 2,
390 "platforms": {"stm/stm32h573i_dk": ""},
391 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200392 "tarball": {
393 "data": "spe/api_ns/bin/stm32h573i_dk-tfm.tar.bz2"
394 }
Anton Komlev4164ab62024-02-23 10:59:56 +0100395 },
396 "monitors": {
397 'reg_tests': reg_tests_monitors,
398 }
399}
400
Arthur She3c0dadd2021-11-18 21:17:48 -0800401# LPCxpresso55S69
402lpcxpresso55s69 = {
403 "templ": "lpcxpresso55s69.jinja2",
404 "job_name": "lpcxpresso55s69",
405 "device_type": "lpcxpresso55s69",
406 "job_timeout": 24,
407 "action_timeout": 15,
408 "monitor_timeout": 15,
409 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800410 "platforms": {"nxp/lpcxpresso55s69": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800411 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200412 "tarball": {
413 "data": "nspe/bin/lpcxpresso55s69-tfm.tar.bz2"
414 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800415 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800416 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800417 'no_reg_tests': no_reg_tests_monitors,
418 'reg_tests': reg_tests_monitors,
Arthur She3c0dadd2021-11-18 21:17:48 -0800419 }
420}
421
Arthur She87602dc2022-02-06 14:42:18 -0800422# Cypress PSoC64
423psoc64 = {
424 "templ": "psoc64.jinja2",
425 "job_name": "psoc64",
426 "device_type": "cy8ckit-064s0s2-4343w",
Xinyu Zhange8bb1b12022-10-18 17:42:30 +0800427 "job_timeout": 30,
428 "action_timeout": 20,
429 "monitor_timeout": 20,
Arthur She87602dc2022-02-06 14:42:18 -0800430 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800431 "platforms": {"cypress/psoc64": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800432 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200433 "spe": {
434 "data": "spe/bin/tfm_s_signed.hex"
435 },
436 "nspe": {
437 "data": "nspe/tfm_ns_signed.hex"
438 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800439 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800440 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800441 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800442 }
Arthur She87602dc2022-02-06 14:42:18 -0800443}
444
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100445# All configurations should be mapped here
Xinyu Zhang426c7252023-10-12 17:43:53 +0800446# Configs need bl2
447lava_gen_config_map_bl2 = {
Fathi Boudra31225f72020-11-25 13:51:07 +0100448 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh1aa8d582023-08-29 13:10:02 +0200449 "fvp_mps3_cs300_bl2": fvp_mps3_cs300_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100450 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100451 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
Gergely Korcsáka403e222024-04-09 10:51:00 +0200452 "fvp_mps4_cs315_bl1_bl2": fvp_mps4_cs315_bl1_bl2,
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000453 "fvp_corstone1000": fvp_corstone1000,
Jamie Fox9283cbc2024-04-22 13:40:01 +0100454 "fvp_rse_tc": fvp_rse_tc,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100455 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100456 "musca_b1": musca_b1_bl2,
Anton Komlev19b3c0b2024-03-05 16:24:17 +0100457 "stm32l562e_dk": stm32l562e_dk,
Arthur Shecee9f692024-06-10 19:20:00 +0200458 "b_u585i_iot02a": b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +0100459 "stm32h573i_dk": stm32h573i_dk
Xinyu Zhang426c7252023-10-12 17:43:53 +0800460}
461
462# Configs without bl2
463lava_gen_config_map_nobl2 = {
464 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800465 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100466}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100467
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100468lavagen_config_sort_order = [
469 "templ",
470 "job_name",
471 "device_type",
472 "job_timeout",
473 "action_timeout",
474 "monitor_timeout",
475 "recovery_store_url",
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100476 "platforms",
Xinyu Zhang22a12752022-10-10 17:21:21 +0800477 "monitors"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100478]
479
480lava_gen_monitor_sort_order = [
481 'name',
482 'start',
483 'end',
484 'pattern',
485 'fixup',
486]