Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | """ lava_job_generator_configs.py: |
| 4 | |
| 5 | Default configurations for lava job generator """ |
| 6 | |
| 7 | from __future__ import print_function |
| 8 | |
| 9 | __copyright__ = """ |
| 10 | /* |
Xinyu Zhang | 04d7747 | 2022-03-21 14:37:37 +0800 | [diff] [blame] | 11 | * Copyright (c) 2018-2022, Arm Limited. All rights reserved. |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 12 | * |
| 13 | * SPDX-License-Identifier: BSD-3-Clause |
| 14 | * |
| 15 | */ |
| 16 | """ |
Karl Zhang | 08681e6 | 2020-10-30 13:56:03 +0800 | [diff] [blame] | 17 | |
| 18 | __author__ = "tf-m@lists.trustedfirmware.org" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 19 | __project__ = "Trusted Firmware-M Open CI" |
Xinyu Zhang | 06286a9 | 2021-07-22 14:00:51 +0800 | [diff] [blame] | 20 | __version__ = "1.4.0" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 21 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 22 | |
| 23 | import os |
| 24 | |
| 25 | |
Leonardo Sandoval | 66386a2 | 2021-04-15 14:35:08 -0500 | [diff] [blame] | 26 | tf_downloads="https://downloads.trustedfirmware.org" |
| 27 | coverage_trace_plugin=tf_downloads + "/coverage-plugin/qa-tools/coverage-tool/coverage-plugin/coverage_trace.so" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 28 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 29 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 30 | # LAVA test-monitor definition for configs without regression tests. |
Xinyu Zhang | f724cd2 | 2022-03-21 15:46:26 +0800 | [diff] [blame] | 31 | # "Non-Secure system starting..." is expected to indicate |
| 32 | # that TF-M has been booted successfully. |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 33 | no_reg_tests_monitors_cfg = { |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 34 | '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 Zhang | f724cd2 | 2022-03-21 15:46:26 +0800 | [diff] [blame] | 40 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 41 | # LAVA test-monitor definitions for configs with tests. |
Paul Sokolovsky | 65671e6 | 2022-03-23 21:09:12 +0300 | [diff] [blame] | 42 | # Results of each test case is parsed separately, capturing test case id. |
| 43 | # Works across any test suites enabled. |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 44 | mcuboot_tests_monitor_cfg = { |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 45 | '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 Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 51 | |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 52 | s_reg_tests_monitors_cfg = { |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 53 | '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 Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 59 | |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 60 | ns_reg_tests_monitors_cfg = { |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 61 | '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 Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 67 | |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 68 | arch_tests_monitors_cfg = { |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 69 | '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 Sokolovsky | e3d2bb1 | 2022-06-06 17:04:34 +0300 | [diff] [blame] | 77 | |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 78 | # Group related monitors into same list to simplify the code |
| 79 | no_reg_tests_monitors = [no_reg_tests_monitors_cfg] |
| 80 | |
| 81 | reg_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 | |
| 86 | arch_tests_monitors = [arch_tests_monitors_cfg] |
| 87 | |
Paul Sokolovsky | 6024d01 | 2022-01-22 20:21:07 +0300 | [diff] [blame] | 88 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 89 | # MPS2 with BL2 bootloader for AN521 |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 90 | # 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 Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 94 | tfm_mps2_sse_200 = { |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 95 | "templ": "mps2.jinja2", |
| 96 | "job_name": "mps2_an521_bl2", |
Minos Galanakis | afb4315 | 2019-09-25 14:17:39 +0100 | [diff] [blame] | 97 | "device_type": "mps", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 98 | "job_timeout": 15, |
| 99 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 100 | "monitor_timeout": 15, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 101 | "poweroff_timeout": 1, |
| 102 | "recovery_store_url": "https://ci.trustedfirmware.org/userContent/", |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 103 | "platforms": {"arm/mps2/an521": "mps2_sse200_an512_new.tar.gz"}, |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 104 | "binaries": { |
| 105 | "firmware": "tfm_s_ns_signed.bin", |
| 106 | "bootloader": "bl2.bin" |
| 107 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 108 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 109 | 'no_reg_tests': no_reg_tests_monitors, |
Jianliang Shen | 9798e55 | 2022-11-21 12:55:42 +0800 | [diff] [blame] | 110 | # FPU test on FPGA not supported yet |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 111 | 'reg_tests': (reg_tests_monitors if 'FPON' not in os.getenv("EXTRA_PARAMS") else [mcuboot_tests_monitor_cfg]), |
| 112 | # FF test on FPGA not supported in LAVA yet |
| 113 | 'arch_tests': (arch_tests_monitors if os.getenv("TEST_PSA_API") != "IPC" else []), |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 114 | } |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 115 | } |
| 116 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 117 | # FVP with BL2 bootloader for AN552 |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 118 | # firmware <-> ns <-> application: --application cpu0=bl2.axf |
| 119 | # bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000 |
| 120 | fvp_mps3_an552_bl2 = { |
| 121 | "templ": "fvp_mps3.jinja2", |
| 122 | "job_name": "fvp_mps3_an552_bl2", |
| 123 | "device_type": "fvp", |
| 124 | "job_timeout": 15, |
| 125 | "action_timeout": 10, |
| 126 | "monitor_timeout": 15, |
| 127 | "poweroff_timeout": 1, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 128 | "platforms": {"arm/mps3/an552": ""}, |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 129 | "data_bin_offset": "0x01000000", |
| 130 | "binaries": { |
| 131 | "application": "bl2.axf", |
| 132 | "data": "tfm_s_ns_signed.bin" |
| 133 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 134 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 135 | 'no_reg_tests': no_reg_tests_monitors, |
| 136 | 'reg_tests': reg_tests_monitors, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 137 | } |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 138 | } |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 139 | |
Satish Kumar | 1cfdd91 | 2022-08-01 09:24:07 +0100 | [diff] [blame] | 140 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 141 | # FVP with BL2 bootloader for AN521 |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 142 | # application: --application cpu0=bl2.axf |
| 143 | # data: --data cpu0=tfm_s_ns_signed.bin@0x10080000 |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 144 | fvp_mps2_an521_bl2 = { |
| 145 | "templ": "fvp_mps2.jinja2", |
| 146 | "job_name": "fvp_mps2_an521_bl2", |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 147 | "device_type": "fvp", |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 148 | "job_timeout": 15, |
| 149 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 150 | "monitor_timeout": 15, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 151 | "poweroff_timeout": 1, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 152 | "platforms": {"arm/mps2/an521": ""}, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 153 | "data_bin_offset": "0x10080000", |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 154 | "binaries": { |
| 155 | "application": "bl2.axf", |
| 156 | "data": "tfm_s_ns_signed.bin" |
| 157 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 158 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 159 | 'no_reg_tests': no_reg_tests_monitors, |
| 160 | 'reg_tests': reg_tests_monitors, |
| 161 | 'arch_tests': arch_tests_monitors, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 162 | } |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 163 | } |
| 164 | |
| 165 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 166 | # FVP with BL2 bootloader for AN519 |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 167 | # application: --application cpu0=bl2.axf |
| 168 | # data: --data cpu0=tfm_s_ns_signed.bin@0x10080000 |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 169 | fvp_mps2_an519_bl2 = { |
| 170 | "templ": "fvp_mps2.jinja2", |
| 171 | "job_name": "fvp_mps2_an519_bl2", |
| 172 | "device_type": "fvp", |
| 173 | "job_timeout": 15, |
| 174 | "action_timeout": 10, |
Xinyu Zhang | d8703f0 | 2021-05-18 20:30:07 +0800 | [diff] [blame] | 175 | "monitor_timeout": 15, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 176 | "poweroff_timeout": 1, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 177 | "platforms": {"arm/mps2/an519": ""}, |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 178 | "data_bin_offset": "0x10080000", |
| 179 | "cpu0_baseline": 1, |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 180 | "binaries": { |
| 181 | "application": "bl2.axf", |
| 182 | "data": "tfm_s_ns_signed.bin" |
| 183 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 184 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 185 | 'no_reg_tests': no_reg_tests_monitors, |
| 186 | 'reg_tests': reg_tests_monitors, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 187 | } |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 191 | # QEMU for AN521 with BL2 bootloader |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 192 | qemu_mps2_bl2 = { |
| 193 | "templ": "qemu_mps2_bl2.jinja2", |
| 194 | "job_name": "qemu_mps2_bl2", |
| 195 | "device_type": "qemu", |
Xinyu Zhang | 5dcb0d5 | 2022-10-24 14:10:19 +0800 | [diff] [blame] | 196 | "job_timeout": 30, |
| 197 | "action_timeout": 20, |
| 198 | "monitor_timeout": 20, |
Xinyu Zhang | aad0e64 | 2022-08-09 14:28:58 +0800 | [diff] [blame] | 199 | "poweroff_timeout": 1, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 200 | "platforms": {"arm/mps2/an521": ""}, |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 201 | "binaries": { |
| 202 | "firmware": "tfm_s_ns_signed.bin", |
| 203 | "bootloader": "bl2.bin" |
| 204 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 205 | "monitors": { |
Jianliang Shen | 9798e55 | 2022-11-21 12:55:42 +0800 | [diff] [blame] | 206 | # FPU test on AN521 qemu not supported yet |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 207 | 'reg_tests': (reg_tests_monitors if 'FPON' not in os.getenv("EXTRA_PARAMS") else [mcuboot_tests_monitor_cfg]), |
Xinyu Zhang | e89f45c | 2021-09-14 21:11:59 +0800 | [diff] [blame] | 208 | } |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 209 | } |
| 210 | |
| 211 | |
| 212 | # Musca-B1 with BL2 bootloader |
| 213 | # unified hex file comprising of both bl2.bin and tfm_s_ns_signed.bin |
| 214 | # srec_cat bin/bl2.bin -Binary -offset 0xA000000 bin/tfm_s_ns_signed.bin -Binary -offset 0xA020000 -o tfm.hex -Intel |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 215 | musca_b1_bl2 = { |
| 216 | "templ": "musca_b1.jinja2", |
| 217 | "job_name": "musca_b1_bl2", |
| 218 | "device_type": "musca-b", |
Xinyu Zhang | 630dfe6 | 2021-06-17 14:38:11 +0800 | [diff] [blame] | 219 | "job_timeout": 40, |
| 220 | "action_timeout": 20, |
| 221 | "monitor_timeout": 30, |
Ryan Harkin | f698108 | 2020-12-18 14:54:33 +0000 | [diff] [blame] | 222 | "poweroff_timeout": 40, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 223 | "platforms": {"arm/musca_b1": ""}, |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 224 | "binaries": { |
| 225 | "firmware": "tfm.hex", |
| 226 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 227 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 228 | 'no_reg_tests': no_reg_tests_monitors, |
| 229 | 'reg_tests': reg_tests_monitors, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 230 | } |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 231 | } |
| 232 | |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 233 | # STM32L562E-DK |
| 234 | stm32l562e_dk = { |
| 235 | "templ": "stm32l562e_dk.jinja2", |
| 236 | "job_name": "stm32l562e_dk", |
| 237 | "device_type": "stm32l562e-dk", |
| 238 | "job_timeout": 24, |
| 239 | "action_timeout": 15, |
| 240 | "monitor_timeout": 15, |
| 241 | "poweroff_timeout": 5, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 242 | "platforms": {"stm/stm32l562e_dk": ""}, |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 243 | "binaries": { |
| 244 | "tarball": "stm32l562e-dk-tfm.tar.bz2", |
| 245 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 246 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 247 | 'reg_tests': reg_tests_monitors, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 248 | } |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 249 | } |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 250 | |
Arthur She | 3c0dadd | 2021-11-18 21:17:48 -0800 | [diff] [blame] | 251 | # LPCxpresso55S69 |
| 252 | lpcxpresso55s69 = { |
| 253 | "templ": "lpcxpresso55s69.jinja2", |
| 254 | "job_name": "lpcxpresso55s69", |
| 255 | "device_type": "lpcxpresso55s69", |
| 256 | "job_timeout": 24, |
| 257 | "action_timeout": 15, |
| 258 | "monitor_timeout": 15, |
| 259 | "poweroff_timeout": 5, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 260 | "platforms": {"nxp/lpcxpresso55s69": ""}, |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 261 | "binaries": { |
| 262 | "tarball": "lpcxpresso55s69-tfm.tar.bz2", |
| 263 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 264 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 265 | 'no_reg_tests': no_reg_tests_monitors, |
| 266 | 'reg_tests': reg_tests_monitors, |
Arthur She | 3c0dadd | 2021-11-18 21:17:48 -0800 | [diff] [blame] | 267 | } |
| 268 | } |
| 269 | |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 270 | # Cypress PSoC64 |
| 271 | psoc64 = { |
| 272 | "templ": "psoc64.jinja2", |
| 273 | "job_name": "psoc64", |
| 274 | "device_type": "cy8ckit-064s0s2-4343w", |
Xinyu Zhang | e8bb1b1 | 2022-10-18 17:42:30 +0800 | [diff] [blame] | 275 | "job_timeout": 30, |
| 276 | "action_timeout": 20, |
| 277 | "monitor_timeout": 20, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 278 | "poweroff_timeout": 5, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 279 | "platforms": {"cypress/psoc64": ""}, |
Xinyu Zhang | 28d61b4 | 2022-03-21 16:46:35 +0800 | [diff] [blame] | 280 | "binaries": { |
| 281 | "spe": "tfm_s_signed.hex", |
| 282 | "nspe": "tfm_ns_signed.hex", |
| 283 | }, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 284 | "monitors": { |
Xinyu Zhang | 3235538 | 2023-04-25 17:49:06 +0800 | [diff] [blame^] | 285 | 'reg_tests': reg_tests_monitors, |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 286 | } |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 287 | } |
| 288 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 289 | # All configurations should be mapped here |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 290 | lava_gen_config_map = { |
| 291 | "mps2_an521_bl2": tfm_mps2_sse_200, |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 292 | "fvp_mps3_an552_bl2": fvp_mps3_an552_bl2, |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 293 | "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2, |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 294 | "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2, |
Fathi Boudra | caa90bd | 2020-12-04 22:00:14 +0100 | [diff] [blame] | 295 | "qemu_mps2_bl2": qemu_mps2_bl2, |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 296 | "musca_b1": musca_b1_bl2, |
Arthur She | 07c91b5 | 2021-07-15 15:03:10 -0700 | [diff] [blame] | 297 | "stm32l562e_dk": stm32l562e_dk, |
Arthur She | 54b10a5 | 2023-04-11 22:30:11 -0700 | [diff] [blame] | 298 | "lpcxpresso55s69": lpcxpresso55s69, |
Arthur She | 87602dc | 2022-02-06 14:42:18 -0800 | [diff] [blame] | 299 | "psoc64": psoc64, |
Fathi Boudra | 31225f7 | 2020-11-25 13:51:07 +0100 | [diff] [blame] | 300 | } |
Matthew Hart | 2c2688f | 2020-05-26 13:09:20 +0100 | [diff] [blame] | 301 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 302 | lavagen_config_sort_order = [ |
| 303 | "templ", |
| 304 | "job_name", |
| 305 | "device_type", |
| 306 | "job_timeout", |
| 307 | "action_timeout", |
| 308 | "monitor_timeout", |
| 309 | "recovery_store_url", |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 310 | "platforms", |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 311 | "monitors" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 312 | ] |
| 313 | |
| 314 | lava_gen_monitor_sort_order = [ |
| 315 | 'name', |
| 316 | 'start', |
| 317 | 'end', |
| 318 | 'pattern', |
| 319 | 'fixup', |
| 320 | ] |