blob: 27686d3712341b8a9611e8413b1e2a2abcd73160 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Coles61b43a42022-01-12 11:42:57 +000011 * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080037 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080038 "isolation_level",
39 "test_regression",
40 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010041 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080042 "with_otp",
43 "with_bl2",
44 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080045 "profile",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080046 "partition_ps",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080047 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010048
49 # Keys for the templace will come from the combinations of parameters
50 # provided in the seed dictionary.
51
Xinyu Zhangf3e19482022-01-11 15:48:13 +080052 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang433771e2022-04-01 16:49:17 +080054 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(compiler)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080055 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
57 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000058 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080059 "-DTEST_PSA_API=%(test_psa_api)s " + \
60 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
61 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
62 "-DBL2=%(with_bl2)s " + \
63 "-DNS=%(with_ns)s " + \
64 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
65 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
66 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
67 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
68 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080069 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080070 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080071 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010072
Xinyu Zhang433771e2022-04-01 16:49:17 +080073 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
74
Minos Galanakisea421232019-06-20 17:11:28 +010075 # A small subset of string substitution params is allowed in commands.
76 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
77 # _tbm_target_platform_ with the paths set when building
78
Xinyu Zhangb708f572020-09-15 11:43:46 +080079 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010080 r'/(\w+\.(?:axf|bin|hex))$'),
81
82 # ALL commands will be executed for every build.
83 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010084 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080085 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010086 "%(_tbm_build_dir_)s/bin/"
87 "bl2.bin "
88 "-Binary -offset 0xA000000 "
89 "-fill 0xFF 0xA000000 0xA020000 "
90 "%(_tbm_build_dir_)s/bin/"
91 "tfm_s_ns_signed.bin "
92 "-Binary -offset 0xA020000 "
93 "-fill 0xFF 0xA020000 0xA200000 "
94 "-o %(_tbm_build_dir_)s/bin/"
95 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080096 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080097 "%(_tbm_build_dir_)s/bin/"
98 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080099 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000100 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800101 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800102 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000103 "-Binary -offset 0xA020000 "
104 "-fill 0xFF 0xA020000 0xA200000 "
105 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700106 "tfm.hex -Intel")],
107 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
108 "%(_tbm_build_dir_)s/postbuild.sh;"
109 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700110 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
111 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800112 "popd")],
113 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
114 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
115 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
116 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
117 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
118 "python3 ./${FLASH_FILE};"
119 "cd %(_tbm_build_dir_)s/bin;"
120 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
121 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800122 "popd")],
123 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
124 "pushd %(_tbm_build_dir_)s/..;"
125 "sudo /usr/local/bin/cysecuretools "
126 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
127 "--target cy8ckit-064s0s2-4343w "
128 "sign-image "
129 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
130 "--image-type BOOT --image-id 1;"
131 "sudo /usr/local/bin/cysecuretools "
132 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
133 "--target cy8ckit-064s0s2-4343w "
134 "sign-image "
135 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
136 "--image-type BOOT --image-id 16;"
137 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
138 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
139 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100140 },
141
142 # (Optional) If set will fail if those artefacts are missing post build
143 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800144 "%(_tbm_build_dir_)s/bin/"
145 "tfm_s.bin",
146 "%(_tbm_build_dir_)s/bin/"
147 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800148 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800149 "%(_tbm_build_dir_)s/bin/"
150 "tfm.hex",
151 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800152 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800153 "%(_tbm_build_dir_)s/bin/"
154 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800155 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800156 "%(_tbm_build_dir_)s/bin/"
157 "tfm.hex",
158 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800159 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800160 "%(_tbm_build_dir_)s/bin/"
161 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100162 }
163}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100164
Xinyu Zhangb708f572020-09-15 11:43:46 +0800165# List of all build configs that are impossible under all circumstances
166_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800167 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhang433771e2022-04-01 16:49:17 +0800168 ("arm/musca_b1/sse_200", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
169 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800170 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhang433771e2022-04-01 16:49:17 +0800171 ("arm/musca_b1/sse_200", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
172 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
173 # Oversize issue on config lpcxpresso55s69_GCC_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
174 ("nxp/lpcxpresso55s69", "GCC_7_3_1", False, "2", False, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800175 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800176 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +0800177 ("stm/stm32l562e_dk", "ARMCLANG_6_13", True, "1", True, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800178 "Release", "off", True, True, "", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800179 # LVL2 and LVL3 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800180 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
181 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800182 # Regression requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800183 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800184 # psoc64 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800185 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800186 # No PSA_ACK with regression
Feder Liang357b1602022-01-11 16:47:49 +0800187 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
188 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
189 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
190 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800191 # PSA_ACK requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800192 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
193 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
194 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
195 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800196 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang357b1602022-01-11 16:47:49 +0800197 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800198 # Musca requires BL2
Feder Liang357b1602022-01-11 16:47:49 +0800199 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
200 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800201 # psoc64 cannot use BL2
Feder Liang357b1602022-01-11 16:47:49 +0800202 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800203 # psoc64 does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800204 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhange1b29e02022-03-04 12:02:07 +0800205 # PSoC64 platform got issue on level one test, disable it as a workaround
206 ("cypress/psoc64", "*", "*", "1", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800207 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800208 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800209 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800210 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
211 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
212 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100213 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800214 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
215 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
216 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
217 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
218 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
219 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
220 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
221 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
222 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800223 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800224 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
225 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800226 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800227 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800228 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800229 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800230 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800231 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
232 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800233 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800234 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
235 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800236 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800237 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800238 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800239 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
240 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800241 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800242 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
243 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
244 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
245 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
246 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700247 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800248 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700249 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800250 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700251 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang433771e2022-04-01 16:49:17 +0800252 ("nxp/lpcxpresso55s69", "ARMCLANG_6_13", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700253 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800254 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
255 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700256 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800257 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800258 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800259 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800260 ]
261
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100262# Configure build manager to build several combinations
Bence Balogh176b78f2022-02-22 13:49:34 +0100263config_an552 = {"seed_params": {
264 "tfm_platform": ["arm/mps3/an552"],
265 "compiler": ["GCC_10_3"],
266 "lib_model": [True, False],
267 "isolation_level": ["1", "2"],
268 "test_regression": [True, False],
269 "test_psa_api": ["OFF"],
270 "cmake_build_type": ["Debug", "Release"],
271 "with_otp": ["off"],
272 "with_bl2": [True],
273 "with_ns": [True],
274 "profile": [""],
275 "partition_ps": ["ON"],
276 "extra_params": [""]
277 },
278 "common_params": _common_tfm_builder_cfg,
279 "invalid": _common_tfm_invalid_configs + []
280 }
281
Karl Zhangaff558a2020-05-15 14:28:23 +0100282config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800283 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800284 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800285 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800286 "isolation_level": ["1", "2"],
287 "test_regression": [True, False],
288 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100289 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800290 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "with_bl2": [True, False],
292 "with_ns": [True, False],
293 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800294 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800295 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100296 },
297 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100299 }
300
Karl Zhangaff558a2020-05-15 14:28:23 +0100301config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800302 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800303 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800304 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "isolation_level": ["1", "2"],
306 "test_regression": [True, False],
307 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100308 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800309 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "with_bl2": [True, False],
311 "with_ns": [True, False],
312 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800313 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800314 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100315 },
316 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800317 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100318 }
319
Karl Zhangaff558a2020-05-15 14:28:23 +0100320config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800321 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
322 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800323 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800324 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800325 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "test_regression": [False],
327 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800329 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100330 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800331 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800333 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800335 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800336 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100337 },
338 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800339 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100340 }
341
Karl Zhangaff558a2020-05-15 14:28:23 +0100342config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800343 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
344 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800345 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800346 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800347 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348 "test_regression": [False],
349 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100350 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800351 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800352 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800353 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800355 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800356 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100357 },
358 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100360 }
361
Karl Zhangaff558a2020-05-15 14:28:23 +0100362config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800363 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800364 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800365 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800366 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367 "test_regression": [False],
368 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800370 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100371 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800372 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800374 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800375 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800376 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800377 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100378 },
379 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100381 }
Minos Galanakisea421232019-06-20 17:11:28 +0100382
Xinyu Zhangb708f572020-09-15 11:43:46 +0800383config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800384 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800385 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800386 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800387 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800388 "test_regression": [False],
389 "test_psa_api": ["IPC"],
390 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800391 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800392 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800393 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800394 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800395 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800396 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800397 },
398 "common_params": _common_tfm_builder_cfg,
399 "invalid": _common_tfm_invalid_configs + []
400 }
401
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800402config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800403 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800404 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800405 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800406 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800407 "test_regression": [True],
408 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800409 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800410 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800411 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800412 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800413 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800414 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800415 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800416 },
417 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800418 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800419 }
420
Arthur She19c0e1a2021-06-02 11:06:19 -0700421config_STM32L562E_DK = {"seed_params": {
422 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800423 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800424 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700425 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800426 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700427 "test_psa_api": ["OFF"],
428 "cmake_build_type": ["Release"],
429 "with_otp": ["off"],
430 "with_bl2": [True],
431 "with_ns": [True],
432 "profile": [""],
433 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800434 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700435 },
436 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800437 "invalid": _common_tfm_invalid_configs + [
438 # all other tests are off when CRYPTO is ON
439 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800440 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800441 # all other tests are ON when CRYPTO is OFF
442 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800443 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800444 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700445 }
446
Arthur Shef3657742021-09-07 14:23:18 -0700447config_LPCXPRESSO55S69 = {"seed_params": {
448 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800449 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800450 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700451 "isolation_level": ["2"],
452 "test_regression": [True, False],
453 "test_psa_api": ["OFF"],
454 "cmake_build_type": ["Relwithdebinfo"],
455 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800456 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700457 "with_ns": [True],
458 "profile": ["profile_medium"],
459 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800460 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800461 },
462 "common_params": _common_tfm_builder_cfg,
463 "invalid": _common_tfm_invalid_configs + []
464 }
465
466config_FP = {"seed_params": {
467 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800468 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +0800469 "lib_model": [False],
470 "isolation_level": ["1", "2"],
471 "test_regression": [True],
472 "test_psa_api": ["OFF"],
473 "cmake_build_type": ["Release"],
474 "with_otp": ["off"],
475 "with_bl2": [True],
476 "with_ns": [True],
477 "profile": [""],
478 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800479 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700480 },
481 "common_params": _common_tfm_builder_cfg,
482 "invalid": _common_tfm_invalid_configs + []
483 }
484
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800485config_corstone1000 = {"seed_params": {
486 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800487 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800488 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800489 "isolation_level": ["1"],
490 "test_regression": [False],
491 "test_psa_api": ["OFF"],
492 "cmake_build_type": ["Debug"],
493 "with_otp": ["off"],
494 "with_bl2": [True],
495 "with_ns": [False],
496 "profile": [""],
497 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800498 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800499 },
500 "common_params": _common_tfm_builder_cfg,
501 "invalid": _common_tfm_invalid_configs + []
502 }
503
Minos Galanakisea421232019-06-20 17:11:28 +0100504config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800505 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800506 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800507 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800508 "isolation_level": ["1", "2"],
509 "test_regression": [True, False],
510 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100511 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800512 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800513 "with_bl2": [True, False],
514 "with_ns": [True, False],
515 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800516 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800517 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100518 },
519 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100521 }
522
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800524 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
525 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800526 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800527 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 "isolation_level": ["1", "2"],
529 "test_regression": [True, False],
530 "test_psa_api": ["OFF"],
531 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800532 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 "with_bl2": [True, False],
534 "with_ns": [True, False],
535 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800536 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800537 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800538 },
Minos Galanakisea421232019-06-20 17:11:28 +0100539 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800540 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100541 }
542
Minos Galanakisea421232019-06-20 17:11:28 +0100543config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800544 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
545 "arm/musca_b1/sse_200",
Bence Balogh176b78f2022-02-22 13:49:34 +0100546 "arm/mps3/an524", "arm/mps3/an547",
547 "arm/mps3/an552", "cypress/psoc64",
548 "arm/mps3/corstone_polaris",
Arthur She19c0e1a2021-06-02 11:06:19 -0700549 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700550 "stm/stm32l562e_dk",
551 "nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800552 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800553 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 "isolation_level": ["1", "2"],
555 "test_regression": [True, False],
556 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800557 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800558 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800559 "with_bl2": [True, False],
560 "with_ns": [True, False],
561 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800562 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800563 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100564 },
565 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800566 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800567 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800568 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800569 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800570 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800571 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800572 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800573 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800574 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800575 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800576 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800577 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800578 "*", "*", "*", "*", "*", "*"),
Bence Balogh176b78f2022-02-22 13:49:34 +0100579 ("arm/mps3/an547", "*", "*", "*", "*", "*", "RelWithDebInfo",
580 "*", "*", "*", "*", "*", "*"),
581 ("arm/mps3/an552", "*", "*", "*", "*", "*", "RelWithDebInfo",
582 "*", "*", "*", "*", "*", "*"),
583 ("arm/mps3/corstone_polaris", "*", "*", "*", "*", "*", "RelWithDebInfo",
584 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800585 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800586 }
587
Karl Zhangaff558a2020-05-15 14:28:23 +0100588config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800589 "tfm_platform": ["arm/mps2/an521",
590 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800591 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800592 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800593 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 "test_regression": [True, False],
595 "test_psa_api": ["OFF"],
596 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800597 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800598 "with_bl2": [True],
599 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800601 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800602 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 },
604 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800605 "valid": [
606 # sanity test for GCC v11.2
607 # AN521_GCC_IPC_3_REG_Relwithdebinfo_BL2_NS
608 ("arm/mps2/an521", "GCC_11_2",
609 False, "3", True, "OFF", "Relwithdebinfo",
610 "off", True, True, "", "ON", ""),
611 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800612 "invalid": _common_tfm_invalid_configs + []
613 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800614
Karl Zhangaff558a2020-05-15 14:28:23 +0100615config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800616 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800617 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800618 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800619 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 "test_regression": [True, False],
621 "test_psa_api": ["OFF"],
622 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800623 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800624 "with_bl2": [True],
625 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800627 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800628 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800629 },
630 "common_params": _common_tfm_builder_cfg,
631 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800632 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800633 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800634 ]
635 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100636
Karl Zhang14573bc2020-06-08 09:23:21 +0800637config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800638 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
639 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800640 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800641 "lib_model": [False],
642 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 "test_regression": [True, False],
644 "test_psa_api": ["OFF"],
645 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800646 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800647 "with_bl2": [True],
648 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800649 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800650 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800651 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800652 },
653 "common_params": _common_tfm_builder_cfg,
654 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800655 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800656 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800657 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800658 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800659 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800660 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800661 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800662 ]
663 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800664
David Huda27ae72022-03-28 15:32:19 +0800665config_tfm_profile_s = {"seed_params": {
666 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800667 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800668 "lib_model": [True],
669 "isolation_level": ["1"],
670 "test_regression": [True, False],
671 "test_psa_api": ["OFF"],
672 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
673 "with_otp": ["OFF"],
674 "with_bl2": [True],
675 "with_ns": [True],
676 "profile": ["profile_small"],
677 "partition_ps": ["OFF"],
678 "extra_params": [""]
679 },
680 "common_params": _common_tfm_builder_cfg,
681 "valid": [
682 # Profile Small also supports SFN model
683 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "*",
684 "*", "SFN_ENABLE")
685 ],
686 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800687 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
David Huda27ae72022-03-28 15:32:19 +0800688 "*", "Minsizerel", "*", "*", "*", "*", "*", "*")
689 ]
690 }
691
Karl Zhangaff558a2020-05-15 14:28:23 +0100692config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800693 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800694 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800695 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800696 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "test_regression": [True, False],
698 "test_psa_api": ["OFF"],
699 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800700 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800702 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800704 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800705 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 },
707 "common_params": _common_tfm_builder_cfg,
708 "invalid": _common_tfm_invalid_configs + []
709 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100710
Minos Galanakisea421232019-06-20 17:11:28 +0100711config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800712 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800713 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800714 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800715 "isolation_level": ["1", "2"],
716 "test_regression": [True, False],
717 "test_psa_api": ["OFF"],
718 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800719 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800720 "with_bl2": [True],
721 "with_ns": [True, False],
722 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800723 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800724 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 },
726 "common_params": _common_tfm_builder_cfg,
727 "invalid": _common_tfm_invalid_configs + []
728 }
Minos Galanakisea421232019-06-20 17:11:28 +0100729
Mark Horvath8d281cd2020-12-07 15:20:26 +0100730config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800731 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800732 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800733 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100734 "isolation_level": ["1"],
735 "test_regression": [False],
736 "test_psa_api": ["OFF"],
737 "cmake_build_type": ["Debug", "Release"],
738 "with_otp": ["off"],
739 "with_bl2": [True],
740 "with_ns": [False],
741 "profile": [""],
742 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800743 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100744 },
745 "common_params": _common_tfm_builder_cfg,
746 "invalid": _common_tfm_invalid_configs + []
747 }
748
Karl Zhangeffed972020-06-30 15:48:01 +0800749config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800750 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800751 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800752 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 "isolation_level": ["1", "2"],
754 "test_regression": [True, False],
755 "test_psa_api": ["OFF"],
756 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800757 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800758 "with_bl2": [True],
759 "with_ns": [True, False],
760 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800761 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800762 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800763 },
764 "common_params": _common_tfm_builder_cfg,
765 "invalid": _common_tfm_invalid_configs + []
766 }
Karl Zhangeffed972020-06-30 15:48:01 +0800767
Karl Zhangaff558a2020-05-15 14:28:23 +0100768config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800769 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
770 "arm/musca_b1/sse_200", "arm/musca_s1",
771 "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800772 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800773 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800774 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 "test_regression": [True, False],
776 "test_psa_api": ["OFF"],
777 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800778 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 "with_bl2": [True, False],
780 "with_ns": [True, False],
781 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800782 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800783 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 },
785 "common_params": _common_tfm_builder_cfg,
786 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800787 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800788 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800789 ]
790 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100791
792# Configure build manager to build several combinations
793config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800794 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
795 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800796 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800797 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 "isolation_level": ["1", "2"],
799 "test_regression": [False],
800 "test_psa_api": ["IPC",
801 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800803 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800805 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 "with_bl2": [True],
807 "with_ns": [True, False],
808 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800809 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800810 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100811 },
812 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800814 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800815 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800816 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100817 }
818
Karl Zhangaff558a2020-05-15 14:28:23 +0100819config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800820 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
821 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800822 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800823 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800824 "isolation_level": ["1", "2"],
825 "test_regression": [False],
826 "test_psa_api": ["IPC"],
827 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800828 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 "with_bl2": [True],
830 "with_ns": [True, False],
831 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800832 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800833 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100834 },
835 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800836 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800837 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800838 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100840 }
841
Karl Zhang14573bc2020-06-08 09:23:21 +0800842config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800843 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
844 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800845 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800846 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800847 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800848 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800849 "test_regression": [True, False],
850 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800851 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800852 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800853 "with_bl2": [True],
854 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800855 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800856 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800857 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800858 },
859 "common_params": _common_tfm_builder_cfg,
860 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800861 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800862 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800863 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800864 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800865 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800866 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800867 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800868 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800869 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800870 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800871 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800872 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800873 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800874 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800875 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800876 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800877 ]
878 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800879
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800880config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800881 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800882 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800883 "lib_model": [True, False],
884 "isolation_level": ["1", "2", "3"],
885 "test_regression": [True],
886 "test_psa_api": ["OFF"],
887 "cmake_build_type": ["Debug"],
888 "with_otp": ["off"],
889 "with_bl2": [True],
890 "with_ns": [True],
891 "profile": [""],
892 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800893 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800894 },
895 "common_params": _common_tfm_builder_cfg,
896 "invalid": _common_tfm_invalid_configs + []
897 }
898
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800899config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800900 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800901 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800902 "lib_model": [False],
903 "isolation_level": ["1"],
904 "test_regression": [True],
905 "test_psa_api": ["OFF"],
906 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
907 "with_otp": ["off"],
908 "with_bl2": [True],
909 "with_ns": [True],
910 "profile": [""],
911 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800912 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800913 },
914 "common_params": _common_tfm_builder_cfg,
915 "invalid": _common_tfm_invalid_configs + []
916 }
917
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800918config_cc_driver_psa = {"seed_params": {
919 "tfm_platform": ["arm/musca_b1/sse_200",
920 "arm/musca_s1"],
921 "compiler": ["GCC_7_3_1"],
922 "lib_model": [False],
923 "isolation_level": ["1"],
924 "test_regression": [True],
925 "test_psa_api": ["OFF"],
926 "cmake_build_type": ["Release"],
927 "with_otp": ["off"],
928 "with_bl2": [True],
929 "with_ns": [True],
930 "profile": [""],
931 "partition_ps": ["ON"],
932 "extra_params": ["CC_DRIVER_PSA"]
933 },
934 "common_params": _common_tfm_builder_cfg,
935 "invalid": _common_tfm_invalid_configs + []
936 }
937
Karl Zhang14573bc2020-06-08 09:23:21 +0800938config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800939 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
940 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800941 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800942 "lib_model": [False],
943 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800944 "test_regression": [True, False],
945 "test_psa_api": ["OFF"],
946 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800947 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800948 "with_bl2": [True],
949 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800950 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800951 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800952 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 },
954 "common_params": _common_tfm_builder_cfg,
955 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800956 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800957 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800958 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800959 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800960 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800961 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800962 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800963 ]
964 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800965
Karl Zhang14573bc2020-06-08 09:23:21 +0800966config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800967 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
968 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800969 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800970 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800971 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800972 "test_regression": [False],
973 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800974 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800975 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800976 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800977 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800978 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800979 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800980 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800981 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800982 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800983 },
984 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800985 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800986 }
987
Karl Zhang14573bc2020-06-08 09:23:21 +0800988config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800989 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
990 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800991 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800992 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800993 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800994 "test_regression": [False],
995 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800996 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800997 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800998 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800999 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001000 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001001 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001002 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001003 },
1004 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001005 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001006 }
1007
Karl Zhang14573bc2020-06-08 09:23:21 +08001008config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001009 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001010 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001011 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001012 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001013 "test_regression": [True],
1014 "test_psa_api": ["OFF"],
1015 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001016 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001017 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001018 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001019 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001020 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001021 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001022 },
1023 "common_params": _common_tfm_builder_cfg,
1024 "invalid": _common_tfm_invalid_configs + []
1025 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001026
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001027config_nightly_psoc64 = {"seed_params": {
1028 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001029 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001030 "lib_model": [False],
1031 "isolation_level": ["1", "2"],
1032 "test_regression": [True],
1033 "test_psa_api": ["OFF"],
1034 "cmake_build_type": ["Release"],
1035 "with_otp": ["off"],
1036 "with_bl2": [False],
1037 "with_ns": [True],
1038 "profile": [""],
1039 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001040 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001041 },
1042 "common_params": _common_tfm_builder_cfg,
1043 "invalid": _common_tfm_invalid_configs + []
1044 }
1045
Arthur Shef3657742021-09-07 14:23:18 -07001046config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1047 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001048 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001049 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001050 "isolation_level": ["2"],
1051 "test_regression": [True, False],
1052 "test_psa_api": ["OFF"],
1053 "cmake_build_type": ["Relwithdebinfo"],
1054 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001055 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001056 "with_ns": [True],
1057 "profile": ["profile_medium"],
1058 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001059 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001060 },
1061 "common_params": _common_tfm_builder_cfg,
1062 "invalid": _common_tfm_invalid_configs + []
1063 }
1064
1065config_nightly_FP = {"seed_params": {
1066 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001067 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +08001068 "lib_model": [False],
1069 "isolation_level": ["1", "2"],
1070 "test_regression": [True],
1071 "test_psa_api": ["OFF"],
1072 "cmake_build_type": ["Debug"],
1073 "with_otp": ["off"],
1074 "with_bl2": [True],
1075 "with_ns": [True],
1076 "profile": [""],
1077 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001078 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001079 },
1080 "common_params": _common_tfm_builder_cfg,
1081 "invalid": _common_tfm_invalid_configs + []
1082 }
1083
Karl Zhang14573bc2020-06-08 09:23:21 +08001084config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001085 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001086 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001087 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001088 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001089 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001090 "test_regression": [True],
1091 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001092 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001093 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001094 "with_bl2": [True],
1095 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001096 "profile": ["", "profile_small", "profile_medium"],
1097 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001098 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001099 },
1100 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001101 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001102 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001103 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001104 "off", True, True, "", "ON", ""),
Bence Balogh176b78f2022-02-22 13:49:34 +01001105 # AN552_GNUARM_IPC_1_REG_Debug_BL2_NS
1106 ("arm/mps3/an552", "GCC_10_3",
1107 False, "1", True, "OFF", "Debug",
1108 "off", True, True, "", "ON", ""),
1109 # AN552_GNUARM_IPC_1_REG_Release_BL2_NS
1110 ("arm/mps3/an552", "GCC_10_3",
1111 False, "1", True, "OFF", "Release",
1112 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001113 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001114 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001115 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001116 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001117 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001118 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001119 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001120 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001121 "off", True, True, "profile_medium", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001122 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001123 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001124 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001125 # AN521_GCC_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
1126 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001127 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001128 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001129 # MUSCA_B1_GCC_LIB_1_REG_Minsizerel_BL2_NS
1130 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001131 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001132 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001133 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +08001134 ("stm/stm32l562e_dk", "ARMCLANG_6_13",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001135 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001136 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001137 # stm32l562e_dk_GCC_IPC_2_REG_Release_BL2_NS
1138 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001139 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001140 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001141 # stm32l562e_dk_GCC_IPC_3_REG_Release_BL2_NS
1142 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001143 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001144 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001145 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2_NS_FPHARD
1146 ("arm/musca_s1", "GCC_10_3",
Feder Liang567e8c22021-10-26 14:16:21 +08001147 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001148 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001149 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1150 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001151 False, "1", True, "OFF", "Release",
1152 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001153 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001154 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001155 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001156 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001157 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001158 # valid configs supported by TF-M but not needed in per-patch
1159 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001160 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001161 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001162 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001163 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001164 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001165 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001166 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001167 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001168 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001169 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001170 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001171 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001172 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001173 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001174 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001175 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001176 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001177 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001178 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001179 ("*", "GCC_7_3_1", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001180 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001181 ("*", "ARMCLANG_6_13", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001182 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001183 ("*", "ARMCLANG_6_13", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001184 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001185 ]
1186 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001187
Karl Zhang14573bc2020-06-08 09:23:21 +08001188config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001189 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001190 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001191 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001192 "isolation_level": ["1", "2"],
1193 "test_regression": [True],
1194 "test_psa_api": ["OFF"],
1195 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001196 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001197 "with_bl2": [True],
1198 "with_ns": [True, False],
1199 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001200 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001201 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001202 },
1203 "common_params": _common_tfm_builder_cfg,
1204 "invalid": _common_tfm_invalid_configs + []
1205 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001206
1207# Configure build manager to build several combinations
1208config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001209 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001210 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001211 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001212 "isolation_level": ["2"],
1213 "test_regression": [False],
1214 "test_psa_api": ["IPC",
1215 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001216 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001217 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001218 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001219 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001220 "with_bl2": [True],
1221 "with_ns": [True, False],
1222 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001223 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001224 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001225 },
1226 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001227 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001228 }
1229
Karl Zhang14573bc2020-06-08 09:23:21 +08001230config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001231 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001232 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001233 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001234 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001235 "test_regression": [True],
1236 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001237 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001238 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001239 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001240 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001241 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001242 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001243 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001244 },
1245 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001246 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001247 }
1248
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001249config_cov_an519 = {"seed_params": {
1250 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001251 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001252 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001253 "isolation_level": ["1", "2", "3"],
1254 "test_regression": [True, False],
1255 "test_psa_api": ["OFF"],
1256 "cmake_build_type": ["Debug", "Release"],
1257 "with_otp": ["off"],
1258 "with_bl2": [True],
1259 "with_ns": [True],
1260 "profile": ["", "profile_small", "profile_medium"],
1261 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001262 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001263 },
1264 "common_params": _common_tfm_builder_cfg,
1265 "invalid": _common_tfm_invalid_configs + []
1266 }
1267
1268config_cov_an521 = {"seed_params": {
1269 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001270 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001271 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001272 "isolation_level": ["1", "2", "3"],
1273 "test_regression": [True, False],
1274 "test_psa_api": ["OFF"],
1275 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1276 "with_otp": ["off"],
1277 "with_bl2": [True],
1278 "with_ns": [True],
1279 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1280 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001281 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001282 },
1283 "common_params": _common_tfm_builder_cfg,
1284 "invalid": _common_tfm_invalid_configs + []
1285 }
1286
Minos Galanakisea421232019-06-20 17:11:28 +01001287# Configruation used for document building
1288config_doxygen = {"common_params": {
1289 "config_type": "tf-m_documents",
1290 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001291 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001292 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001293 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001294 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001295 "cmake --build ./ -- docs"]},
1296 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1297 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001298 r'/(\w+\.(?:html|md|pdf))$',
1299 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001300 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001301 }
1302
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001303# Configurations used in testing
1304
Minos Galanakisea421232019-06-20 17:11:28 +01001305config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001306 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001307 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001308 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001309 "isolation_level": ["1"],
1310 "test_regression": [False],
1311 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001312 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001313 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001314 "with_bl2": [True],
1315 "with_ns": [True],
1316 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001317 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001318 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001319 },
1320 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001321 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001322 }
1323
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001324
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +03001325config_debug_regr = deepcopy(config_debug)
1326config_debug_regr["seed_params"]["test_regression"] = [True]
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001327
1328
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001329config_debug_PSA_API = {"seed_params": {
1330 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001331 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001332 "lib_model": [True],
1333 "isolation_level": ["1"],
1334 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001335 "test_psa_api": ["CRYPTO",
1336 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001337 "STORAGE",
1338 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001339 "cmake_build_type": ["Debug"],
1340 "with_otp": ["off"],
1341 "with_bl2": [True],
1342 "with_ns": [True],
1343 "profile": [""],
1344 "partition_ps": ["ON"],
1345 "extra_params": [""]
1346 },
1347 "common_params": _common_tfm_builder_cfg,
1348 "invalid": _common_tfm_invalid_configs + []
1349 }
1350
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001351config_debug_PSA_API_nolib = {"seed_params": {
1352 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001353 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001354 "lib_model": [False],
1355 "isolation_level": ["1"],
1356 "test_regression": [False],
1357 "test_psa_api": ["CRYPTO",
1358 "INITIAL_ATTESTATION",
1359 "STORAGE",
1360 "IPC"],
1361 "cmake_build_type": ["Debug"],
1362 "with_otp": ["off"],
1363 "with_bl2": [True],
1364 "with_ns": [True],
1365 "profile": [""],
1366 "partition_ps": ["ON"],
1367 "extra_params": [""]
1368 },
1369 "common_params": _common_tfm_builder_cfg,
1370 "invalid": _common_tfm_invalid_configs + []
1371 }
1372
Dean Birch4c6ad622020-03-13 11:28:03 +00001373# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001374config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001375 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001376 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001377 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001378 "isolation_level": ["1", "2"],
1379 "test_regression": [True, False],
1380 "test_psa_api": ["OFF"],
1381 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001382 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001383 "with_bl2": [True, False],
1384 "with_ns": [True],
1385 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001386 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001387 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001388 },
1389 "common_params": _common_tfm_builder_cfg,
1390 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001391 ("*", "ARMCLANG_6_13", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001392 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001393 ("*", "ARMCLANG_6_13", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001394 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001395 ]
1396 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001397
Xinyu Zhangb708f572020-09-15 11:43:46 +08001398config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001399 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001400 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001401 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001402 "isolation_level": ["1", "2"],
1403 "test_regression": [True],
1404 "test_psa_api": ["OFF"],
1405 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001406 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001407 "with_bl2": [True, False],
1408 "with_ns": [True, False],
1409 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001410 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001411 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001412 },
1413 "common_params": _common_tfm_builder_cfg,
1414 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001415 ("arm/mps2/an521", "GCC_7_3_1", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001416 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001417 ]
1418 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001419
Xinyu Zhang38b76742021-11-11 13:57:56 +08001420config_an547 = {"seed_params": {
1421 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001422 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001423 "lib_model": [False],
1424 "isolation_level": ["1"],
1425 "test_regression": [False],
1426 "test_psa_api": ["OFF"],
1427 "cmake_build_type": ["Debug"],
1428 "with_otp": ["off"],
1429 "with_bl2": [True],
1430 "with_ns": [False],
1431 "profile": [""],
1432 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001433 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001434 },
1435 "common_params": _common_tfm_builder_cfg,
1436 "invalid": _common_tfm_invalid_configs + []
1437 }
1438
1439config_corstone_polaris = {"seed_params": {
1440 "tfm_platform": ["arm/mps3/corstone_polaris"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001441 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001442 "lib_model": [False],
1443 "isolation_level": ["1"],
1444 "test_regression": [False],
1445 "test_psa_api": ["OFF"],
1446 "cmake_build_type": ["Debug"],
1447 "with_otp": ["off"],
1448 "with_bl2": [True],
1449 "with_ns": [False],
1450 "profile": [""],
1451 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001452 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001453 },
1454 "common_params": _common_tfm_builder_cfg,
1455 "invalid": _common_tfm_invalid_configs + []
1456 }
1457
1458config_bl5340 = {"seed_params": {
1459 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001460 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001461 "lib_model": [False],
1462 "isolation_level": ["1"],
1463 "test_regression": [False],
1464 "test_psa_api": ["OFF"],
1465 "cmake_build_type": ["Debug"],
1466 "with_otp": ["off"],
1467 "with_bl2": [True],
1468 "with_ns": [False],
1469 "profile": [""],
1470 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001471 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001472 },
1473 "common_params": _common_tfm_builder_cfg,
1474 "invalid": _common_tfm_invalid_configs + []
1475 }
1476
1477config_nrf5340dk = {"seed_params": {
1478 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001479 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001480 "lib_model": [False],
1481 "isolation_level": ["1"],
1482 "test_regression": [False],
1483 "test_psa_api": ["OFF"],
1484 "cmake_build_type": ["Debug"],
1485 "with_otp": ["off"],
1486 "with_bl2": [True],
1487 "with_ns": [False],
1488 "profile": [""],
1489 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001490 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001491 },
1492 "common_params": _common_tfm_builder_cfg,
1493 "invalid": _common_tfm_invalid_configs + []
1494 }
1495
1496config_nrf9160dk = {"seed_params": {
1497 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001498 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001499 "lib_model": [False],
1500 "isolation_level": ["1"],
1501 "test_regression": [False],
1502 "test_psa_api": ["OFF"],
1503 "cmake_build_type": ["Debug"],
1504 "with_otp": ["off"],
1505 "with_bl2": [True],
1506 "with_ns": [False],
1507 "profile": [""],
1508 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001509 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001510 },
1511 "common_params": _common_tfm_builder_cfg,
1512 "invalid": _common_tfm_invalid_configs + []
1513 }
1514
1515config_m2351 = {"seed_params": {
1516 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001517 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001518 "lib_model": [False],
1519 "isolation_level": ["1"],
1520 "test_regression": [False],
1521 "test_psa_api": ["OFF"],
1522 "cmake_build_type": ["Release"],
1523 "with_otp": ["off"],
1524 "with_bl2": [True],
1525 "with_ns": [False],
1526 "profile": [""],
1527 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001528 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001529 },
1530 "common_params": _common_tfm_builder_cfg,
1531 "invalid": _common_tfm_invalid_configs + []
1532 }
1533
1534config_m2354 = {"seed_params": {
1535 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001536 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001537 "lib_model": [False],
1538 "isolation_level": ["1"],
1539 "test_regression": [False],
1540 "test_psa_api": ["OFF"],
1541 "cmake_build_type": ["Debug"],
1542 "with_otp": ["off"],
1543 "with_bl2": [True],
1544 "with_ns": [False],
1545 "profile": [""],
1546 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001547 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001548 },
1549 "common_params": _common_tfm_builder_cfg,
1550 "invalid": _common_tfm_invalid_configs + []
1551 }
1552
1553config_b_u585i_iot02a = {"seed_params": {
1554 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001555 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001556 "lib_model": [False],
1557 "isolation_level": ["1"],
1558 "test_regression": [False],
1559 "test_psa_api": ["OFF"],
1560 "cmake_build_type": ["Release"],
1561 "with_otp": ["off"],
1562 "with_bl2": [True],
1563 "with_ns": [False],
1564 "profile": [""],
1565 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001566 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001567 },
1568 "common_params": _common_tfm_builder_cfg,
1569 "invalid": _common_tfm_invalid_configs + []
1570 }
1571
1572config_nucleo_l552ze_q = {"seed_params": {
1573 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001574 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001575 "lib_model": [False],
1576 "isolation_level": ["1"],
1577 "test_regression": [False],
1578 "test_psa_api": ["OFF"],
1579 "cmake_build_type": ["Release"],
1580 "with_otp": ["off"],
1581 "with_bl2": [True],
1582 "with_ns": [False],
1583 "profile": [""],
1584 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001585 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001586 },
1587 "common_params": _common_tfm_builder_cfg,
1588 "invalid": _common_tfm_invalid_configs + []
1589 }
1590
Karl Zhangaff558a2020-05-15 14:28:23 +01001591_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001592 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001593 "tfm_test": config_tfm_test,
1594 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001595 "tfm_profile": config_tfm_profile,
David Huda27ae72022-03-28 15:32:19 +08001596 "tfm_profile_s": config_tfm_profile_s,
Karl Zhangaff558a2020-05-15 14:28:23 +01001597 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001598 "tfm_nsce": config_nsce,
1599 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001600 "psa_api": config_PSA_API,
1601 "psa_api_otp": config_PSA_API_OTP,
1602 "psa_ff": config_PSA_FF,
1603 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001604 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001605 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001606 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001607 "tfm_fp": config_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001608 "tfm_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001609
1610 #nightly test group
1611 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001612 "nightly_nsce": config_nsce,
1613 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001614 "nightly_profile": config_nightly_profile,
David Huda27ae72022-03-28 15:32:19 +08001615 "nightly_profile_s": config_tfm_profile_s,
Karl Zhang14573bc2020-06-08 09:23:21 +08001616 "nightly_psa_api": config_nightly_PSA_API,
1617 "nightly_ff": config_nightly_PSA_FF,
1618 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001619 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001620 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001621 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001622 "nightly_fp":config_nightly_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001623 "nightly_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001624
1625 #per patch test group
1626 "pp_test": config_pp_test,
1627 "pp_OTP": config_pp_OTP,
1628 "pp_PSA_API": config_pp_PSA_API,
1629 "pp_psoc64": config_pp_PSoC64,
1630
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001631 #code coverage test group
1632 "coverage_an519": config_cov_an519,
1633 "coverage_an521": config_cov_an521,
1634
Xinyu Zhang38b76742021-11-11 13:57:56 +08001635 #extra build group
1636 "arm_corstone1000": config_corstone1000,
1637 "arm_an547": config_an547,
Bence Balogh176b78f2022-02-22 13:49:34 +01001638 "arm_an552": config_an552,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001639 "arm_corstone_polaris": config_corstone_polaris,
1640 "cypress_psoc64": config_PSOC64,
1641 "laird_bl5340": config_bl5340,
1642 "nordic_nrf5340dk": config_nrf5340dk,
1643 "nordic_nrf9160dk": config_nrf9160dk,
1644 "nuvoton_m2351": config_m2351,
1645 "nuvoton_m2354": config_m2354,
1646 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1647 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1648 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1649 "stm_stm32l562e_dk": config_STM32L562E_DK,
1650
Karl Zhang14573bc2020-06-08 09:23:21 +08001651 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001652 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001653
1654 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001655 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001656 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001657 "an521_psa_api": config_AN521_PSA_API,
1658 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001659 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001660 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001661 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001662 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001663 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001664 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001665 "ipc": config_IPC,
1666 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001667 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001668 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001669 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001670 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001671 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001672
1673 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001674 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001675 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001676
1677if __name__ == '__main__':
1678 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001679
Minos Galanakisea421232019-06-20 17:11:28 +01001680 # Default behavior is to export refference config when called
1681 _dir = os.getcwd()
1682 from utils import save_json
1683 for _cname, _cfg in _builtin_configs.items():
1684 _fname = os.path.join(_dir, _cname + ".json")
1685 print("Exporting config %s" % _fname)
1686 save_json(_fname, _cfg)