blob: 5aae96589916d7f43fb3cb10b7198c584e5cba98 [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/*
Xinyu Zhang04d77472022-03-21 14:37:37 +080011 * Copyright (c) 2018-2022, 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
Leonardo Sandoval66386a22021-04-15 14:35:08 -050022tf_downloads="https://downloads.trustedfirmware.org"
23coverage_trace_plugin=tf_downloads + "/coverage-plugin/qa-tools/coverage-tool/coverage-plugin/coverage_trace.so"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010024
25def lava_gen_get_config_subset(config,
26 default=True,
27 core=True,
28 regression=True):
29 """ Allow dynamic generation of configuration combinations by subtracking
30 undesired ones """
31
32 from copy import deepcopy
33 cfg = deepcopy(config)
34 tests = deepcopy(config["tests"])
35
36 # Remove all configs not requests by the caller
37 if not default:
38 tests.pop("Default")
Minos Galanakisea421232019-06-20 17:11:28 +010039 if not core:
40 tests.pop("CoreIPC")
41 tests.pop("CoreIPCTfmLevel2")
Xinyu Zhang204dc372020-11-12 14:18:00 +080042 tests.pop("CoreIPCTfmLevel3")
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010043 if not regression:
44 tests.pop("Regression")
45
46 cfg["tests"] = tests
47 return cfg
48
Xinyu Zhangf724cd22022-03-21 15:46:26 +080049# LAVA test-monitor definition for configs with regression tests.
50# "Non-Secure system starting..." is expected to indicate
51# that TF-M has been booted successfully.
52monitors_no_reg_tests = [
53 {
54 'name': 'NS_SYSTEM_BOOTING',
55 'start': 'Non-Secure system',
56 'end': r'starting\\.{3}',
57 'pattern': r'Non-Secure system starting\\.{3}',
58 'fixup': {"pass": "!", "fail": ""},
59 }
60]
61
62# LAVA test-monitor definition for configs with regression tests.
Paul Sokolovsky65671e62022-03-23 21:09:12 +030063# Results of each test case is parsed separately, capturing test case id.
64# Works across any test suites enabled.
Xinyu Zhangf724cd22022-03-21 15:46:26 +080065monitors_reg_tests = [
66 {
Paul Sokolovsky65671e62022-03-23 21:09:12 +030067 'name': 'regression_suite',
Xinyu Zhange4db0632022-04-10 23:22:22 +080068 'start': 'Execute test suites',
Paul Sokolovsky65671e62022-03-23 21:09:12 +030069 'end': 'End of Non-secure test suites',
70 'pattern': r"TEST: (?P<test_case_id>.+?) - (?P<result>(PASSED|FAILED|SKIPPED))",
71 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
Xinyu Zhangf724cd22022-03-21 15:46:26 +080072 },
Paul Sokolovsky65671e62022-03-23 21:09:12 +030073] # Monitors
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010074
Paul Sokolovsky6024d012022-01-22 20:21:07 +030075# LAVA test-monitor definition for PSA API testsuites, testcases identified
76# by "UT" value in output (testcase identifier).
77monitors_psaapitest_by_ut = [
78 {
79 'name': 'psa_api_suite',
80 'start': 'Running..',
81 'end': 'Entering standby..',
82 'pattern': r" UT: +(?P<test_case_id>[A-Za-z0-9_]+)\r?\n"
83 r".+?"
84 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
85 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
86 },
87]
88
89# LAVA test-monitor definition for PSA API testsuites, testcases identified
90# by description in output (for when UT is not set to unique identifier).
91monitors_psaapitest_by_desc = [
92 {
93 'name': 'psa_api_suite',
94 'start': 'Running..',
95 'end': 'Entering standby..',
96 'pattern': r" DESCRIPTION: +(?P<test_case_id>.+?) \\|"
97 r".+?"
98 r"TEST RESULT: (?P<result>(PASSED|FAILED|SKIPPED))",
99 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
100 },
101]
102
103
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100104# MPS2 with BL2 bootloader
105# IMAGE0ADDRESS: 0x10000000
106# IMAGE0FILE: \Software\bl2.bin ; BL2 bootloader
107# IMAGE1ADDRESS: 0x10080000
108# IMAGE1FILE: \Software\tfm_s_ns_signed.bin ; TF-M example application binary blob
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100109tfm_mps2_sse_200 = {
Matthew Hart2c2688f2020-05-26 13:09:20 +0100110 "templ": "mps2.jinja2",
111 "job_name": "mps2_an521_bl2",
Minos Galanakisafb43152019-09-25 14:17:39 +0100112 "device_type": "mps",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100113 "job_timeout": 15,
114 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800115 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100116 "poweroff_timeout": 1,
117 "recovery_store_url": "https://ci.trustedfirmware.org/userContent/",
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100118 "platforms": {"AN521": "mps2_sse200_an512_new.tar.gz"},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800119 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100120 "build_types": ["Debug", "Release", "Minsizerel"],
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100121 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800122 "binaries": {
123 "firmware": "tfm_s_ns_signed.bin",
124 "bootloader": "bl2.bin"
125 },
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100126 "tests": {
127 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800128 "monitors": monitors_no_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100129 }, # Default
Xinyu Zhang244e1862021-03-12 16:21:54 +0800130 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800131 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800132 }, # DefaultProfileS
133 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800134 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800135 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800136 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800137 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800138 }, # DefaultProfileL
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100139 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800140 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100141 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800142 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800143 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800144 }, # RegressionProfileM
145 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800146 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800147 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800148 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800149 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800150 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100151 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800152 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100153 }, # Regression
154 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800155 "monitors": monitors_reg_tests
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100156 }, # Regression
Xinyu Zhang244e1862021-03-12 16:21:54 +0800157 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800158 "monitors": monitors_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800159 }, # Regression
Minos Galanakisea421232019-06-20 17:11:28 +0100160 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800161 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100162 }, # CoreIPC
163 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800164 "monitors": monitors_no_reg_tests
Minos Galanakisea421232019-06-20 17:11:28 +0100165 }, # CoreIPCTfmLevel2
Xinyu Zhang244e1862021-03-12 16:21:54 +0800166 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800167 "monitors": monitors_no_reg_tests
Xinyu Zhang244e1862021-03-12 16:21:54 +0800168 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300169 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300170 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300171 }, # PsaApiTest_Crypto
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300172 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300173 "monitors": monitors_psaapitest_by_desc,
174 }, # PsaApiTest_Storage
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300175 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300176 "monitors": monitors_psaapitest_by_desc,
177 }, # PsaApiTestIPC_Storage
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300178 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300179 "monitors": monitors_psaapitest_by_ut,
180 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300181 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300182 "monitors": monitors_psaapitest_by_ut,
183 }, # PsaApiTestIPC_Attest
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100184 } # Tests
185}
186
Bence Balogh4fe9b882022-03-30 15:23:47 +0200187# FVP with BL2 bootloader
188# firmware <-> ns <-> application: --application cpu0=bl2.axf
189# bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
190fvp_mps3_an552_bl2 = {
191 "templ": "fvp_mps3.jinja2",
192 "job_name": "fvp_mps3_an552_bl2",
193 "device_type": "fvp",
194 "job_timeout": 15,
195 "action_timeout": 10,
196 "monitor_timeout": 15,
197 "poweroff_timeout": 1,
198 "platforms": {"AN552": ""},
199 "compilers": ["GCC", "ARMCLANG"],
200 "build_types": ["Debug", "Release"],
201 "boot_types": ["BL2"],
202 "data_bin_offset": "0x01000000",
203 "binaries": {
204 "application": "bl2.axf",
205 "data": "tfm_s_ns_signed.bin"
206 },
207 "tests": {
208 'Default': {
209 "monitors": monitors_no_reg_tests
210 }, # Default
211 'Regression': {
212 "monitors": monitors_reg_tests
213 }, # Regression
214 'RegressionIPC': {
215 "monitors": monitors_reg_tests
216 }, # Regression
217 'RegressionIPCTfmLevel2': {
218 "monitors": monitors_reg_tests
219 }, # Regression
220 'RegressionIPCTfmLevel3': {
221 "monitors": monitors_reg_tests
222 }, # Regression
223 'CoreIPC': {
224 "monitors": monitors_no_reg_tests
225 }, # CoreIPC
226 'CoreIPCTfmLevel2': {
227 "monitors": monitors_no_reg_tests
228 }, # CoreIPCTfmLevel2
229 'CoreIPCTfmLevel3': {
230 "monitors": monitors_no_reg_tests
231 }, # CoreIPCTfmLevel3
232
233 } # Tests
234}
Dean Bircha6ede7e2020-03-13 14:00:33 +0000235
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100236# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800237# application: --application cpu0=bl2.axf
238# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100239fvp_mps2_an521_bl2 = {
240 "templ": "fvp_mps2.jinja2",
241 "job_name": "fvp_mps2_an521_bl2",
Dean Bircha6ede7e2020-03-13 14:00:33 +0000242 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100243 "job_timeout": 15,
244 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800245 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000246 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100247 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800248 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100249 "build_types": ["Debug", "Release", "Minsizerel"],
Dean Bircha6ede7e2020-03-13 14:00:33 +0000250 "boot_types": ["BL2"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000251 "data_bin_offset": "0x10080000",
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800252 "binaries": {
253 "application": "bl2.axf",
254 "data": "tfm_s_ns_signed.bin"
255 },
Matthew Hartfb6fd362020-03-04 21:03:59 +0000256 "tests": {
257 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800258 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000259 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800260 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800261 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800262 }, # DefaultProfileS
263 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800264 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800265 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800266 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800267 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800268 }, # DefaultProfileL
Matthew Hartfb6fd362020-03-04 21:03:59 +0000269 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800270 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100271 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800272 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800273 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800274 }, # RegressionProfileM
275 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800276 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800277 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800278 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800279 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800280 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100281 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800282 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100283 }, # Regression
284 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800285 "monitors": monitors_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000286 }, # Regression
Karl Zhang3b092ef2020-11-06 16:56:25 +0800287 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800288 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800289 }, # Regression
Matthew Hartfb6fd362020-03-04 21:03:59 +0000290 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800291 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000292 }, # CoreIPC
293 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800294 "monitors": monitors_no_reg_tests
Matthew Hartfb6fd362020-03-04 21:03:59 +0000295 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800296 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800297 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800298 }, # CoreIPCTfmLevel3
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300299 'PsaApiTest_Crypto': {
Paul Sokolovskyde2239e2022-05-02 14:55:31 +0300300 "monitors": monitors_psaapitest_by_ut,
Paul Sokolovsky7eae9752022-02-09 21:38:55 +0300301 }, # PsaApiTest_Crypto
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300302 'PsaApiTest_STORAGE': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300303 "monitors": monitors_psaapitest_by_desc,
304 }, # PsaApiTest_Storage
305
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300306 'PsaApiTestIPC_STORAGE': {
Paul Sokolovsky0c82ae22022-02-16 20:01:10 +0300307 "monitors": monitors_psaapitest_by_desc,
308 }, # PsaApiTestIPC_Storage
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300309 'PsaApiTest_Attest': {
Paul Sokolovsky6024d012022-01-22 20:21:07 +0300310 "monitors": monitors_psaapitest_by_ut,
311 }, # PsaApiTest_Attest
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300312 'PsaApiTestIPC_Attest': {
Paul Sokolovsky46ff5312022-02-16 20:23:01 +0300313 "monitors": monitors_psaapitest_by_ut,
314 }, # PsaApiTestIPC_Attest
315
Matthew Hartfb6fd362020-03-04 21:03:59 +0000316 } # Tests
317}
318
319
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100320# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800321# application: --application cpu0=tfm_s.axf
322# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100323fvp_mps2_an521_nobl2 = {
324 "templ": "fvp_mps2.jinja2",
325 "job_name": "fvp_mps2_an521_nobl2",
Matthew Hartfb6fd362020-03-04 21:03:59 +0000326 "device_type": "fvp",
Matthew Hart2c2688f2020-05-26 13:09:20 +0100327 "job_timeout": 15,
328 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800329 "monitor_timeout": 15,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000330 "poweroff_timeout": 1,
Dean Birch1d545c02020-05-29 14:09:21 +0100331 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800332 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100333 "build_types": ["Debug", "Release", "Minsizerel"],
Matthew Hartfb6fd362020-03-04 21:03:59 +0000334 "boot_types": ["NOBL2"],
335 "data_bin_offset": "0x00100000",
Dean Birch1d545c02020-05-29 14:09:21 +0100336 "cpu_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800337 "binaries": {
338 "application": "tfm_s.axf",
339 "data": "tfm_ns.bin"
340 },
Dean Bircha6ede7e2020-03-13 14:00:33 +0000341 "tests": {
342 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800343 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000344 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800345 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800346 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800347 }, # DefaultProfileS
348 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800349 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800350 }, # DefaultProfileM
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800351 'DefaultProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800352 "monitors": monitors_no_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800353 }, # DefaultProfileL
Dean Bircha6ede7e2020-03-13 14:00:33 +0000354 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800355 "monitors": monitors_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000356 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800357 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800358 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800359 }, # RegressionProfileM
360 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800361 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800362 }, # RegressionProfileS
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800363 'RegressionProfileL': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800364 "monitors": monitors_reg_tests
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800365 }, # RegressionProfileL
Matthew Hart2c2688f2020-05-26 13:09:20 +0100366 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800367 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100368 }, # RegressionIPC
369 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800370 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100371 }, # RegressionIPCTfmLevel2
Karl Zhang3b092ef2020-11-06 16:56:25 +0800372 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800373 "monitors": monitors_reg_tests
Karl Zhang3b092ef2020-11-06 16:56:25 +0800374 }, # RegressionIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000375 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800376 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000377 }, # CoreIPC
378 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800379 "monitors": monitors_no_reg_tests
Dean Bircha6ede7e2020-03-13 14:00:33 +0000380 }, # CoreIPCTfmLevel2
Xinyu Zhang204dc372020-11-12 14:18:00 +0800381 'CoreIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800382 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800383 }, # CoreIPCTfmLevel3
Dean Bircha6ede7e2020-03-13 14:00:33 +0000384 } # Tests
385}
386
Matthew Hart2c2688f2020-05-26 13:09:20 +0100387
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100388# FVP with BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800389# application: --application cpu0=bl2.axf
390# data: --data cpu0=tfm_s_ns_signed.bin@0x10080000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100391fvp_mps2_an519_bl2 = {
392 "templ": "fvp_mps2.jinja2",
393 "job_name": "fvp_mps2_an519_bl2",
394 "device_type": "fvp",
395 "job_timeout": 15,
396 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800397 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100398 "poweroff_timeout": 1,
399 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800400 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100401 "build_types": ["Debug", "Release", "Minsizerel"],
402 "boot_types": ["BL2"],
403 "data_bin_offset": "0x10080000",
404 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800405 "binaries": {
406 "application": "bl2.axf",
407 "data": "tfm_s_ns_signed.bin"
408 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100409 "tests": {
410 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800411 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100412 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800413 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800414 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800415 }, # DefaultProfileS
416 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800417 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800418 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100419 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800420 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100421 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800422 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800423 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800424 }, # RegressionProfileM
425 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800426 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800427 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100428 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800429 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100430 }, # Regression
431 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800432 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100433 }, # Regression
434 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800435 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100436 }, # CoreIPC
437 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800438 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100439 }, # CoreIPCTfmLevel2
440 } # Tests
441}
442
443
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100444# FVP without BL2 bootloader
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800445# application: --application cpu0=tfm_s.axf
446# data: --data cpu0=tfm_ns.bin@0x00100000
Matthew Hart2c2688f2020-05-26 13:09:20 +0100447fvp_mps2_an519_nobl2 = {
448 "templ": "fvp_mps2.jinja2",
449 "job_name": "fvp_mps2_an519_nobl2",
450 "device_type": "fvp",
451 "job_timeout": 15,
452 "action_timeout": 10,
Xinyu Zhangd8703f02021-05-18 20:30:07 +0800453 "monitor_timeout": 15,
Matthew Hart2c2688f2020-05-26 13:09:20 +0100454 "poweroff_timeout": 1,
455 "platforms": {"AN519": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800456 "compilers": ["GCC", "ARMCLANG"],
Matthew Hart2c2688f2020-05-26 13:09:20 +0100457 "build_types": ["Debug", "Release", "Minsizerel"],
458 "boot_types": ["NOBL2"],
459 "data_bin_offset": "0x00100000",
460 "cpu0_baseline": 1,
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800461 "binaries": {
462 "application": "tfm_s.axf",
463 "data": "tfm_ns.bin"
464 },
Matthew Hart2c2688f2020-05-26 13:09:20 +0100465 "tests": {
466 'Default': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800467 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100468 }, # Default
Xinyu Zhang204dc372020-11-12 14:18:00 +0800469 'DefaultProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800470 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800471 }, # DefaultProfileS
472 'DefaultProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800473 "monitors": monitors_no_reg_tests
Xinyu Zhang204dc372020-11-12 14:18:00 +0800474 }, # DefaultProfileM
Matthew Hart2c2688f2020-05-26 13:09:20 +0100475 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800476 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100477 }, # Regression
Karl Zhang2b10b342020-11-09 14:50:11 +0800478 'RegressionProfileM': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800479 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800480 }, # RegressionProfileM
481 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800482 "monitors": monitors_reg_tests
Karl Zhang2b10b342020-11-09 14:50:11 +0800483 }, # RegressionProfileS
Matthew Hart2c2688f2020-05-26 13:09:20 +0100484 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800485 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100486 }, # RegressionIPC
487 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800488 "monitors": monitors_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100489 }, # RegressionIPCTfmLevel2
490 'CoreIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800491 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100492 }, # CoreIPC
493 'CoreIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800494 "monitors": monitors_no_reg_tests
Matthew Hart2c2688f2020-05-26 13:09:20 +0100495 }, # CoreIPCTfmLevel2
496 } # Tests
497}
498
499
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800500# QEMU for MPS2 with BL2 bootloader
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100501qemu_mps2_bl2 = {
502 "templ": "qemu_mps2_bl2.jinja2",
503 "job_name": "qemu_mps2_bl2",
504 "device_type": "qemu",
505 "job_timeout": 300,
506 "action_timeout": 300,
507 "poweroff_timeout": 20,
508 "platforms": {"AN521": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800509 "compilers": ["GCC", "ARMCLANG"],
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100510 "build_types": ["Debug", "Release"],
511 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800512 "binaries": {
513 "firmware": "tfm_s_ns_signed.bin",
514 "bootloader": "bl2.bin"
515 },
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800516 "tests": {
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800517 'Regression': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800518 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800519 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800520 'RegressionProfileS': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800521 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800522 }, # RegressionProfileS
523 'RegressionIPC': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800524 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800525 }, # Regression
526 'RegressionIPCTfmLevel2': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800527 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800528 }, # Regression
529 'RegressionIPCTfmLevel3': {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800530 "monitors": monitors_reg_tests
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800531 }, # Regression
Xinyu Zhange89f45c2021-09-14 21:11:59 +0800532 }
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100533}
534
535
536# Musca-B1 with BL2 bootloader
537# unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin
538# 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 +0100539musca_b1_bl2 = {
540 "templ": "musca_b1.jinja2",
541 "job_name": "musca_b1_bl2",
542 "device_type": "musca-b",
Xinyu Zhang630dfe62021-06-17 14:38:11 +0800543 "job_timeout": 40,
544 "action_timeout": 20,
545 "monitor_timeout": 30,
Ryan Harkinf6981082020-12-18 14:54:33 +0000546 "poweroff_timeout": 40,
Fathi Boudra31225f72020-11-25 13:51:07 +0100547 "platforms": {"MUSCA_B1": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800548 "compilers": ["GCC", "ARMCLANG"],
Xinyu Zhang43e5d672021-03-24 16:30:26 +0800549 "build_types": ["Debug", "Release", "Minsizerel"],
Fathi Boudra31225f72020-11-25 13:51:07 +0100550 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800551 "binaries": {
552 "firmware": "tfm.hex",
553 },
Fathi Boudra31225f72020-11-25 13:51:07 +0100554 "tests": {
555 "Default": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800556 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100557 },
558 "CoreIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800559 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100560 },
561 "CoreIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800562 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100563 },
564 "CoreIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800565 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100566 },
567 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800568 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100569 },
570 "DefaultProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800571 "monitors": monitors_no_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100572 },
573 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800574 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100575 },
576 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800577 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100578 },
579 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800580 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100581 },
582 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800583 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100584 },
585 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800586 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100587 },
588 "RegressionProfileS": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800589 "monitors": monitors_reg_tests
Fathi Boudra31225f72020-11-25 13:51:07 +0100590 },
591 },
592}
593
Arthur She07c91b52021-07-15 15:03:10 -0700594# STM32L562E-DK
595stm32l562e_dk = {
596 "templ": "stm32l562e_dk.jinja2",
597 "job_name": "stm32l562e_dk",
598 "device_type": "stm32l562e-dk",
599 "job_timeout": 24,
600 "action_timeout": 15,
601 "monitor_timeout": 15,
602 "poweroff_timeout": 5,
603 "platforms": {"stm32l562e_dk": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800604 "compilers": ["GCC", "ARMCLANG"],
Arthur She07c91b52021-07-15 15:03:10 -0700605 "build_types": ["Release", "Minsizerel"],
606 "boot_types": ["BL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800607 "binaries": {
608 "tarball": "stm32l562e-dk-tfm.tar.bz2",
609 },
Arthur She07c91b52021-07-15 15:03:10 -0700610 "tests": {
611 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800612 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700613 },
614 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800615 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700616 },
617 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800618 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700619 },
620 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800621 "monitors": monitors_reg_tests
Arthur She07c91b52021-07-15 15:03:10 -0700622 },
623 },
624}
Xinyu Zhang97114342021-01-21 14:08:03 +0800625
Arthur She3c0dadd2021-11-18 21:17:48 -0800626# LPCxpresso55S69
627lpcxpresso55s69 = {
628 "templ": "lpcxpresso55s69.jinja2",
629 "job_name": "lpcxpresso55s69",
630 "device_type": "lpcxpresso55s69",
631 "job_timeout": 24,
632 "action_timeout": 15,
633 "monitor_timeout": 15,
634 "poweroff_timeout": 5,
635 "platforms": {"lpcxpresso55s69": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800636 "compilers": ["GCC"],
Arthur She3c0dadd2021-11-18 21:17:48 -0800637 "build_types": ["Relwithdebinfo"],
638 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800639 "binaries": {
640 "tarball": "lpcxpresso55s69-tfm.tar.bz2",
641 },
Arthur She3c0dadd2021-11-18 21:17:48 -0800642 "tests": {
643 "DefaultProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800644 "monitors": monitors_no_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800645 },
646 "RegressionProfileM": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800647 "monitors": monitors_reg_tests
Arthur She3c0dadd2021-11-18 21:17:48 -0800648 },
649 }
650}
651
Arthur She87602dc2022-02-06 14:42:18 -0800652# Cypress PSoC64
653psoc64 = {
654 "templ": "psoc64.jinja2",
655 "job_name": "psoc64",
656 "device_type": "cy8ckit-064s0s2-4343w",
657 "job_timeout": 120,
658 "action_timeout": 120,
659 "monitor_timeout": 120,
660 "poweroff_timeout": 5,
661 "platforms": {"psoc64": ""},
Xinyu Zhang433771e2022-04-01 16:49:17 +0800662 "compilers": ["GCC", "ARMCLANG"],
Arthur She87602dc2022-02-06 14:42:18 -0800663 "build_types": ["Release", "Minsizerel"],
664 "boot_types": ["NOBL2"],
Xinyu Zhang28d61b42022-03-21 16:46:35 +0800665 "binaries": {
666 "spe": "tfm_s_signed.hex",
667 "nspe": "tfm_ns_signed.hex",
668 },
Arthur She87602dc2022-02-06 14:42:18 -0800669 "tests": {
670 "Regression": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800671 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800672 },
673 "RegressionIPC": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800674 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800675 },
676 "RegressionIPCTfmLevel2": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800677 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800678 },
679 "RegressionIPCTfmLevel3": {
Xinyu Zhangf724cd22022-03-21 15:46:26 +0800680 "monitors": monitors_reg_tests
Arthur She87602dc2022-02-06 14:42:18 -0800681 },
682 },
683}
684
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100685# All configurations should be mapped here
Fathi Boudra31225f72020-11-25 13:51:07 +0100686lava_gen_config_map = {
687 "mps2_an521_bl2": tfm_mps2_sse_200,
Bence Balogh4fe9b882022-03-30 15:23:47 +0200688 "fvp_mps3_an552_bl2": fvp_mps3_an552_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100689 "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
690 "fvp_mps2_an521_nobl2": fvp_mps2_an521_nobl2,
691 "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
692 "fvp_mps2_an519_nobl2": fvp_mps2_an519_nobl2,
Fathi Boudracaa90bd2020-12-04 22:00:14 +0100693 "qemu_mps2_bl2": qemu_mps2_bl2,
Fathi Boudra31225f72020-11-25 13:51:07 +0100694 "musca_b1": musca_b1_bl2,
Arthur She07c91b52021-07-15 15:03:10 -0700695 "stm32l562e_dk": stm32l562e_dk,
Arthur She3c0dadd2021-11-18 21:17:48 -0800696 "lpcxpresso55s69": lpcxpresso55s69,
Arthur She87602dc2022-02-06 14:42:18 -0800697 "psoc64": psoc64,
Fathi Boudra31225f72020-11-25 13:51:07 +0100698}
Matthew Hart2c2688f2020-05-26 13:09:20 +0100699
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100700lavagen_config_sort_order = [
701 "templ",
702 "job_name",
703 "device_type",
704 "job_timeout",
705 "action_timeout",
706 "monitor_timeout",
707 "recovery_store_url",
708 "artifact_store_url",
709 "platforms",
710 "compilers",
711 "build_types",
712 "boot_types",
713 "tests"
714]
715
716lava_gen_monitor_sort_order = [
717 'name',
718 'start',
719 'end',
720 'pattern',
721 'fixup',
722]
723
724if __name__ == "__main__":
725 import os
726 import sys
727 from lava_helper import sort_lavagen_config
728 try:
729 from tfm_ci_pylib.utils import export_config_map
730 except ImportError:
731 dir_path = os.path.dirname(os.path.realpath(__file__))
732 sys.path.append(os.path.join(dir_path, "../"))
733 from tfm_ci_pylib.utils import export_config_map
734
735 if len(sys.argv) == 2:
736 if sys.argv[1] == "--export":
737 export_config_map(lava_gen_config_map)
738 if len(sys.argv) == 3:
739 if sys.argv[1] == "--export":
740 export_config_map(sort_lavagen_config(lava_gen_config_map),
741 sys.argv[2])