Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | """ builtin_configs.py: |
| 4 | |
| 5 | Default configuration files used as reference """ |
| 6 | |
| 7 | from __future__ import print_function |
| 8 | |
| 9 | __copyright__ = """ |
| 10 | /* |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 11 | * Copyright (c) 2018-2020, 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 | """ |
| 17 | __author__ = "Minos Galanakis" |
| 18 | __email__ = "minos.galanakis@linaro.org" |
| 19 | __project__ = "Trusted Firmware-M Open CI" |
| 20 | __status__ = "stable" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 21 | __version__ = "1.1" |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 22 | |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 23 | # common parameters for tf-m build system |
| 24 | # This configuration template will be passed into the tfm-builder module after |
| 25 | # the template evaluation is converted to a command |
| 26 | |
| 27 | _common_tfm_builder_cfg = { |
| 28 | "config_type": "tf-m", |
| 29 | "codebase_root_dir": "tf-m", |
| 30 | # Order to which the variants are evaluated. This affects the name of |
| 31 | # variant configuration and the wildcard replacement logic in invalid |
| 32 | # configuration tuples |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 33 | "sort_order": ["tfm_platform", |
| 34 | "toolchain_file", |
| 35 | "psa_api", |
| 36 | "isolation_level", |
| 37 | "test_regression", |
| 38 | "test_psa_api", |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 39 | "cmake_build_type", |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 40 | "with_otp", |
| 41 | "with_bl2", |
| 42 | "with_ns", |
| 43 | "profile"], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 44 | |
| 45 | # Keys for the templace will come from the combinations of parameters |
| 46 | # provided in the seed dictionary. |
| 47 | |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 48 | "config_template": "cmake " + \ |
| 49 | "-DTFM_PLATFORM=%(tfm_platform)s " + \ |
| 50 | "-DCMAKE_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \ |
| 51 | "-DTFM_PSA_API=%(psa_api)s " + \ |
| 52 | "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \ |
| 53 | "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \ |
| 54 | "-DTEST_PSA_API=%(test_psa_api)s " + \ |
| 55 | "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \ |
| 56 | "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \ |
| 57 | "-DBL2=%(with_bl2)s " + \ |
| 58 | "-DNS=%(with_ns)s " + \ |
| 59 | "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \ |
| 60 | "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \ |
| 61 | "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \ |
| 62 | "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \ |
| 63 | "-DTFM_PROFILE=%(profile)s " + \ |
| 64 | "%(codebase_root_dir)s", |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 65 | |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 66 | # A small subset of string substitution params is allowed in commands. |
| 67 | # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s, |
| 68 | # _tbm_target_platform_ with the paths set when building |
| 69 | |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 70 | "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin' |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 71 | r'/(\w+\.(?:axf|bin|hex))$'), |
| 72 | |
| 73 | # ALL commands will be executed for every build. |
| 74 | # Other keys will append extra commands when matching target_platform |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 75 | "build_cmds": {"all": ["cmake --build ./ -- install"], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 76 | "MUSCA_A": [("srec_cat " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 77 | "%(_tbm_build_dir_)s/bin/" |
| 78 | "bl2.bin " |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 79 | "-Binary -offset 0x200000 " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 80 | "%(_tbm_build_dir_)s/bin/" |
| 81 | "%tfm_s_ns_signed.bin " |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 82 | "-Binary -offset 0x220000 -o " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 83 | "%(_tbm_build_dir_)s/bin/" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 84 | "/tfm.hex -Intel")], |
| 85 | "MUSCA_B1": [("srec_cat " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 86 | "%(_tbm_build_dir_)s/bin/" |
| 87 | "bl2.bin " |
Minos Galanakis | e86f448 | 2019-11-06 16:08:23 +0000 | [diff] [blame] | 88 | "-Binary -offset 0xA000000 " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 89 | "%(_tbm_build_dir_)s/bin/" |
| 90 | "%tfm_s_ns_signed.bin " |
Minos Galanakis | e86f448 | 2019-11-06 16:08:23 +0000 | [diff] [blame] | 91 | "-Binary -offset 0xA020000 -o " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 92 | "%(_tbm_build_dir_)s/bin/" |
Karl Zhang | effed97 | 2020-06-30 15:48:01 +0800 | [diff] [blame] | 93 | "/tfm.hex -Intel")], |
| 94 | "MUSCA_S1": [("srec_cat " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 95 | "%(_tbm_build_dir_)s/bin/" |
| 96 | "bl2.bin " |
Karl Zhang | effed97 | 2020-06-30 15:48:01 +0800 | [diff] [blame] | 97 | "-Binary -offset 0xA000000 " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 98 | "%(_tbm_build_dir_)s/bin/" |
| 99 | "%tfm_s_ns_signed.bin " |
Karl Zhang | effed97 | 2020-06-30 15:48:01 +0800 | [diff] [blame] | 100 | "-Binary -offset 0xA020000 -o " |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 101 | "%(_tbm_build_dir_)s/bin/" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 102 | "/tfm.hex -Intel")] |
| 103 | }, |
| 104 | |
| 105 | # (Optional) If set will fail if those artefacts are missing post build |
| 106 | "required_artefacts": {"all": [ |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 107 | "%(_tbm_build_dir_)s/bin/" |
| 108 | "tfm_s.bin", |
| 109 | "%(_tbm_build_dir_)s/bin/" |
| 110 | "tfm_ns.bin"], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 111 | "MUSCA_A": [ |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 112 | "%(_tbm_build_dir_)s/bin/" |
| 113 | "tfm.hex", |
| 114 | "%(_tbm_build_dir_)s/bin/" |
| 115 | "mcuboot.bin", |
| 116 | "%(_tbm_build_dir_)s/bin/" |
| 117 | "tfm_sign.bin"], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 118 | "MUSCA_B1": [ |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 119 | "%(_tbm_build_dir_)s/bin/" |
| 120 | "tfm.hex", |
| 121 | "%(_tbm_build_dir_)s/bin/" |
| 122 | "mcuboot.bin", |
| 123 | "%(_tbm_build_dir_)s/bin/" |
| 124 | "tfm_sign.bin"], |
Karl Zhang | effed97 | 2020-06-30 15:48:01 +0800 | [diff] [blame] | 125 | "MUSCA_S1": [ |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 126 | "%(_tbm_build_dir_)s/bin/" |
| 127 | "tfm.hex", |
| 128 | "%(_tbm_build_dir_)s/bin/" |
| 129 | "mcuboot.bin", |
| 130 | "%(_tbm_build_dir_)s/bin/" |
| 131 | "tfm_sign.bin"] |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 132 | } |
| 133 | } |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 134 | |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 135 | # List of all build configs that are impossible under all circumstances |
| 136 | _common_tfm_invalid_configs = [ |
| 137 | ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*"), # LVL2 requires PSA api |
| 138 | ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*"), # Regression requires NS |
| 139 | ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*"), # No PSA_ACK with regression |
| 140 | ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*"), # No PSA_ACK with regression |
| 141 | ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*"), # No PSA_ACK with regression |
| 142 | ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*"), # No PSA_ACK with regression |
| 143 | ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*"), # No PSA_ACK with regression |
| 144 | ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*"), # PSA_ACK requires NS |
| 145 | ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*"), # PSA_ACK requires NS |
| 146 | ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*"), # PSA_ACK requires NS |
| 147 | ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*"), # PSA_ACK requires NS |
| 148 | ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*"), # PSA_ACK requires NS |
| 149 | ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*"), # Musca a requires BL2 |
| 150 | ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*"), # Musca b1 requires BL2 |
| 151 | ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*"), # Musca s1 requires BL2 |
| 152 | ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*"), # psoc64 cannot use BL2 |
| 153 | ] |
| 154 | |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 155 | # Configure build manager to build several combinations |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 156 | config_AN539 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 157 | "tfm_platform": ["mps2/an539"], |
| 158 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 159 | "toolchain_ARMCLANG.cmake"], |
| 160 | "psa_api": [True, False], |
| 161 | "isolation_level": ["1", "2"], |
| 162 | "test_regression": [True, False], |
| 163 | "test_psa_api": ["OFF"], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 164 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 165 | "with_otp": [False], |
| 166 | "with_bl2": [True, False], |
| 167 | "with_ns": [True, False], |
| 168 | "profile": [""], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 169 | }, |
| 170 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 171 | "invalid": _common_tfm_invalid_configs + [] |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 172 | } |
| 173 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 174 | config_AN524 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 175 | "tfm_platform": ["mps3/an524"], |
| 176 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 177 | "toolchain_ARMCLANG.cmake"], |
| 178 | "psa_api": [True, False], |
| 179 | "isolation_level": ["1", "2"], |
| 180 | "test_regression": [True, False], |
| 181 | "test_psa_api": ["OFF"], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 182 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 183 | "with_otp": [False], |
| 184 | "with_bl2": [True, False], |
| 185 | "with_ns": [True, False], |
| 186 | "profile": [""], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 187 | }, |
| 188 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 189 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 190 | } |
| 191 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 192 | config_AN521 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 193 | "tfm_platform": ["mps2/an521"], |
| 194 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 195 | "toolchain_ARMCLANG.cmake"], |
| 196 | "psa_api": [True, False], |
| 197 | "isolation_level": ["1", "2"], |
| 198 | "test_regression": [True, False], |
| 199 | "test_psa_api": ["OFF"], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 200 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 201 | "with_otp": [False], |
| 202 | "with_bl2": [True, False], |
| 203 | "with_ns": [True, False], |
| 204 | "profile": [""], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 205 | }, |
| 206 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 207 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 208 | } |
| 209 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 210 | config_PSA_API = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 211 | "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"], |
| 212 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 213 | "toolchain_ARMCLANG.cmake"], |
| 214 | "psa_api": [True, False], |
| 215 | "isolation_level": ["1", "2"], |
| 216 | "test_regression": [False], |
| 217 | "test_psa_api": ["CRYPTO", |
| 218 | "PROTECTED_STORAGE", |
| 219 | "INITIAL_ATTESTATION", |
| 220 | "INTERNAL_TRUSTED_STORAGE"], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 221 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 222 | "with_otp": [False], |
| 223 | "with_bl2": [True], |
| 224 | "with_ns": [True, False], |
| 225 | "profile": [""], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 226 | }, |
| 227 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 228 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 229 | } |
| 230 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 231 | config_PSA_FF = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 232 | "tfm_platform": ["mps2/an521", "musca_b1"], |
| 233 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 234 | "toolchain_ARMCLANG.cmake"], |
| 235 | "psa_api": [True], |
| 236 | "isolation_level": ["1", "2"], |
| 237 | "test_regression": [False], |
| 238 | "test_psa_api": ["IPC"], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 239 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 240 | "with_otp": [False], |
| 241 | "with_bl2": [True], |
| 242 | "with_ns": [True, False], |
| 243 | "profile": [""], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 244 | }, |
| 245 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 246 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 247 | } |
| 248 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 249 | config_PSA_API_OTP = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 250 | "tfm_platform": ["musca_b1"], |
| 251 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 252 | "toolchain_ARMCLANG.cmake"], |
| 253 | "psa_api": [True, False], |
| 254 | "isolation_level": ["1", "2"], |
| 255 | "test_regression": [False], |
| 256 | "test_psa_api": ["CRYPTO", |
| 257 | "PROTECTED_STORAGE", |
| 258 | "INITIAL_ATTESTATION", |
| 259 | "INTERNAL_TRUSTED_STORAGE"], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 260 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 261 | "with_otp": [True], |
| 262 | "with_bl2": [True], |
| 263 | "with_ns": [True, False], |
| 264 | "profile": [""], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 265 | }, |
| 266 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 267 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 268 | } |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 269 | |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 270 | config_PSA_FF_OTP = {"seed_params": { |
| 271 | "tfm_platform": ["musca_b1"], |
| 272 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 273 | "toolchain_ARMCLANG.cmake"], |
| 274 | "psa_api": [True], |
| 275 | "isolation_level": ["1", "2"], |
| 276 | "test_regression": [False], |
| 277 | "test_psa_api": ["IPC"], |
| 278 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 279 | "with_otp": [True], |
| 280 | "with_bl2": [True], |
| 281 | "with_ns": [True, False], |
| 282 | "profile": [""], |
| 283 | }, |
| 284 | "common_params": _common_tfm_builder_cfg, |
| 285 | "invalid": _common_tfm_invalid_configs + [] |
| 286 | } |
| 287 | |
Karl Zhang | 96dfe2d | 2020-05-11 11:31:40 +0800 | [diff] [blame] | 288 | config_PSOC64 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 289 | "tfm_platform": ["cypress/psoc64"], |
| 290 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 291 | "toolchain_ARMCLANG.cmake"], |
| 292 | "psa_api": [True], |
| 293 | "isolation_level": ["1", "2"], |
| 294 | "test_regression": [True], |
| 295 | "test_psa_api": ["OFF"], |
Karl Zhang | 96dfe2d | 2020-05-11 11:31:40 +0800 | [diff] [blame] | 296 | "cmake_build_type": ["Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 297 | "with_otp": [False], |
| 298 | "with_bl2": [False], |
| 299 | "with_ns": [True, False], |
| 300 | "profile": [""], |
Karl Zhang | 96dfe2d | 2020-05-11 11:31:40 +0800 | [diff] [blame] | 301 | }, |
| 302 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 303 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | 96dfe2d | 2020-05-11 11:31:40 +0800 | [diff] [blame] | 304 | } |
| 305 | |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 306 | config_AN519 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 307 | "tfm_platform": ["mps2/an519"], |
| 308 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 309 | "toolchain_ARMCLANG.cmake"], |
| 310 | "psa_api": [True, False], |
| 311 | "isolation_level": ["1", "2"], |
| 312 | "test_regression": [True, False], |
| 313 | "test_psa_api": ["OFF"], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 314 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 315 | "with_otp": [False], |
| 316 | "with_bl2": [True, False], |
| 317 | "with_ns": [True, False], |
| 318 | "profile": [""], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 319 | }, |
| 320 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 321 | "invalid": _common_tfm_invalid_configs + [] |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 322 | } |
| 323 | |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 324 | config_IPC = {"seed_params": { |
| 325 | "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"], |
| 326 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 327 | "toolchain_ARMCLANG.cmake"], |
| 328 | "psa_api": [True], |
| 329 | "isolation_level": ["1", "2"], |
| 330 | "test_regression": [True, False], |
| 331 | "test_psa_api": ["OFF"], |
| 332 | "cmake_build_type": ["Debug", "Release"], |
| 333 | "with_otp": [False], |
| 334 | "with_bl2": [True, False], |
| 335 | "with_ns": [True, False], |
| 336 | "profile": [""], |
| 337 | }, |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 338 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 339 | "invalid": _common_tfm_invalid_configs + [] |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 340 | } |
| 341 | |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 342 | config_full = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 343 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 344 | "musca_a", "musca_b1", |
| 345 | "mps2/an539", "mps3/an524", |
| 346 | "cypress/psoc64"], |
| 347 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 348 | "toolchain_ARMCLANG.cmake"], |
| 349 | "psa_api": [True, False], |
| 350 | "isolation_level": ["1", "2"], |
| 351 | "test_regression": [True, False], |
| 352 | "test_psa_api": ["OFF"], |
Dean Birch | d6ce2c8 | 2020-05-13 13:16:15 +0100 | [diff] [blame] | 353 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 354 | "with_otp": [False], |
| 355 | "with_bl2": [True, False], |
| 356 | "with_ns": [True, False], |
| 357 | "profile": [""], |
Dean Birch | d6ce2c8 | 2020-05-13 13:16:15 +0100 | [diff] [blame] | 358 | }, |
| 359 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 360 | "invalid": _common_tfm_invalid_configs + [ |
| 361 | ("cypress/psoc64", "*", "*", "*", |
| 362 | "*", "*", "Debug", "*", "*", "*", "*"), |
| 363 | ("cypress/psoc64", "*", "*", "*", |
| 364 | "*", "*", "*", "*", True, True, "*"), |
| 365 | ] |
Karl Zhang | 81a7677 | 2020-05-11 18:28:52 +0800 | [diff] [blame] | 366 | } |
| 367 | |
Karl Zhang | 81a7677 | 2020-05-11 18:28:52 +0800 | [diff] [blame] | 368 | config_full_gnuarm = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 369 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 370 | "musca_a", "musca_b1", |
| 371 | "mps3/an524", "mps2/an539", |
| 372 | "cypress/psoc64"], |
| 373 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 374 | "psa_api": [True, False], |
| 375 | "isolation_level": ["1", "2"], |
| 376 | "test_regression": [True, False], |
| 377 | "test_psa_api": ["OFF"], |
Karl Zhang | 81a7677 | 2020-05-11 18:28:52 +0800 | [diff] [blame] | 378 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 379 | "with_otp": [False], |
| 380 | "with_bl2": [True, False], |
| 381 | "with_ns": [True, False], |
| 382 | "profile": [""], |
Karl Zhang | 81a7677 | 2020-05-11 18:28:52 +0800 | [diff] [blame] | 383 | }, |
| 384 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 385 | "invalid": _common_tfm_invalid_configs + [ |
| 386 | ("cypress/psoc64", "*", "*", "*", |
| 387 | "*", "*", "Debug", "*", "*", "*", "*"), |
| 388 | ("cypress/psoc64", "*", "*", "*", |
| 389 | "*", "*", "*", "*", True, True, "*"), |
| 390 | ] |
Dean Birch | d6ce2c8 | 2020-05-13 13:16:15 +0100 | [diff] [blame] | 391 | } |
| 392 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 393 | config_tfm_test = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 394 | "tfm_platform": ["mps2/an521", "musca_a", |
| 395 | "musca_b1", "musca_s1"], |
| 396 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 397 | "toolchain_GNUARM.cmake"], |
| 398 | "psa_api": [True, False], |
| 399 | "isolation_level": ["1", "2"], |
| 400 | "test_regression": [True, False], |
| 401 | "test_psa_api": ["OFF"], |
| 402 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 403 | "with_otp": [False], |
| 404 | "with_bl2": [True, False], |
| 405 | "with_ns": [True, False], |
| 406 | "profile": [""], |
| 407 | }, |
| 408 | "common_params": _common_tfm_builder_cfg, |
| 409 | "invalid": _common_tfm_invalid_configs + [] |
| 410 | } |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 411 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 412 | config_tfm_test2 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 413 | "tfm_platform": ["mps2/an519", "mps3/an524", |
| 414 | "mps2/an539", "mps2/sse-200_aws"], |
| 415 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 416 | "toolchain_GNUARM.cmake"], |
| 417 | "psa_api": [True, False], |
| 418 | "isolation_level": ["1", "2"], |
| 419 | "test_regression": [True, False], |
| 420 | "test_psa_api": ["OFF"], |
| 421 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 422 | "with_otp": [False], |
| 423 | "with_bl2": [True, False], |
| 424 | "with_ns": [True, False], |
| 425 | "profile": [""], |
| 426 | }, |
| 427 | "common_params": _common_tfm_builder_cfg, |
| 428 | "invalid": _common_tfm_invalid_configs + [ |
| 429 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 430 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 431 | ] |
| 432 | } |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 433 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 434 | config_tfm_profile = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 435 | "tfm_platform": ["mps2/an519", "mps2/an521"], |
| 436 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 437 | "toolchain_GNUARM.cmake"], |
| 438 | "psa_api": [False], |
| 439 | "isolation_level": ["1"], |
| 440 | "test_regression": [True, False], |
| 441 | "test_psa_api": ["OFF"], |
| 442 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 443 | "with_otp": [False], |
| 444 | "with_bl2": [True, False], |
| 445 | "with_ns": [True, False], |
| 446 | "profile": ["profile_small"], |
| 447 | }, |
| 448 | "common_params": _common_tfm_builder_cfg, |
| 449 | "invalid": _common_tfm_invalid_configs + [ |
| 450 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 451 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 452 | ] |
| 453 | } |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 454 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 455 | config_tfm_test_OTP = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 456 | "tfm_platform": ["musca_b1"], |
| 457 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 458 | "toolchain_GNUARM.cmake"], |
| 459 | "psa_api": [True, False], |
| 460 | "isolation_level": ["1", "2"], |
| 461 | "test_regression": [True, False], |
| 462 | "test_psa_api": ["OFF"], |
| 463 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 464 | "with_otp": [True], |
| 465 | "with_bl2": [True], |
| 466 | "with_ns": [True, False], |
| 467 | "profile": [""], |
| 468 | }, |
| 469 | "common_params": _common_tfm_builder_cfg, |
| 470 | "invalid": _common_tfm_invalid_configs + [] |
| 471 | } |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 472 | |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 473 | config_MUSCA_A = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 474 | "tfm_platform": ["musca_a"], |
| 475 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 476 | "toolchain_GNUARM.cmake"], |
| 477 | "psa_api": [True, False], |
| 478 | "isolation_level": ["1", "2"], |
| 479 | "test_regression": [True, False], |
| 480 | "test_psa_api": ["OFF"], |
| 481 | "cmake_build_type": ["Debug", "Release"], |
| 482 | "with_otp": [False], |
| 483 | "with_bl2": [True], |
| 484 | "with_ns": [True, False], |
| 485 | "profile": [""], |
| 486 | }, |
| 487 | "common_params": _common_tfm_builder_cfg, |
| 488 | "invalid": _common_tfm_invalid_configs + [] |
| 489 | } |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 490 | |
| 491 | config_MUSCA_B1 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 492 | "tfm_platform": ["musca_b1"], |
| 493 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 494 | "toolchain_GNUARM.cmake"], |
| 495 | "psa_api": [True, False], |
| 496 | "isolation_level": ["1", "2"], |
| 497 | "test_regression": [True, False], |
| 498 | "test_psa_api": ["OFF"], |
| 499 | "cmake_build_type": ["Debug", "Release"], |
| 500 | "with_otp": [False], |
| 501 | "with_bl2": [True], |
| 502 | "with_ns": [True, False], |
| 503 | "profile": [""], |
| 504 | }, |
| 505 | "common_params": _common_tfm_builder_cfg, |
| 506 | "invalid": _common_tfm_invalid_configs + [] |
| 507 | } |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 508 | |
Karl Zhang | effed97 | 2020-06-30 15:48:01 +0800 | [diff] [blame] | 509 | config_MUSCA_S1 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 510 | "tfm_platform": ["musca_s1"], |
| 511 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 512 | "toolchain_GNUARM.cmake"], |
| 513 | "psa_api": [True, False], |
| 514 | "isolation_level": ["1", "2"], |
| 515 | "test_regression": [True, False], |
| 516 | "test_psa_api": ["OFF"], |
| 517 | "cmake_build_type": ["Debug", "Release"], |
| 518 | "with_otp": [False], |
| 519 | "with_bl2": [True], |
| 520 | "with_ns": [True, False], |
| 521 | "profile": [""], |
| 522 | }, |
| 523 | "common_params": _common_tfm_builder_cfg, |
| 524 | "invalid": _common_tfm_invalid_configs + [] |
| 525 | } |
Karl Zhang | effed97 | 2020-06-30 15:48:01 +0800 | [diff] [blame] | 526 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 527 | config_release = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 528 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 529 | "musca_a", "musca_b1", "musca_s1", |
| 530 | "mps3/an524", "mps2/an539"], |
| 531 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 532 | "toolchain_GNUARM.cmake"], |
| 533 | "psa_api": [True, False], |
| 534 | "isolation_level": ["1", "2"], |
| 535 | "test_regression": [True, False], |
| 536 | "test_psa_api": ["OFF"], |
| 537 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 538 | "with_otp": [False], |
| 539 | "with_bl2": [True, False], |
| 540 | "with_ns": [True, False], |
| 541 | "profile": [""], |
| 542 | }, |
| 543 | "common_params": _common_tfm_builder_cfg, |
| 544 | "invalid": _common_tfm_invalid_configs + [ |
| 545 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 546 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 547 | ] |
| 548 | } |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 549 | |
| 550 | # Configure build manager to build several combinations |
| 551 | config_AN521_PSA_API = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 552 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 553 | "musca_b1"], |
| 554 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 555 | "toolchain_ARMCLANG.cmake"], |
| 556 | "psa_api": [True, False], |
| 557 | "isolation_level": ["1", "2"], |
| 558 | "test_regression": [False], |
| 559 | "test_psa_api": ["IPC", |
| 560 | "CRYPTO", |
| 561 | "PROTECTED_STORAGE", |
| 562 | "INITIAL_ATTESTATION", |
| 563 | "INTERNAL_TRUSTED_STORAGE"], |
| 564 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 565 | "with_otp": [False], |
| 566 | "with_bl2": [True], |
| 567 | "with_ns": [True, False], |
| 568 | "profile": [""], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 569 | }, |
| 570 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 571 | "invalid": _common_tfm_invalid_configs + [ |
| 572 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 573 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 574 | ] |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 575 | } |
| 576 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 577 | config_AN521_PSA_IPC = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 578 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 579 | "musca_b1"], |
| 580 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 581 | "toolchain_ARMCLANG.cmake"], |
| 582 | "psa_api": [True], |
| 583 | "isolation_level": ["1", "2"], |
| 584 | "test_regression": [False], |
| 585 | "test_psa_api": ["IPC"], |
| 586 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 587 | "with_otp": [True], |
| 588 | "with_bl2": [True], |
| 589 | "with_ns": [True, False], |
| 590 | "profile": [""], |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 591 | }, |
| 592 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 593 | "invalid": _common_tfm_invalid_configs + [ |
| 594 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 595 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 596 | ] |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 597 | } |
| 598 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 599 | config_nightly = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 600 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 601 | "musca_a", "musca_b1", "musca_s1", |
| 602 | "mps3/an524", "mps2/an539", |
| 603 | "mps2/sse-200_aws", "cypress/psoc64"], |
| 604 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 605 | "toolchain_ARMCLANG.cmake"], |
| 606 | "psa_api": [True, False], |
| 607 | "isolation_level": ["1", "2"], |
| 608 | "test_regression": [True, False], |
| 609 | "test_psa_api": ["OFF"], |
| 610 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 611 | "with_otp": [False], |
| 612 | "with_bl2": [True, False], |
| 613 | "with_ns": [True, False], |
| 614 | "profile": [""], |
| 615 | }, |
| 616 | "common_params": _common_tfm_builder_cfg, |
| 617 | "invalid": _common_tfm_invalid_configs + [ |
| 618 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 619 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 620 | ("cypress/psoc64", "*", "*", "*", |
| 621 | "*", "*", "Debug", "*", "*", "*", "*"), |
| 622 | ("cypress/psoc64", "*", "*", "*", |
| 623 | "*", "*", "*", "*", True, True, "*"), |
| 624 | ] |
| 625 | } |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 626 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 627 | config_nightly_profile = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 628 | "tfm_platform": ["mps2/an519", "mps2/an521"], |
| 629 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 630 | "toolchain_GNUARM.cmake"], |
| 631 | "psa_api": [False], |
| 632 | "isolation_level": ["1"], |
| 633 | "test_regression": [True, False], |
| 634 | "test_psa_api": ["OFF"], |
| 635 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 636 | "with_otp": [False], |
| 637 | "with_bl2": [True, False], |
| 638 | "with_ns": [True, False], |
| 639 | "profile": ["profile_small"], |
| 640 | }, |
| 641 | "common_params": _common_tfm_builder_cfg, |
| 642 | "invalid": _common_tfm_invalid_configs + [ |
| 643 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 644 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 645 | ] |
| 646 | } |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 647 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 648 | config_nightly_PSA_API = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 649 | "tfm_platform": ["mps2/an521"], |
| 650 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 651 | "toolchain_ARMCLANG.cmake"], |
| 652 | "psa_api": [True, False], |
| 653 | "isolation_level": ["1", "2"], |
| 654 | "test_regression": [False], |
| 655 | "test_psa_api": ["CRYPTO", |
| 656 | "PROTECTED_STORAGE", |
| 657 | "INITIAL_ATTESTATION", |
| 658 | "INTERNAL_TRUSTED_STORAGE"], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 659 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 660 | "with_otp": [False], |
| 661 | "with_bl2": [True], |
| 662 | "with_ns": [True, False], |
| 663 | "profile": [""], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 664 | }, |
| 665 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 666 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 667 | } |
| 668 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 669 | config_nightly_PSA_FF = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 670 | "tfm_platform": ["mps2/an521"], |
| 671 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 672 | "toolchain_ARMCLANG.cmake"], |
| 673 | "psa_api": [True], |
| 674 | "isolation_level": ["1", "2"], |
| 675 | "test_regression": [False], |
| 676 | "test_psa_api": ["IPC"], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 677 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 678 | "with_otp": [False], |
| 679 | "with_bl2": [True], |
| 680 | "with_ns": [True, False], |
| 681 | "profile": [""], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 682 | }, |
| 683 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 684 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 685 | } |
| 686 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 687 | config_nightly_OTP = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 688 | "tfm_platform": ["musca_b1"], |
| 689 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 690 | "toolchain_ARMCLANG.cmake"], |
| 691 | "psa_api": [True, False], |
| 692 | "isolation_level": ["1", "2"], |
| 693 | "test_regression": [True], |
| 694 | "test_psa_api": ["OFF"], |
| 695 | "cmake_build_type": ["Debug", "Release"], |
| 696 | "with_otp": [True], |
| 697 | "with_bl2": [True], |
| 698 | "with_ns": [True, False], |
| 699 | "profile": [""], |
| 700 | }, |
| 701 | "common_params": _common_tfm_builder_cfg, |
| 702 | "invalid": _common_tfm_invalid_configs + [] |
| 703 | } |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 704 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 705 | config_pp_test = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 706 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 707 | "musca_b1"], |
| 708 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 709 | "toolchain_ARMCLANG.cmake"], |
| 710 | "psa_api": [True, False], |
| 711 | "isolation_level": ["1", "2"], |
| 712 | "test_regression": [True], |
| 713 | "test_psa_api": ["OFF"], |
| 714 | "cmake_build_type": ["Release"], |
| 715 | "with_otp": [False], |
| 716 | "with_bl2": [True], |
| 717 | "with_ns": [True, False], |
| 718 | "profile": ["", "profile_small"], |
| 719 | }, |
| 720 | "common_params": _common_tfm_builder_cfg, |
| 721 | "invalid": _common_tfm_invalid_configs + [ |
| 722 | ("musca_b1", "*", "*", "*", "*", "*", |
| 723 | "*", "*", "*", "*", "profile_small"), |
| 724 | ("*", "*", True, "*", "*", "*", |
| 725 | "*", "*", "*", "*", "profile_small"), |
| 726 | ("*", "*", "*", "2", "*", "*", |
| 727 | "*", "*", "*", "*", "profile_small"), |
| 728 | ] |
| 729 | } |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 730 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 731 | config_pp_OTP = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 732 | "tfm_platform": ["musca_b1"], |
| 733 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 734 | "psa_api": [True, False], |
| 735 | "isolation_level": ["1", "2"], |
| 736 | "test_regression": [True], |
| 737 | "test_psa_api": ["OFF"], |
| 738 | "cmake_build_type": ["Release"], |
| 739 | "with_otp": [True], |
| 740 | "with_bl2": [True], |
| 741 | "with_ns": [True, False], |
| 742 | "profile": [""], |
| 743 | }, |
| 744 | "common_params": _common_tfm_builder_cfg, |
| 745 | "invalid": _common_tfm_invalid_configs + [] |
| 746 | } |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 747 | |
| 748 | # Configure build manager to build several combinations |
| 749 | config_pp_PSA_API = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 750 | "tfm_platform": ["mps2/an521"], |
| 751 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 752 | "psa_api": [True], |
| 753 | "isolation_level": ["2"], |
| 754 | "test_regression": [False], |
| 755 | "test_psa_api": ["IPC", |
| 756 | "CRYPTO", |
| 757 | "PROTECTED_STORAGE", |
| 758 | "INITIAL_ATTESTATION", |
| 759 | "INTERNAL_TRUSTED_STORAGE"], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 760 | "cmake_build_type": ["Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 761 | "with_otp": [False], |
| 762 | "with_bl2": [True], |
| 763 | "with_ns": [True, False], |
| 764 | "profile": [""], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 765 | }, |
| 766 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 767 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 768 | } |
| 769 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 770 | config_pp_PSoC64 = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 771 | "tfm_platform": ["cypress/psoc64"], |
| 772 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 773 | "psa_api": [True], |
| 774 | "isolation_level": ["1", "2"], |
| 775 | "test_regression": [True], |
| 776 | "test_psa_api": ["OFF"], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 777 | "cmake_build_type": ["Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 778 | "with_otp": [False], |
| 779 | "with_bl2": [False], |
| 780 | "with_ns": [True, False], |
| 781 | "profile": [""], |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 782 | }, |
| 783 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 784 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 785 | } |
| 786 | |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 787 | # Configruation used for document building |
| 788 | config_doxygen = {"common_params": { |
| 789 | "config_type": "tf-m_documents", |
| 790 | "codebase_root_dir": "tf-m", |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 791 | "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 " |
| 792 | "-DCMAKE_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 793 | "-DCMAKE_BUILD_TYPE=Debug " |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 794 | "%(_tbm_code_dir_)s/", |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 795 | "cmake --build ./ -- docs"]}, |
| 796 | "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/' |
| 797 | r'reference_manual/(?:latex|html)' |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 798 | r'/(\w+\.(?:html|md|pdf))$', |
| 799 | }, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 800 | "invalid": _common_tfm_invalid_configs + [] |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 801 | } |
| 802 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 803 | # Configuration used in testing |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 804 | config_debug = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 805 | "tfm_platform": ["mps2/an521"], |
| 806 | "toolchain_file": ["toolchain_ARMCLANG.cmake"], |
| 807 | "psa_api": [False], |
| 808 | "isolation_level": ["1"], |
| 809 | "test_regression": [False], |
| 810 | "test_psa_api": ["OFF"], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 811 | "cmake_build_type": ["Debug"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 812 | "with_otp": [False], |
| 813 | "with_bl2": [True], |
| 814 | "with_ns": [True], |
| 815 | "profile": [""], |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 816 | }, |
| 817 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 818 | "invalid": _common_tfm_invalid_configs + [] |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 819 | } |
| 820 | |
Dean Birch | 4c6ad62 | 2020-03-13 11:28:03 +0000 | [diff] [blame] | 821 | # Configuration used in CI |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 822 | config_ci = {"seed_params": { |
| 823 | "tfm_platform": ["mps2/an521"], |
| 824 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 825 | "toolchain_GNUARM.cmake"], |
| 826 | "psa_api": [True, False], |
| 827 | "isolation_level": ["1", "2"], |
| 828 | "test_regression": [True, False], |
| 829 | "test_psa_api": ["OFF"], |
| 830 | "cmake_build_type": ["Release"], |
| 831 | "with_otp": [False], |
| 832 | "with_bl2": [True, False], |
| 833 | "with_ns": [True], |
| 834 | "profile": [""], |
| 835 | }, |
| 836 | "common_params": _common_tfm_builder_cfg, |
| 837 | "invalid": _common_tfm_invalid_configs + [ |
| 838 | ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*", |
| 839 | "*", "*", "*", "*", "*"), |
| 840 | ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*", |
| 841 | "*", "*", False, "*", "*"), |
| 842 | ] |
| 843 | } |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 844 | |
Dean Birch | d6ce2c8 | 2020-05-13 13:16:15 +0100 | [diff] [blame] | 845 | # Configuration used in CI if armclang not available |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 846 | config_ci_gnuarm = {"seed_params": { |
| 847 | "tfm_platform": ["mps2/an521"], |
| 848 | "toolchain_file": ["toolchain_ARMCLANG.cmake", |
| 849 | "toolchain_GNUARM.cmake"], |
| 850 | "psa_api": [True, False], |
| 851 | "isolation_level": ["1", "2"], |
| 852 | "test_regression": [True, False], |
| 853 | "test_psa_api": ["OFF"], |
| 854 | "cmake_build_type": ["Release"], |
| 855 | "with_otp": [False], |
| 856 | "with_bl2": [True, False], |
| 857 | "with_ns": [True], |
| 858 | "profile": [""], |
| 859 | }, |
| 860 | "common_params": _common_tfm_builder_cfg, |
| 861 | "invalid": _common_tfm_invalid_configs + [ |
| 862 | ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*", |
| 863 | "*", "*", "*", "*", "*"), |
| 864 | ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*", |
| 865 | "*", "*", "False", "*", "*"), |
| 866 | ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", |
| 867 | "*", "*", "*", "*", "*") # Disable ARMCLANG for now |
| 868 | ] |
| 869 | } |
Dean Birch | d6ce2c8 | 2020-05-13 13:16:15 +0100 | [diff] [blame] | 870 | |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 871 | config_lava_debug = {"seed_params": { |
| 872 | "tfm_platform": ["mps2/an521", "mps2/an519"], |
| 873 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 874 | "psa_api": [True, False], |
| 875 | "isolation_level": ["1", "2"], |
| 876 | "test_regression": [True], |
| 877 | "test_psa_api": ["OFF"], |
| 878 | "cmake_build_type": ["Release"], |
| 879 | "with_otp": [False], |
| 880 | "with_bl2": [True, False], |
| 881 | "with_ns": [True, False], |
| 882 | "profile": [""], |
| 883 | }, |
| 884 | "common_params": _common_tfm_builder_cfg, |
| 885 | "invalid": _common_tfm_invalid_configs + [ |
| 886 | ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*", |
| 887 | "*", "*", True, "*", "*") |
| 888 | ] |
| 889 | } |
Dean Birch | 4c6ad62 | 2020-03-13 11:28:03 +0000 | [diff] [blame] | 890 | |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 891 | #GNU groups for external CI only |
| 892 | # Configure build manager to build the maximum number of configurations |
| 893 | config_tfm_test_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 894 | "tfm_platform": ["mps2/an521", "musca_a", |
| 895 | "musca_b1", "musca_s1"], |
| 896 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 897 | "psa_api": [True, False], |
| 898 | "isolation_level": ["1", "2"], |
| 899 | "test_regression": [True, False], |
| 900 | "test_psa_api": ["OFF"], |
| 901 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 902 | "with_otp": [False], |
| 903 | "with_bl2": [True, False], |
| 904 | "with_ns": [True, False], |
| 905 | "profile": [""], |
| 906 | }, |
| 907 | "common_params": _common_tfm_builder_cfg, |
| 908 | "invalid": _common_tfm_invalid_configs + [ |
| 909 | ("musca_a", "*", "*", |
| 910 | "*", "*", "*", "*", "*", False, "*", "*"), |
| 911 | ("musca_b1", "*", "*", |
| 912 | "*", "*", "*", "*", "*", False, "*", "*"), |
| 913 | ("musca_s1", "*", "*", |
| 914 | "*", "*", "*", "*", "*", False, "*", "*"), |
| 915 | ] |
| 916 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 917 | |
| 918 | # Configure build manager to build the maximum number of configurations |
| 919 | config_tfm_test2_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 920 | "tfm_platform": ["mps2/an519", "mps3/an524", |
| 921 | "mps2/an539", "mps2/sse-200_aws"], |
| 922 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 923 | "psa_api": [True, False], |
| 924 | "isolation_level": ["1", "2"], |
| 925 | "test_regression": [True, False], |
| 926 | "test_psa_api": ["OFF"], |
| 927 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 928 | "with_otp": [False], |
| 929 | "with_bl2": [True, False], |
| 930 | "with_ns": [True, False], |
| 931 | "profile": [""], |
| 932 | }, |
| 933 | "common_params": _common_tfm_builder_cfg, |
| 934 | "invalid": _common_tfm_invalid_configs + [ |
| 935 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 936 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 937 | ] |
| 938 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 939 | |
| 940 | # Configure build manager to build the maximum number of configurations |
| 941 | config_tfm_profile_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 942 | "tfm_platform": ["mps2/an519", "mps2/an521"], |
| 943 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 944 | "psa_api": [False], |
| 945 | "isolation_level": ["1"], |
| 946 | "test_regression": [True, False], |
| 947 | "test_psa_api": ["OFF"], |
| 948 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 949 | "with_otp": [False], |
| 950 | "with_bl2": [True, False], |
| 951 | "with_ns": [True, False], |
| 952 | "profile": ["profile_small"], |
| 953 | }, |
| 954 | "common_params": _common_tfm_builder_cfg, |
| 955 | "invalid": _common_tfm_invalid_configs + [ |
| 956 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 957 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 958 | ] |
| 959 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 960 | |
| 961 | # Configure build manager to build the maximum number of configurations |
| 962 | config_tfm_test_OTP_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 963 | "tfm_platform": ["musca_b1"], |
| 964 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 965 | "psa_api": [True, False], |
| 966 | "isolation_level": ["1", "2"], |
| 967 | "test_regression": [True, False], |
| 968 | "test_psa_api": ["OFF"], |
| 969 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 970 | "with_otp": [True], |
| 971 | "with_bl2": [True], |
| 972 | "with_ns": [True, False], |
| 973 | "profile": [""], |
| 974 | }, |
| 975 | "common_params": _common_tfm_builder_cfg, |
| 976 | "invalid": _common_tfm_invalid_configs + [] |
| 977 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 978 | |
| 979 | # Configure build manager to build several combinations |
| 980 | config_PSA_API_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 981 | "tfm_platform": ["mps2/an521", "musca_b1"], |
| 982 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 983 | "psa_api": [True, False], |
| 984 | "isolation_level": ["1", "2"], |
| 985 | "test_regression": [False], |
| 986 | "test_psa_api": ["CRYPTO", |
| 987 | "PROTECTED_STORAGE", |
| 988 | "INITIAL_ATTESTATION", |
| 989 | "INTERNAL_TRUSTED_STORAGE"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 990 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 991 | "with_otp": [False], |
| 992 | "with_bl2": [True], |
| 993 | "with_ns": [True, False], |
| 994 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 995 | }, |
| 996 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 997 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 998 | } |
| 999 | |
| 1000 | # Configure build manager to build several combinations |
| 1001 | config_PSA_FF_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1002 | "tfm_platform": ["mps2/an521", "musca_b1"], |
| 1003 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1004 | "psa_api": [True], |
| 1005 | "isolation_level": ["1", "2"], |
| 1006 | "test_regression": [False], |
| 1007 | "test_psa_api": ["IPC"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1008 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1009 | "with_otp": [False], |
| 1010 | "with_bl2": [True], |
| 1011 | "with_ns": [True, False], |
| 1012 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1013 | }, |
| 1014 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1015 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1016 | } |
| 1017 | |
| 1018 | # Configure build manager to build several combinations |
| 1019 | config_PSA_API_OTP_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1020 | "tfm_platform": ["musca_b1"], |
| 1021 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1022 | "psa_api": [True, False], |
| 1023 | "isolation_level": ["1", "2"], |
| 1024 | "test_regression": [False], |
| 1025 | "test_psa_api": ["CRYPTO", |
| 1026 | "PROTECTED_STORAGE", |
| 1027 | "INITIAL_ATTESTATION", |
| 1028 | "INTERNAL_TRUSTED_STORAGE"], |
| 1029 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 1030 | "with_otp": [True], |
| 1031 | "with_bl2": [True], |
| 1032 | "with_ns": [True, False], |
| 1033 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1034 | }, |
| 1035 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1036 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1037 | } |
| 1038 | |
| 1039 | # Configure build manager to build several combinations |
| 1040 | config_PSA_FF_OTP_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1041 | "tfm_platform": ["musca_b1"], |
| 1042 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1043 | "psa_api": [True], |
| 1044 | "isolation_level": ["1", "2"], |
| 1045 | "test_regression": [False], |
| 1046 | "test_psa_api": ["IPC"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1047 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1048 | "with_otp": [True], |
| 1049 | "with_bl2": [True], |
| 1050 | "with_ns": [True, False], |
| 1051 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1052 | }, |
| 1053 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1054 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1055 | } |
| 1056 | |
| 1057 | # Configure build manager to build several combinations |
| 1058 | config_PSOC64_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1059 | "tfm_platform": ["cypress/psoc64"], |
| 1060 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1061 | "psa_api": [True], |
| 1062 | "isolation_level": ["1", "2"], |
| 1063 | "test_regression": [True], |
| 1064 | "test_psa_api": ["OFF"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1065 | "cmake_build_type": ["Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1066 | "with_otp": [False], |
| 1067 | "with_bl2": [False], |
| 1068 | "with_ns": [True, False], |
| 1069 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1070 | }, |
| 1071 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1072 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1073 | } |
| 1074 | |
| 1075 | # Configure build manager to build the maximum number of configurations |
| 1076 | config_nightly_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1077 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 1078 | "musca_a", "musca_b1", "musca_s1", |
| 1079 | "mps3/an524", "mps2/an539", |
| 1080 | "mps2/sse-200_aws", "cypress/psoc64"], |
| 1081 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1082 | "psa_api": [True, False], |
| 1083 | "isolation_level": ["1", "2"], |
| 1084 | "test_regression": [True, False], |
| 1085 | "test_psa_api": ["OFF"], |
| 1086 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 1087 | "with_otp": [False], |
| 1088 | "with_bl2": [True, False], |
| 1089 | "with_ns": [True, False], |
| 1090 | "profile": [""], |
| 1091 | }, |
| 1092 | "common_params": _common_tfm_builder_cfg, |
| 1093 | "invalid": _common_tfm_invalid_configs + [ |
| 1094 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 1095 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 1096 | ("cypress/psoc64", "*", "*", "*", |
| 1097 | "*", "*", "Debug", "*", "*", "*", "*"), |
| 1098 | ("cypress/psoc64", "*", "*", "*", |
| 1099 | "*", "*", "*", "*", True, True, "*"), |
| 1100 | ] |
| 1101 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1102 | |
| 1103 | # Configure build manager to build the maximum number of configurations |
| 1104 | config_nightly_profile_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1105 | "tfm_platform": ["mps2/an519", "mps2/an521"], |
| 1106 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1107 | "psa_api": [False], |
| 1108 | "isolation_level": ["1"], |
| 1109 | "test_regression": [True, False], |
| 1110 | "test_psa_api": ["OFF"], |
| 1111 | "cmake_build_type": ["Debug", "Release", "Minsizerel"], |
| 1112 | "with_otp": [False], |
| 1113 | "with_bl2": [True, False], |
| 1114 | "with_ns": [True, False], |
| 1115 | "profile": ["profile_small"], |
| 1116 | }, |
| 1117 | "common_params": _common_tfm_builder_cfg, |
| 1118 | "invalid": _common_tfm_invalid_configs + [ |
| 1119 | ("mps2/an519", "toolchain_GNUARM.cmake", "*", |
| 1120 | "*", "*", "*", "Minsizerel", "*", "*", "*", "*"), |
| 1121 | ] |
| 1122 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1123 | |
| 1124 | # Configure build manager to build several combinations |
| 1125 | config_nightly_PSA_API_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1126 | "tfm_platform": ["mps2/an521"], |
| 1127 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1128 | "psa_api": [True, False], |
| 1129 | "isolation_level": ["1", "2"], |
| 1130 | "test_regression": [False], |
| 1131 | "test_psa_api": ["CRYPTO", |
| 1132 | "PROTECTED_STORAGE", |
| 1133 | "INITIAL_ATTESTATION", |
| 1134 | "INTERNAL_TRUSTED_STORAGE"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1135 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1136 | "with_otp": [False], |
| 1137 | "with_bl2": [True], |
| 1138 | "with_ns": [True, False], |
| 1139 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1140 | }, |
| 1141 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1142 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1143 | } |
| 1144 | |
| 1145 | # Configure build manager to build several combinations |
| 1146 | config_nightly_PSA_FF_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1147 | "tfm_platform": ["mps2/an521"], |
| 1148 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1149 | "psa_api": [True], |
| 1150 | "isolation_level": ["1", "2"], |
| 1151 | "test_regression": [False], |
| 1152 | "test_psa_api": ["IPC"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1153 | "cmake_build_type": ["Debug", "Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1154 | "with_otp": [False], |
| 1155 | "with_bl2": [True], |
| 1156 | "with_ns": [True, False], |
| 1157 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1158 | }, |
| 1159 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1160 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1161 | } |
| 1162 | |
| 1163 | # Configure build manager to build the maximum number of configurations |
| 1164 | config_nightly_OTP_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1165 | "tfm_platform": ["musca_b1"], |
| 1166 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1167 | "psa_api": [True, False], |
| 1168 | "isolation_level": ["1", "2"], |
| 1169 | "test_regression": [True], |
| 1170 | "test_psa_api": ["OFF"], |
| 1171 | "cmake_build_type": ["Debug", "Release"], |
| 1172 | "with_otp": [True], |
| 1173 | "with_bl2": [True], |
| 1174 | "with_ns": [True, False], |
| 1175 | "profile": [""], |
| 1176 | }, |
| 1177 | "common_params": _common_tfm_builder_cfg, |
| 1178 | "invalid": _common_tfm_invalid_configs + [] |
| 1179 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1180 | |
| 1181 | # Configure build manager to build the maximum number of configurations |
| 1182 | config_pp_test_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1183 | "tfm_platform": ["mps2/an521", "mps2/an519", |
| 1184 | "musca_b1"], |
| 1185 | "toolchain_file": ["toolchain_GNUARM.cmake", |
| 1186 | "toolchain_ARMCLANG.cmake"], |
| 1187 | "psa_api": [True, False], |
| 1188 | "isolation_level": ["1", "2"], |
| 1189 | "test_regression": [True], |
| 1190 | "test_psa_api": ["OFF"], |
| 1191 | "cmake_build_type": ["Release"], |
| 1192 | "with_otp": [False], |
| 1193 | "with_bl2": [True], |
| 1194 | "with_ns": [True, False], |
| 1195 | "profile": ["", "profile_small"], |
| 1196 | }, |
| 1197 | "common_params": _common_tfm_builder_cfg, |
| 1198 | "invalid": _common_tfm_invalid_configs + [ |
| 1199 | ("musca_b1", "*", "*", "*", "*", "*", |
| 1200 | "*", "*", "*", "*", "profile_small"), |
| 1201 | ("*", "*", True, "*", "*", "*", |
| 1202 | "*", "*", "*", "*", "profile_small"), |
| 1203 | ("*", "*", "*", "2", "*", "*", |
| 1204 | "*", "*", "*", "*", "profile_small"), |
| 1205 | ] |
| 1206 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1207 | |
| 1208 | # Configure build manager to build the maximum number of configurations |
| 1209 | config_pp_OTP_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1210 | "tfm_platform": ["musca_b1"], |
| 1211 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1212 | "psa_api": [True, False], |
| 1213 | "isolation_level": ["1", "2"], |
| 1214 | "test_regression": [True], |
| 1215 | "test_psa_api": ["OFF"], |
| 1216 | "cmake_build_type": ["Release"], |
| 1217 | "with_otp": [True], |
| 1218 | "with_bl2": [True], |
| 1219 | "with_ns": [True, False], |
| 1220 | "profile": [""], |
| 1221 | }, |
| 1222 | "common_params": _common_tfm_builder_cfg, |
| 1223 | "invalid": _common_tfm_invalid_configs + [] |
| 1224 | } |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1225 | |
| 1226 | # Configure build manager to build several combinations |
| 1227 | config_pp_PSA_API_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1228 | "tfm_platform": ["mps2/an521"], |
| 1229 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1230 | "psa_api": [True], |
| 1231 | "isolation_level": ["2"], |
| 1232 | "test_regression": [False], |
| 1233 | "test_psa_api": ["IPC", |
| 1234 | "CRYPTO", |
| 1235 | "PROTECTED_STORAGE", |
| 1236 | "INITIAL_ATTESTATION", |
| 1237 | "INTERNAL_TRUSTED_STORAGE"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1238 | "cmake_build_type": ["Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1239 | "with_otp": [False], |
| 1240 | "with_bl2": [True], |
| 1241 | "with_ns": [True, False], |
| 1242 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1243 | }, |
| 1244 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1245 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1246 | } |
| 1247 | |
| 1248 | # Configure build manager to build several combinations |
| 1249 | config_pp_PSoC64_gnu = {"seed_params": { |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1250 | "tfm_platform": ["cypress/psoc64"], |
| 1251 | "toolchain_file": ["toolchain_GNUARM.cmake"], |
| 1252 | "psa_api": [True], |
| 1253 | "isolation_level": ["1", "2"], |
| 1254 | "test_regression": [True], |
| 1255 | "test_psa_api": ["OFF"], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1256 | "cmake_build_type": ["Release"], |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1257 | "with_otp": [False], |
| 1258 | "with_bl2": [False], |
| 1259 | "with_ns": [True, False], |
| 1260 | "profile": [""], |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1261 | }, |
| 1262 | "common_params": _common_tfm_builder_cfg, |
Xinyu Zhang | b708f57 | 2020-09-15 11:43:46 +0800 | [diff] [blame^] | 1263 | "invalid": _common_tfm_invalid_configs + [] |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1264 | } |
| 1265 | |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 1266 | _builtin_configs = { |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 1267 | #release test group |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 1268 | "tfm_test": config_tfm_test, |
| 1269 | "tfm_test2": config_tfm_test2, |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 1270 | "tfm_profile": config_tfm_profile, |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 1271 | "tfm_test_otp": config_tfm_test_OTP, |
| 1272 | "psa_api": config_PSA_API, |
| 1273 | "psa_api_otp": config_PSA_API_OTP, |
| 1274 | "psa_ff": config_PSA_FF, |
| 1275 | "psa_ff_otp": config_PSA_FF_OTP, |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 1276 | "tfm_psoc64": config_PSOC64, |
| 1277 | |
| 1278 | #nightly test group |
| 1279 | "nightly_test": config_nightly, |
| 1280 | "nightly_profile": config_nightly_profile, |
| 1281 | "nightly_psa_api": config_nightly_PSA_API, |
| 1282 | "nightly_ff": config_nightly_PSA_FF, |
| 1283 | "nightly_otp": config_nightly_OTP, |
| 1284 | |
| 1285 | #per patch test group |
| 1286 | "pp_test": config_pp_test, |
| 1287 | "pp_OTP": config_pp_OTP, |
| 1288 | "pp_PSA_API": config_pp_PSA_API, |
| 1289 | "pp_psoc64": config_pp_PSoC64, |
| 1290 | |
Karl Zhang | eea16ed | 2020-06-15 15:03:12 +0800 | [diff] [blame] | 1291 | #GNU only configs against groups above |
| 1292 | #The combinations should be the same except the CLANG ones |
| 1293 | #release test group (GNU) |
| 1294 | "tfm_test_gnu": config_tfm_test_gnu, |
| 1295 | "tfm_test2_gnu": config_tfm_test2_gnu, |
| 1296 | "tfm_profile_gnu": config_tfm_profile_gnu, |
| 1297 | "tfm_test_otp_gnu": config_tfm_test_OTP_gnu, |
| 1298 | "psa_api_gnu": config_PSA_API_gnu, |
| 1299 | "psa_api_otp_gnu": config_PSA_API_OTP_gnu, |
| 1300 | "psa_ff_gnu": config_PSA_FF_gnu, |
| 1301 | "psa_ff_otp_gnu": config_PSA_FF_OTP_gnu, |
| 1302 | "tfm_psoc64_gnu": config_PSOC64_gnu, |
| 1303 | |
| 1304 | #nightly test group (GNU) |
| 1305 | "nightly_test_gnu": config_nightly_gnu, |
| 1306 | "nightly_profile_gnu": config_nightly_profile_gnu, |
| 1307 | "nightly_psa_api_gnu": config_nightly_PSA_API_gnu, |
| 1308 | "nightly_ff_gnu": config_nightly_PSA_FF_gnu, |
| 1309 | "nightly_otp_gnu": config_nightly_OTP_gnu, |
| 1310 | |
| 1311 | #per patch test group (GNU) |
| 1312 | "pp_test_gnu": config_pp_test_gnu, |
| 1313 | "pp_OTP_gnu": config_pp_OTP_gnu, |
| 1314 | "pp_PSA_API_gnu": config_pp_PSA_API_gnu, |
| 1315 | "pp_psoc64_gnu": config_pp_PSoC64_gnu, |
| 1316 | |
| 1317 | |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 1318 | #full test group in the old CI |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 1319 | "full": config_full, |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 1320 | |
| 1321 | #specific test group |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 1322 | "an539": config_AN539, |
| 1323 | "an524": config_AN524, |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 1324 | "an521": config_AN521, |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 1325 | "an521_psa_api": config_AN521_PSA_API, |
| 1326 | "an521_psa_ipc": config_AN521_PSA_IPC, |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 1327 | "an519": config_AN519, |
| 1328 | "musca_a": config_MUSCA_A, |
| 1329 | "musca_b1": config_MUSCA_B1, |
Karl Zhang | effed97 | 2020-06-30 15:48:01 +0800 | [diff] [blame] | 1330 | "musca_s1": config_MUSCA_S1, |
Karl Zhang | 96dfe2d | 2020-05-11 11:31:40 +0800 | [diff] [blame] | 1331 | "psoc64": config_PSOC64, |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 1332 | "ipc": config_IPC, |
| 1333 | "doxygen": config_doxygen, |
Dean Birch | 4c6ad62 | 2020-03-13 11:28:03 +0000 | [diff] [blame] | 1334 | "debug": config_debug, |
Karl Zhang | aff558a | 2020-05-15 14:28:23 +0100 | [diff] [blame] | 1335 | "release": config_release, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 1336 | "debug": config_debug, |
Karl Zhang | 14573bc | 2020-06-08 09:23:21 +0800 | [diff] [blame] | 1337 | |
| 1338 | #DevOps team test group |
| 1339 | "full_gnuarm": config_full_gnuarm, |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 1340 | "lava_debug": config_lava_debug, |
Dean Birch | d6ce2c8 | 2020-05-13 13:16:15 +0100 | [diff] [blame] | 1341 | "ci": config_ci, |
| 1342 | "ci_gnuarm": config_ci_gnuarm} |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 1343 | |
| 1344 | if __name__ == '__main__': |
| 1345 | import os |
Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 1346 | |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 1347 | # Default behavior is to export refference config when called |
| 1348 | _dir = os.getcwd() |
| 1349 | from utils import save_json |
| 1350 | for _cname, _cfg in _builtin_configs.items(): |
| 1351 | _fname = os.path.join(_dir, _cname + ".json") |
| 1352 | print("Exporting config %s" % _fname) |
| 1353 | save_json(_fname, _cfg) |