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