blob: 3bc6ab30bfdd91202a598469b8cfd6dbf2bc98c5 [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
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000150# FVP with BL1 and BL2 bootloader for Corstone1000
151fvp_corstone1000 = {
152 "templ": "fvp_corstone1000.jinja2",
153 "job_name": "fvp_corstone1000",
154 "device_type": "fvp",
155 "job_timeout": 15,
156 "action_timeout": 10,
157 "monitor_timeout": 15,
158 "poweroff_timeout": 1,
159 "platforms": {"arm/corstone1000": ""},
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000160 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200161 "bl1": {
162 "application": "spe/bin/bl1.bin"
163 },
164 "tfm_s_ns_img": {
165 "data": "spe/bin/cs1000.bin",
166 "offset": "0x68000000",
167 }
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000168 },
169 "monitors": {
170 'reg_tests': reg_tests_monitors if "FVP" in os.getenv('EXTRA_PARAMS') else [],
171 }
172}
Satish Kumar1cfdd912022-08-01 09:24:07 +0100173
Xinyu Zhang22a12752022-10-10 17:21:21 +0800174# FVP with BL2 bootloader for AN521
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800175# application: --application cpu0=bl2.axf
176# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100177fvp_mps2_an521_bl2 = {
178 "templ": "fvp_mps2.jinja2",
179 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000180 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100181 "job_timeout": 15,
182 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800183 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000184 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800185 "platforms": {"arm/mps2/an521": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800186 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200187 "bl2": {
188 "application": "spe/bin/bl2.axf"
189 },
190 "tfm_s_ns_img": {
191 "data": "nspe/tfm_s_ns_signed.bin",
192 "offset": "0x10080000",
193 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800194 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800195 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800196 'no_reg_tests': no_reg_tests_monitors,
197 'reg_tests': reg_tests_monitors,
198 'arch_tests': arch_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800199 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000200}
201
202
Xinyu Zhang22a12752022-10-10 17:21:21 +0800203# FVP with BL2 bootloader for AN519
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800204# application: --application cpu0=bl2.axf
205# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100206fvp_mps2_an519_bl2 = {
207 "templ": "fvp_mps2.jinja2",
208 "job_name": "fvp_mps2_an519_bl2",
209 "device_type": "fvp",
210 "job_timeout": 15,
211 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800212 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100213 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800214 "platforms": {"arm/mps2/an519": ""},
Matthew Hart2c2688f2020-05-26 13:09:20 +0100215 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800216 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200217 "bl2": {
218 "application": "spe/bin/bl2.axf"
219 },
220 "tfm_s_ns_img": {
221 "data": "nspe/tfm_s_ns_signed.bin",
222 "offset": "0x10080000",
223 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800224 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800225 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800226 'no_reg_tests': no_reg_tests_monitors,
227 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800228 }
Matthew Hart2c2688f2020-05-26 13:09:20 +0100229}
230
Jamie Fox9283cbc2024-04-22 13:40:01 +0100231# RSE on TC FVP
232fvp_rse_tc = {
233 "templ": "fvp_rse_tc.jinja2",
234 "job_name": "fvp_rse_tc",
235 "device_type": "fvp",
236 "job_timeout": 15,
237 "action_timeout": 10,
238 "monitor_timeout": 15,
239 "poweroff_timeout": 1,
240 "platforms": {"arm/rse/tc": ""},
241 "binaries": {
242 "rom": "spe/bin/rom.bin",
243 "cm_provisioning_bundle": "spe/bin/encrypted_cm_provisioning_bundle_0.bin",
244 "dm_provisioning_bundle": "spe/bin/encrypted_dm_provisioning_bundle_0.bin",
245 "flash": "spe/bin/host_flash.bin"
246 },
247 "monitors": {
248 'no_reg_tests': no_reg_tests_monitors,
249 'reg_tests': reg_tests_monitors,
250 }
251}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100252
Xinyu Zhang22a12752022-10-10 17:21:21 +0800253# QEMU for AN521 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100254qemu_mps2_bl2 = {
255 "templ": "qemu_mps2_bl2.jinja2",
256 "job_name": "qemu_mps2_bl2",
257 "device_type": "qemu",
Xinyu Zhang5dcb0d52022-10-24 14:10:19 +0800258 "job_timeout": 30,
259 "action_timeout": 20,
260 "monitor_timeout": 20,
Xinyu Zhangaad0e642022-08-09 14:28:58 +0800261 "poweroff_timeout": 1,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800262 "platforms": {"arm/mps2/an521": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800263 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200264 "mcuboot": {
265 "data": "spe/bin/bl2.bin",
266 "offset": "0x10000000"
267 },
268 "tfm": {
269 "data": "nspe/tfm_s_ns_signed.bin",
270 "offset": "0x10080000"
271 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800272 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800273 "monitors": {
Jianliang Shen9798e552022-11-21 12:55:42 +0800274 # FPU test on AN521 qemu not supported yet
Xinyu Zhang32355382023-04-25 17:49:06 +0800275 '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 +0800276 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100277}
278
279
280# Musca-B1 with BL2 bootloader
281# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
282# 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 +0100283musca_b1_bl2 = {
284 "templ": "musca_b1.jinja2",
285 "job_name": "musca_b1_bl2",
286 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800287 "job_timeout": 40,
288 "action_timeout": 20,
Arthur She724958f2024-06-03 14:15:35 -0700289 "monitor_timeout": 10,
290 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800291 "platforms": {"arm/musca_b1": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800292 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200293 "test_binary": {
294 "data": "spe/bin/tfm.hex" # firmware
295 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800296 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800297 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800298 'no_reg_tests': no_reg_tests_monitors,
299 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800300 }
Fathi Boudra31225f72020-11-25 13:51:07 +0100301}
302
Arthur She07c91b52021-07-15 15:03:10 -0700303# STM32L562E-DK
304stm32l562e_dk = {
305 "templ": "stm32l562e_dk.jinja2",
306 "job_name": "stm32l562e_dk",
307 "device_type": "stm32l562e-dk",
308 "job_timeout": 24,
309 "action_timeout": 15,
310 "monitor_timeout": 15,
311 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800312 "platforms": {"stm/stm32l562e_dk": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800313 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200314 "tarball": {
315 "data": "spe/api_ns/bin/stm32l562e-dk-tfm.tar.bz2"
316 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800317 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800318 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800319 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800320 }
Arthur She07c91b52021-07-15 15:03:10 -0700321}
Xinyu Zhang97114342021-01-21 14:08:03 +0800322
Arthur She96c6f772023-05-09 21:32:50 -0700323# STM32U5 B-U585I-IOT02A
324b_u585i_iot02a = {
325 "templ": "b_u585i_iot02a.jinja2",
326 "job_name": "b_u585i_iot02a",
327 "device_type": "b-u585i-iot02a",
328 "job_timeout": 5,
329 "action_timeout": 3,
330 "monitor_timeout": 3,
331 "poweroff_timeout": 2,
332 "platforms": {"stm/b_u585i_iot02a": ""},
333 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200334 "tarball": {
335 "data": "spe/api_ns/bin/b_u585i_iot02a-tfm.tar.bz2"
336 }
Arthur She96c6f772023-05-09 21:32:50 -0700337 },
338 "monitors": {
339 'reg_tests': reg_tests_monitors,
340 }
341}
342
Anton Komlev4164ab62024-02-23 10:59:56 +0100343# STM32H5 STM32H573I-DK
344stm32h573i_dk = {
345 "templ": "stm32h573i_dk.jinja2",
346 "job_name": "stm32h573i_dk",
347 "device_type": "stm32h573i-dk",
348 "job_timeout": 5,
349 "action_timeout": 3,
350 "monitor_timeout": 3,
351 "poweroff_timeout": 2,
352 "platforms": {"stm/stm32h573i_dk": ""},
353 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200354 "tarball": {
355 "data": "spe/api_ns/bin/stm32h573i_dk-tfm.tar.bz2"
356 }
Anton Komlev4164ab62024-02-23 10:59:56 +0100357 },
358 "monitors": {
359 'reg_tests': reg_tests_monitors,
360 }
361}
362
Arthur She3c0dadd2021-11-18 21:17:48 -0800363# LPCxpresso55S69
364lpcxpresso55s69 = {
365 "templ": "lpcxpresso55s69.jinja2",
366 "job_name": "lpcxpresso55s69",
367 "device_type": "lpcxpresso55s69",
368 "job_timeout": 24,
369 "action_timeout": 15,
370 "monitor_timeout": 15,
371 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800372 "platforms": {"nxp/lpcxpresso55s69": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800373 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200374 "tarball": {
375 "data": "nspe/bin/lpcxpresso55s69-tfm.tar.bz2"
376 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800377 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800378 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800379 'no_reg_tests': no_reg_tests_monitors,
380 'reg_tests': reg_tests_monitors,
Arthur She3c0dadd2021-11-18 21:17:48 -0800381 }
382}
383
Arthur She87602dc2022-02-06 14:42:18 -0800384# Cypress PSoC64
385psoc64 = {
386 "templ": "psoc64.jinja2",
387 "job_name": "psoc64",
388 "device_type": "cy8ckit-064s0s2-4343w",
Xinyu Zhange8bb1b12022-10-18 17:42:30 +0800389 "job_timeout": 30,
390 "action_timeout": 20,
391 "monitor_timeout": 20,
Arthur She87602dc2022-02-06 14:42:18 -0800392 "poweroff_timeout": 5,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800393 "platforms": {"cypress/psoc64": ""},
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800394 "binaries": {
Gergely Korcsákac2d0f02024-05-28 08:23:04 +0200395 "spe": {
396 "data": "spe/bin/tfm_s_signed.hex"
397 },
398 "nspe": {
399 "data": "nspe/tfm_ns_signed.hex"
400 }
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800401 },
Xinyu Zhang22a12752022-10-10 17:21:21 +0800402 "monitors": {
Xinyu Zhang32355382023-04-25 17:49:06 +0800403 'reg_tests': reg_tests_monitors,
Xinyu Zhang22a12752022-10-10 17:21:21 +0800404 }
Arthur She87602dc2022-02-06 14:42:18 -0800405}
406
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100407# All configurations should be mapped here
Xinyu Zhang426c7252023-10-12 17:43:53 +0800408# Configs need bl2
409lava_gen_config_map_bl2 = {
Fathi Boudra31225f72020-11-25 13:51:07 +0100410 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh1aa8d582023-08-29 13:10:02 +0200411 "fvp_mps3_cs300_bl2": fvp_mps3_cs300_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100412 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100413 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
Mohamed Omar Asakera7139722023-03-03 10:42:53 +0000414 "fvp_corstone1000": fvp_corstone1000,
Jamie Fox9283cbc2024-04-22 13:40:01 +0100415 "fvp_rse_tc": fvp_rse_tc,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100416 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100417 "musca_b1": musca_b1_bl2,
Anton Komlev19b3c0b2024-03-05 16:24:17 +0100418 "stm32l562e_dk": stm32l562e_dk,
Arthur Shecee9f692024-06-10 19:20:00 +0200419 "b_u585i_iot02a": b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +0100420 "stm32h573i_dk": stm32h573i_dk
Xinyu Zhang426c7252023-10-12 17:43:53 +0800421}
422
423# Configs without bl2
424lava_gen_config_map_nobl2 = {
425 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800426 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100427}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100428
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100429lavagen_config_sort_order = [
430 "templ",
431 "job_name",
432 "device_type",
433 "job_timeout",
434 "action_timeout",
435 "monitor_timeout",
436 "recovery_store_url",
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100437 "platforms",
Xinyu Zhang22a12752022-10-10 17:21:21 +0800438 "monitors"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100439]
440
441lava_gen_monitor_sort_order = [
442 'name',
443 'start',
444 'end',
445 'pattern',
446 'fixup',
447]