blob: 1653f94dcd2300542aea079a6c32c587dc05ffe4 [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 Zhang8258a5e2021-11-08 15:43:29 +0800205 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800206 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800207 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800208 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
209 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
210 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100211 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800212 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
213 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
214 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
215 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
216 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
217 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
218 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
219 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
220 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800221 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800222 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
223 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800224 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800225 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800226 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800227 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800228 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800229 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
230 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800231 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800232 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
233 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800234 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800235 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800236 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800237 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
238 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800239 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800240 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
241 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
242 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
243 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
244 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700245 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800246 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700247 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800248 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700249 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang433771e2022-04-01 16:49:17 +0800250 ("nxp/lpcxpresso55s69", "ARMCLANG_6_13", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700251 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800252 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
253 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700254 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800255 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800256 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800257 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800258 ]
259
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100260# Configure build manager to build several combinations
Bence Balogh176b78f2022-02-22 13:49:34 +0100261config_an552 = {"seed_params": {
262 "tfm_platform": ["arm/mps3/an552"],
263 "compiler": ["GCC_10_3"],
264 "lib_model": [True, False],
265 "isolation_level": ["1", "2"],
266 "test_regression": [True, False],
267 "test_psa_api": ["OFF"],
268 "cmake_build_type": ["Debug", "Release"],
269 "with_otp": ["off"],
270 "with_bl2": [True],
271 "with_ns": [True],
272 "profile": [""],
273 "partition_ps": ["ON"],
274 "extra_params": [""]
275 },
276 "common_params": _common_tfm_builder_cfg,
277 "invalid": _common_tfm_invalid_configs + []
278 }
279
Karl Zhangaff558a2020-05-15 14:28:23 +0100280config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800281 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800282 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800283 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800284 "isolation_level": ["1", "2"],
285 "test_regression": [True, False],
286 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100287 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800288 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800289 "with_bl2": [True, False],
290 "with_ns": [True, False],
291 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800292 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800293 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100294 },
295 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800296 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100297 }
298
Karl Zhangaff558a2020-05-15 14:28:23 +0100299config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800300 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800301 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800302 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "isolation_level": ["1", "2"],
304 "test_regression": [True, False],
305 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100306 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800307 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800308 "with_bl2": [True, False],
309 "with_ns": [True, False],
310 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800311 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800312 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100313 },
314 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100316 }
317
Karl Zhangaff558a2020-05-15 14:28:23 +0100318config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800319 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
320 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800321 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800322 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800323 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "test_regression": [False],
325 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800327 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100328 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800329 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800331 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800333 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800334 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100335 },
336 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100338 }
339
Karl Zhangaff558a2020-05-15 14:28:23 +0100340config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800341 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
342 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800343 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800344 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800345 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800346 "test_regression": [False],
347 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100348 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800349 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800351 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800352 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800353 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800354 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100355 },
356 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100358 }
359
Karl Zhangaff558a2020-05-15 14:28:23 +0100360config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800361 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800362 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800363 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800364 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "test_regression": [False],
366 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800368 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100369 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800370 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800371 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800372 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800374 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800375 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100376 },
377 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800378 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100379 }
Minos Galanakisea421232019-06-20 17:11:28 +0100380
Xinyu Zhangb708f572020-09-15 11:43:46 +0800381config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800382 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800383 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800384 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800385 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800386 "test_regression": [False],
387 "test_psa_api": ["IPC"],
388 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800389 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800390 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800391 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800392 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800393 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800394 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800395 },
396 "common_params": _common_tfm_builder_cfg,
397 "invalid": _common_tfm_invalid_configs + []
398 }
399
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800400config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800401 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800402 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800403 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800404 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800405 "test_regression": [True],
406 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800407 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800408 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800409 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800410 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800411 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800412 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800413 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800414 },
415 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800416 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800417 }
418
Arthur She19c0e1a2021-06-02 11:06:19 -0700419config_STM32L562E_DK = {"seed_params": {
420 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800421 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800422 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700423 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800424 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700425 "test_psa_api": ["OFF"],
426 "cmake_build_type": ["Release"],
427 "with_otp": ["off"],
428 "with_bl2": [True],
429 "with_ns": [True],
430 "profile": [""],
431 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800432 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700433 },
434 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800435 "invalid": _common_tfm_invalid_configs + [
436 # all other tests are off when CRYPTO is ON
437 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800438 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800439 # all other tests are ON when CRYPTO is OFF
440 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800441 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800442 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700443 }
444
Arthur Shef3657742021-09-07 14:23:18 -0700445config_LPCXPRESSO55S69 = {"seed_params": {
446 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800447 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800448 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700449 "isolation_level": ["2"],
450 "test_regression": [True, False],
451 "test_psa_api": ["OFF"],
452 "cmake_build_type": ["Relwithdebinfo"],
453 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800454 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700455 "with_ns": [True],
456 "profile": ["profile_medium"],
457 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800458 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800459 },
460 "common_params": _common_tfm_builder_cfg,
461 "invalid": _common_tfm_invalid_configs + []
462 }
463
464config_FP = {"seed_params": {
465 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800466 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +0800467 "lib_model": [False],
468 "isolation_level": ["1", "2"],
469 "test_regression": [True],
470 "test_psa_api": ["OFF"],
471 "cmake_build_type": ["Release"],
472 "with_otp": ["off"],
473 "with_bl2": [True],
474 "with_ns": [True],
475 "profile": [""],
476 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800477 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700478 },
479 "common_params": _common_tfm_builder_cfg,
480 "invalid": _common_tfm_invalid_configs + []
481 }
482
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800483config_corstone1000 = {"seed_params": {
484 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800485 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800486 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800487 "isolation_level": ["1"],
488 "test_regression": [False],
489 "test_psa_api": ["OFF"],
490 "cmake_build_type": ["Debug"],
491 "with_otp": ["off"],
492 "with_bl2": [True],
493 "with_ns": [False],
494 "profile": [""],
495 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800496 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800497 },
498 "common_params": _common_tfm_builder_cfg,
499 "invalid": _common_tfm_invalid_configs + []
500 }
501
Minos Galanakisea421232019-06-20 17:11:28 +0100502config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800503 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800504 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800505 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 "isolation_level": ["1", "2"],
507 "test_regression": [True, False],
508 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100509 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800510 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "with_bl2": [True, False],
512 "with_ns": [True, False],
513 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800514 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800515 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100516 },
517 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800518 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100519 }
520
Xinyu Zhangb708f572020-09-15 11:43:46 +0800521config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800522 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
523 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800524 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800525 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800526 "isolation_level": ["1", "2"],
527 "test_regression": [True, False],
528 "test_psa_api": ["OFF"],
529 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800530 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800531 "with_bl2": [True, False],
532 "with_ns": [True, False],
533 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800534 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800535 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800536 },
Minos Galanakisea421232019-06-20 17:11:28 +0100537 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800538 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100539 }
540
Minos Galanakisea421232019-06-20 17:11:28 +0100541config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800542 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
543 "arm/musca_b1/sse_200",
Bence Balogh176b78f2022-02-22 13:49:34 +0100544 "arm/mps3/an524", "arm/mps3/an547",
545 "arm/mps3/an552", "cypress/psoc64",
546 "arm/mps3/corstone_polaris",
Arthur She19c0e1a2021-06-02 11:06:19 -0700547 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700548 "stm/stm32l562e_dk",
549 "nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800550 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800551 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "isolation_level": ["1", "2"],
553 "test_regression": [True, False],
554 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800555 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800556 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800557 "with_bl2": [True, False],
558 "with_ns": [True, False],
559 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800560 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800561 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100562 },
563 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800565 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800566 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800567 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800568 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800569 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800570 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800571 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800572 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800573 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800574 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800575 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800576 "*", "*", "*", "*", "*", "*"),
Bence Balogh176b78f2022-02-22 13:49:34 +0100577 ("arm/mps3/an547", "*", "*", "*", "*", "*", "RelWithDebInfo",
578 "*", "*", "*", "*", "*", "*"),
579 ("arm/mps3/an552", "*", "*", "*", "*", "*", "RelWithDebInfo",
580 "*", "*", "*", "*", "*", "*"),
581 ("arm/mps3/corstone_polaris", "*", "*", "*", "*", "*", "RelWithDebInfo",
582 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800584 }
585
Karl Zhangaff558a2020-05-15 14:28:23 +0100586config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800587 "tfm_platform": ["arm/mps2/an521",
588 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800589 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800590 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800591 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 "test_regression": [True, False],
593 "test_psa_api": ["OFF"],
594 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800595 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800596 "with_bl2": [True],
597 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800599 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800600 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 },
602 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800603 "valid": [
604 # sanity test for GCC v11.2
605 # AN521_GCC_IPC_3_REG_Relwithdebinfo_BL2_NS
606 ("arm/mps2/an521", "GCC_11_2",
607 False, "3", True, "OFF", "Relwithdebinfo",
608 "off", True, True, "", "ON", ""),
609 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800610 "invalid": _common_tfm_invalid_configs + []
611 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800612
Karl Zhangaff558a2020-05-15 14:28:23 +0100613config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800614 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800615 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800616 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800617 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 "test_regression": [True, False],
619 "test_psa_api": ["OFF"],
620 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800621 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800622 "with_bl2": [True],
623 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800625 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800626 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800627 },
628 "common_params": _common_tfm_builder_cfg,
629 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800630 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800631 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800632 ]
633 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100634
Karl Zhang14573bc2020-06-08 09:23:21 +0800635config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800636 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
637 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800638 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800639 "lib_model": [False],
640 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800641 "test_regression": [True, False],
642 "test_psa_api": ["OFF"],
643 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800644 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800645 "with_bl2": [True],
646 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800647 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800648 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800649 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800650 },
651 "common_params": _common_tfm_builder_cfg,
652 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800653 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800654 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800655 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800656 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800657 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800658 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800659 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800660 ]
661 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800662
David Huda27ae72022-03-28 15:32:19 +0800663config_tfm_profile_s = {"seed_params": {
664 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800665 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800666 "lib_model": [True],
667 "isolation_level": ["1"],
668 "test_regression": [True, False],
669 "test_psa_api": ["OFF"],
670 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
671 "with_otp": ["OFF"],
672 "with_bl2": [True],
673 "with_ns": [True],
674 "profile": ["profile_small"],
675 "partition_ps": ["OFF"],
676 "extra_params": [""]
677 },
678 "common_params": _common_tfm_builder_cfg,
679 "valid": [
680 # Profile Small also supports SFN model
681 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "*",
682 "*", "SFN_ENABLE")
683 ],
684 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800685 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
David Huda27ae72022-03-28 15:32:19 +0800686 "*", "Minsizerel", "*", "*", "*", "*", "*", "*")
687 ]
688 }
689
Karl Zhangaff558a2020-05-15 14:28:23 +0100690config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800691 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800692 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800693 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800694 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800695 "test_regression": [True, False],
696 "test_psa_api": ["OFF"],
697 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800698 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800699 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800700 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800702 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800703 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800704 },
705 "common_params": _common_tfm_builder_cfg,
706 "invalid": _common_tfm_invalid_configs + []
707 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100708
Minos Galanakisea421232019-06-20 17:11:28 +0100709config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800710 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800711 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800712 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800713 "isolation_level": ["1", "2"],
714 "test_regression": [True, False],
715 "test_psa_api": ["OFF"],
716 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800717 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800718 "with_bl2": [True],
719 "with_ns": [True, False],
720 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800721 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800722 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800723 },
724 "common_params": _common_tfm_builder_cfg,
725 "invalid": _common_tfm_invalid_configs + []
726 }
Minos Galanakisea421232019-06-20 17:11:28 +0100727
Mark Horvath8d281cd2020-12-07 15:20:26 +0100728config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800729 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800730 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800731 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100732 "isolation_level": ["1"],
733 "test_regression": [False],
734 "test_psa_api": ["OFF"],
735 "cmake_build_type": ["Debug", "Release"],
736 "with_otp": ["off"],
737 "with_bl2": [True],
738 "with_ns": [False],
739 "profile": [""],
740 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800741 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100742 },
743 "common_params": _common_tfm_builder_cfg,
744 "invalid": _common_tfm_invalid_configs + []
745 }
746
Karl Zhangeffed972020-06-30 15:48:01 +0800747config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800748 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800749 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800750 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 "isolation_level": ["1", "2"],
752 "test_regression": [True, False],
753 "test_psa_api": ["OFF"],
754 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800755 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "with_bl2": [True],
757 "with_ns": [True, False],
758 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800759 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800760 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 },
762 "common_params": _common_tfm_builder_cfg,
763 "invalid": _common_tfm_invalid_configs + []
764 }
Karl Zhangeffed972020-06-30 15:48:01 +0800765
Karl Zhangaff558a2020-05-15 14:28:23 +0100766config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800767 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
768 "arm/musca_b1/sse_200", "arm/musca_s1",
769 "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800770 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800771 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800772 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800773 "test_regression": [True, False],
774 "test_psa_api": ["OFF"],
775 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800776 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800777 "with_bl2": [True, False],
778 "with_ns": [True, False],
779 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800780 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800781 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 },
783 "common_params": _common_tfm_builder_cfg,
784 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800785 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800786 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 ]
788 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100789
790# Configure build manager to build several combinations
791config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800792 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
793 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800794 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800795 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800796 "isolation_level": ["1", "2"],
797 "test_regression": [False],
798 "test_psa_api": ["IPC",
799 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800800 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800801 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800803 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 "with_bl2": [True],
805 "with_ns": [True, False],
806 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800807 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800808 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100809 },
810 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800811 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800812 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800813 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100815 }
816
Karl Zhangaff558a2020-05-15 14:28:23 +0100817config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800818 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
819 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800820 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800821 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800822 "isolation_level": ["1", "2"],
823 "test_regression": [False],
824 "test_psa_api": ["IPC"],
825 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800826 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800827 "with_bl2": [True],
828 "with_ns": [True, False],
829 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800830 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800831 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100832 },
833 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800834 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800835 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800836 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800837 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100838 }
839
Karl Zhang14573bc2020-06-08 09:23:21 +0800840config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800841 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
842 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800843 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800844 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800845 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800846 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800847 "test_regression": [True, False],
848 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800849 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800850 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800851 "with_bl2": [True],
852 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800853 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800854 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800855 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800856 },
857 "common_params": _common_tfm_builder_cfg,
858 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800859 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800860 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800861 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800862 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800863 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800864 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800865 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800866 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800867 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800868 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800869 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800870 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800871 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800872 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800873 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800874 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800875 ]
876 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800877
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800878config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800879 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800880 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800881 "lib_model": [True, False],
882 "isolation_level": ["1", "2", "3"],
883 "test_regression": [True],
884 "test_psa_api": ["OFF"],
885 "cmake_build_type": ["Debug"],
886 "with_otp": ["off"],
887 "with_bl2": [True],
888 "with_ns": [True],
889 "profile": [""],
890 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800891 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800892 },
893 "common_params": _common_tfm_builder_cfg,
894 "invalid": _common_tfm_invalid_configs + []
895 }
896
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800897config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800898 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800899 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800900 "lib_model": [False],
901 "isolation_level": ["1"],
902 "test_regression": [True],
903 "test_psa_api": ["OFF"],
904 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
905 "with_otp": ["off"],
906 "with_bl2": [True],
907 "with_ns": [True],
908 "profile": [""],
909 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800910 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800911 },
912 "common_params": _common_tfm_builder_cfg,
913 "invalid": _common_tfm_invalid_configs + []
914 }
915
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800916config_cc_driver_psa = {"seed_params": {
917 "tfm_platform": ["arm/musca_b1/sse_200",
918 "arm/musca_s1"],
919 "compiler": ["GCC_7_3_1"],
920 "lib_model": [False],
921 "isolation_level": ["1"],
922 "test_regression": [True],
923 "test_psa_api": ["OFF"],
924 "cmake_build_type": ["Release"],
925 "with_otp": ["off"],
926 "with_bl2": [True],
927 "with_ns": [True],
928 "profile": [""],
929 "partition_ps": ["ON"],
930 "extra_params": ["CC_DRIVER_PSA"]
931 },
932 "common_params": _common_tfm_builder_cfg,
933 "invalid": _common_tfm_invalid_configs + []
934 }
935
Karl Zhang14573bc2020-06-08 09:23:21 +0800936config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800937 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
938 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800939 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800940 "lib_model": [False],
941 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800942 "test_regression": [True, False],
943 "test_psa_api": ["OFF"],
944 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800945 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800946 "with_bl2": [True],
947 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800948 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800949 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800950 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 },
952 "common_params": _common_tfm_builder_cfg,
953 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800954 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800955 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800956 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800957 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800958 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800959 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800960 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800961 ]
962 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800963
Karl Zhang14573bc2020-06-08 09:23:21 +0800964config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800965 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
966 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800967 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800968 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800969 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800970 "test_regression": [False],
971 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800972 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800973 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800974 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800975 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800976 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800977 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800978 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800979 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800980 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800981 },
982 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800983 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800984 }
985
Karl Zhang14573bc2020-06-08 09:23:21 +0800986config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800987 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
988 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800989 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800990 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800991 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800992 "test_regression": [False],
993 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800994 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800995 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800996 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800997 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800998 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800999 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001000 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001001 },
1002 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001003 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001004 }
1005
Karl Zhang14573bc2020-06-08 09:23:21 +08001006config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001007 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001008 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001009 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001010 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001011 "test_regression": [True],
1012 "test_psa_api": ["OFF"],
1013 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001014 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001015 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001016 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001017 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001018 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001019 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001020 },
1021 "common_params": _common_tfm_builder_cfg,
1022 "invalid": _common_tfm_invalid_configs + []
1023 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001024
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001025config_nightly_psoc64 = {"seed_params": {
1026 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001027 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001028 "lib_model": [False],
1029 "isolation_level": ["1", "2"],
1030 "test_regression": [True],
1031 "test_psa_api": ["OFF"],
1032 "cmake_build_type": ["Release"],
1033 "with_otp": ["off"],
1034 "with_bl2": [False],
1035 "with_ns": [True],
1036 "profile": [""],
1037 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001038 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001039 },
1040 "common_params": _common_tfm_builder_cfg,
1041 "invalid": _common_tfm_invalid_configs + []
1042 }
1043
Arthur Shef3657742021-09-07 14:23:18 -07001044config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1045 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001046 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001047 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001048 "isolation_level": ["2"],
1049 "test_regression": [True, False],
1050 "test_psa_api": ["OFF"],
1051 "cmake_build_type": ["Relwithdebinfo"],
1052 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001053 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001054 "with_ns": [True],
1055 "profile": ["profile_medium"],
1056 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001057 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001058 },
1059 "common_params": _common_tfm_builder_cfg,
1060 "invalid": _common_tfm_invalid_configs + []
1061 }
1062
1063config_nightly_FP = {"seed_params": {
1064 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001065 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +08001066 "lib_model": [False],
1067 "isolation_level": ["1", "2"],
1068 "test_regression": [True],
1069 "test_psa_api": ["OFF"],
1070 "cmake_build_type": ["Debug"],
1071 "with_otp": ["off"],
1072 "with_bl2": [True],
1073 "with_ns": [True],
1074 "profile": [""],
1075 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001076 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001077 },
1078 "common_params": _common_tfm_builder_cfg,
1079 "invalid": _common_tfm_invalid_configs + []
1080 }
1081
Karl Zhang14573bc2020-06-08 09:23:21 +08001082config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001083 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001084 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001085 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001086 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001087 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001088 "test_regression": [True],
1089 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001090 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001091 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001092 "with_bl2": [True],
1093 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001094 "profile": ["", "profile_small", "profile_medium"],
1095 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001096 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001097 },
1098 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001099 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001100 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001101 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001102 "off", True, True, "", "ON", ""),
Bence Balogh176b78f2022-02-22 13:49:34 +01001103 # AN552_GNUARM_IPC_1_REG_Debug_BL2_NS
1104 ("arm/mps3/an552", "GCC_10_3",
1105 False, "1", True, "OFF", "Debug",
1106 "off", True, True, "", "ON", ""),
1107 # AN552_GNUARM_IPC_1_REG_Release_BL2_NS
1108 ("arm/mps3/an552", "GCC_10_3",
1109 False, "1", True, "OFF", "Release",
1110 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001111 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001112 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001113 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001114 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001115 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001116 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001117 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001118 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001119 "off", True, True, "profile_medium", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001120 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001121 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001122 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001123 # AN521_GCC_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
1124 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001125 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001126 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001127 # MUSCA_B1_GCC_LIB_1_REG_Minsizerel_BL2_NS
1128 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001129 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001130 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001131 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +08001132 ("stm/stm32l562e_dk", "ARMCLANG_6_13",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001133 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001134 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001135 # stm32l562e_dk_GCC_IPC_2_REG_Release_BL2_NS
1136 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001137 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001138 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001139 # stm32l562e_dk_GCC_IPC_3_REG_Release_BL2_NS
1140 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001141 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001142 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001143 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2_NS_FPHARD
1144 ("arm/musca_s1", "GCC_10_3",
Feder Liang567e8c22021-10-26 14:16:21 +08001145 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001146 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001147 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1148 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001149 False, "1", True, "OFF", "Release",
1150 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001151 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001152 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001153 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001154 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001155 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001156 # valid configs supported by TF-M but not needed in per-patch
1157 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001158 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001159 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001160 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001161 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001162 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001163 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001164 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001165 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001166 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001167 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001168 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001169 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001170 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001171 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001172 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001173 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001174 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001175 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001176 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001177 ("*", "GCC_7_3_1", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001178 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001179 ("*", "ARMCLANG_6_13", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001180 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001181 ("*", "ARMCLANG_6_13", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001182 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001183 ]
1184 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001185
Karl Zhang14573bc2020-06-08 09:23:21 +08001186config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001187 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001188 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001189 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 "isolation_level": ["1", "2"],
1191 "test_regression": [True],
1192 "test_psa_api": ["OFF"],
1193 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001194 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001195 "with_bl2": [True],
1196 "with_ns": [True, False],
1197 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001198 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001199 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001200 },
1201 "common_params": _common_tfm_builder_cfg,
1202 "invalid": _common_tfm_invalid_configs + []
1203 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001204
1205# Configure build manager to build several combinations
1206config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001207 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001208 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001209 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001210 "isolation_level": ["2"],
1211 "test_regression": [False],
1212 "test_psa_api": ["IPC",
1213 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001214 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001215 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001216 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001217 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001218 "with_bl2": [True],
1219 "with_ns": [True, False],
1220 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001221 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001222 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001223 },
1224 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001225 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001226 }
1227
Karl Zhang14573bc2020-06-08 09:23:21 +08001228config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001229 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001230 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001231 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001232 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001233 "test_regression": [True],
1234 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001235 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001236 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001237 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001238 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001239 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001240 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001241 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001242 },
1243 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001244 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001245 }
1246
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001247config_cov_an519 = {"seed_params": {
1248 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001249 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001250 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001251 "isolation_level": ["1", "2", "3"],
1252 "test_regression": [True, False],
1253 "test_psa_api": ["OFF"],
1254 "cmake_build_type": ["Debug", "Release"],
1255 "with_otp": ["off"],
1256 "with_bl2": [True],
1257 "with_ns": [True],
1258 "profile": ["", "profile_small", "profile_medium"],
1259 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001260 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001261 },
1262 "common_params": _common_tfm_builder_cfg,
1263 "invalid": _common_tfm_invalid_configs + []
1264 }
1265
1266config_cov_an521 = {"seed_params": {
1267 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001268 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001269 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001270 "isolation_level": ["1", "2", "3"],
1271 "test_regression": [True, False],
1272 "test_psa_api": ["OFF"],
1273 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1274 "with_otp": ["off"],
1275 "with_bl2": [True],
1276 "with_ns": [True],
1277 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1278 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001279 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001280 },
1281 "common_params": _common_tfm_builder_cfg,
1282 "invalid": _common_tfm_invalid_configs + []
1283 }
1284
Minos Galanakisea421232019-06-20 17:11:28 +01001285# Configruation used for document building
1286config_doxygen = {"common_params": {
1287 "config_type": "tf-m_documents",
1288 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001289 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001290 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001291 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001292 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001293 "cmake --build ./ -- docs"]},
1294 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1295 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001296 r'/(\w+\.(?:html|md|pdf))$',
1297 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001298 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001299 }
1300
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001301# Configurations used in testing
1302
Minos Galanakisea421232019-06-20 17:11:28 +01001303config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001304 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001305 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001306 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001307 "isolation_level": ["1"],
1308 "test_regression": [False],
1309 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001310 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001311 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001312 "with_bl2": [True],
1313 "with_ns": [True],
1314 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001315 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001316 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001317 },
1318 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001319 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001320 }
1321
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001322
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +03001323config_debug_regr = deepcopy(config_debug)
1324config_debug_regr["seed_params"]["test_regression"] = [True]
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001325
1326
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001327config_debug_PSA_API = {"seed_params": {
1328 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001329 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001330 "lib_model": [True],
1331 "isolation_level": ["1"],
1332 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001333 "test_psa_api": ["CRYPTO",
1334 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001335 "STORAGE",
1336 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001337 "cmake_build_type": ["Debug"],
1338 "with_otp": ["off"],
1339 "with_bl2": [True],
1340 "with_ns": [True],
1341 "profile": [""],
1342 "partition_ps": ["ON"],
1343 "extra_params": [""]
1344 },
1345 "common_params": _common_tfm_builder_cfg,
1346 "invalid": _common_tfm_invalid_configs + []
1347 }
1348
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001349config_debug_PSA_API_nolib = {"seed_params": {
1350 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001351 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001352 "lib_model": [False],
1353 "isolation_level": ["1"],
1354 "test_regression": [False],
1355 "test_psa_api": ["CRYPTO",
1356 "INITIAL_ATTESTATION",
1357 "STORAGE",
1358 "IPC"],
1359 "cmake_build_type": ["Debug"],
1360 "with_otp": ["off"],
1361 "with_bl2": [True],
1362 "with_ns": [True],
1363 "profile": [""],
1364 "partition_ps": ["ON"],
1365 "extra_params": [""]
1366 },
1367 "common_params": _common_tfm_builder_cfg,
1368 "invalid": _common_tfm_invalid_configs + []
1369 }
1370
Dean Birch4c6ad622020-03-13 11:28:03 +00001371# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001372config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001373 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001374 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001375 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001376 "isolation_level": ["1", "2"],
1377 "test_regression": [True, False],
1378 "test_psa_api": ["OFF"],
1379 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001380 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001381 "with_bl2": [True, False],
1382 "with_ns": [True],
1383 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001384 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001385 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001386 },
1387 "common_params": _common_tfm_builder_cfg,
1388 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001389 ("*", "ARMCLANG_6_13", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001390 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001391 ("*", "ARMCLANG_6_13", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001392 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001393 ]
1394 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001395
Xinyu Zhangb708f572020-09-15 11:43:46 +08001396config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001397 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001398 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001399 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001400 "isolation_level": ["1", "2"],
1401 "test_regression": [True],
1402 "test_psa_api": ["OFF"],
1403 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001404 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001405 "with_bl2": [True, False],
1406 "with_ns": [True, False],
1407 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001408 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001409 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001410 },
1411 "common_params": _common_tfm_builder_cfg,
1412 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001413 ("arm/mps2/an521", "GCC_7_3_1", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001414 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001415 ]
1416 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001417
Xinyu Zhang38b76742021-11-11 13:57:56 +08001418config_an547 = {"seed_params": {
1419 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001420 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001421 "lib_model": [False],
1422 "isolation_level": ["1"],
1423 "test_regression": [False],
1424 "test_psa_api": ["OFF"],
1425 "cmake_build_type": ["Debug"],
1426 "with_otp": ["off"],
1427 "with_bl2": [True],
1428 "with_ns": [False],
1429 "profile": [""],
1430 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001431 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001432 },
1433 "common_params": _common_tfm_builder_cfg,
1434 "invalid": _common_tfm_invalid_configs + []
1435 }
1436
1437config_corstone_polaris = {"seed_params": {
1438 "tfm_platform": ["arm/mps3/corstone_polaris"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001439 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001440 "lib_model": [False],
1441 "isolation_level": ["1"],
1442 "test_regression": [False],
1443 "test_psa_api": ["OFF"],
1444 "cmake_build_type": ["Debug"],
1445 "with_otp": ["off"],
1446 "with_bl2": [True],
1447 "with_ns": [False],
1448 "profile": [""],
1449 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001450 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001451 },
1452 "common_params": _common_tfm_builder_cfg,
1453 "invalid": _common_tfm_invalid_configs + []
1454 }
1455
1456config_bl5340 = {"seed_params": {
1457 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001458 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001459 "lib_model": [False],
1460 "isolation_level": ["1"],
1461 "test_regression": [False],
1462 "test_psa_api": ["OFF"],
1463 "cmake_build_type": ["Debug"],
1464 "with_otp": ["off"],
1465 "with_bl2": [True],
1466 "with_ns": [False],
1467 "profile": [""],
1468 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001469 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001470 },
1471 "common_params": _common_tfm_builder_cfg,
1472 "invalid": _common_tfm_invalid_configs + []
1473 }
1474
1475config_nrf5340dk = {"seed_params": {
1476 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001477 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001478 "lib_model": [False],
1479 "isolation_level": ["1"],
1480 "test_regression": [False],
1481 "test_psa_api": ["OFF"],
1482 "cmake_build_type": ["Debug"],
1483 "with_otp": ["off"],
1484 "with_bl2": [True],
1485 "with_ns": [False],
1486 "profile": [""],
1487 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001488 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001489 },
1490 "common_params": _common_tfm_builder_cfg,
1491 "invalid": _common_tfm_invalid_configs + []
1492 }
1493
1494config_nrf9160dk = {"seed_params": {
1495 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001496 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001497 "lib_model": [False],
1498 "isolation_level": ["1"],
1499 "test_regression": [False],
1500 "test_psa_api": ["OFF"],
1501 "cmake_build_type": ["Debug"],
1502 "with_otp": ["off"],
1503 "with_bl2": [True],
1504 "with_ns": [False],
1505 "profile": [""],
1506 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001507 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001508 },
1509 "common_params": _common_tfm_builder_cfg,
1510 "invalid": _common_tfm_invalid_configs + []
1511 }
1512
1513config_m2351 = {"seed_params": {
1514 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001515 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001516 "lib_model": [False],
1517 "isolation_level": ["1"],
1518 "test_regression": [False],
1519 "test_psa_api": ["OFF"],
1520 "cmake_build_type": ["Release"],
1521 "with_otp": ["off"],
1522 "with_bl2": [True],
1523 "with_ns": [False],
1524 "profile": [""],
1525 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001526 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001527 },
1528 "common_params": _common_tfm_builder_cfg,
1529 "invalid": _common_tfm_invalid_configs + []
1530 }
1531
1532config_m2354 = {"seed_params": {
1533 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001534 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001535 "lib_model": [False],
1536 "isolation_level": ["1"],
1537 "test_regression": [False],
1538 "test_psa_api": ["OFF"],
1539 "cmake_build_type": ["Debug"],
1540 "with_otp": ["off"],
1541 "with_bl2": [True],
1542 "with_ns": [False],
1543 "profile": [""],
1544 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001545 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001546 },
1547 "common_params": _common_tfm_builder_cfg,
1548 "invalid": _common_tfm_invalid_configs + []
1549 }
1550
1551config_b_u585i_iot02a = {"seed_params": {
1552 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001553 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001554 "lib_model": [False],
1555 "isolation_level": ["1"],
1556 "test_regression": [False],
1557 "test_psa_api": ["OFF"],
1558 "cmake_build_type": ["Release"],
1559 "with_otp": ["off"],
1560 "with_bl2": [True],
1561 "with_ns": [False],
1562 "profile": [""],
1563 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001564 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001565 },
1566 "common_params": _common_tfm_builder_cfg,
1567 "invalid": _common_tfm_invalid_configs + []
1568 }
1569
1570config_nucleo_l552ze_q = {"seed_params": {
1571 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001572 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001573 "lib_model": [False],
1574 "isolation_level": ["1"],
1575 "test_regression": [False],
1576 "test_psa_api": ["OFF"],
1577 "cmake_build_type": ["Release"],
1578 "with_otp": ["off"],
1579 "with_bl2": [True],
1580 "with_ns": [False],
1581 "profile": [""],
1582 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001583 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001584 },
1585 "common_params": _common_tfm_builder_cfg,
1586 "invalid": _common_tfm_invalid_configs + []
1587 }
1588
Karl Zhangaff558a2020-05-15 14:28:23 +01001589_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001590 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001591 "tfm_test": config_tfm_test,
1592 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001593 "tfm_profile": config_tfm_profile,
David Huda27ae72022-03-28 15:32:19 +08001594 "tfm_profile_s": config_tfm_profile_s,
Karl Zhangaff558a2020-05-15 14:28:23 +01001595 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001596 "tfm_nsce": config_nsce,
1597 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001598 "psa_api": config_PSA_API,
1599 "psa_api_otp": config_PSA_API_OTP,
1600 "psa_ff": config_PSA_FF,
1601 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001602 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001603 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001604 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001605 "tfm_fp": config_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001606 "tfm_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001607
1608 #nightly test group
1609 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001610 "nightly_nsce": config_nsce,
1611 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001612 "nightly_profile": config_nightly_profile,
David Huda27ae72022-03-28 15:32:19 +08001613 "nightly_profile_s": config_tfm_profile_s,
Karl Zhang14573bc2020-06-08 09:23:21 +08001614 "nightly_psa_api": config_nightly_PSA_API,
1615 "nightly_ff": config_nightly_PSA_FF,
1616 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001617 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001618 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001619 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001620 "nightly_fp":config_nightly_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001621 "nightly_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001622
1623 #per patch test group
1624 "pp_test": config_pp_test,
1625 "pp_OTP": config_pp_OTP,
1626 "pp_PSA_API": config_pp_PSA_API,
1627 "pp_psoc64": config_pp_PSoC64,
1628
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001629 #code coverage test group
1630 "coverage_an519": config_cov_an519,
1631 "coverage_an521": config_cov_an521,
1632
Xinyu Zhang38b76742021-11-11 13:57:56 +08001633 #extra build group
1634 "arm_corstone1000": config_corstone1000,
1635 "arm_an547": config_an547,
Bence Balogh176b78f2022-02-22 13:49:34 +01001636 "arm_an552": config_an552,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001637 "arm_corstone_polaris": config_corstone_polaris,
1638 "cypress_psoc64": config_PSOC64,
1639 "laird_bl5340": config_bl5340,
1640 "nordic_nrf5340dk": config_nrf5340dk,
1641 "nordic_nrf9160dk": config_nrf9160dk,
1642 "nuvoton_m2351": config_m2351,
1643 "nuvoton_m2354": config_m2354,
1644 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1645 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1646 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1647 "stm_stm32l562e_dk": config_STM32L562E_DK,
1648
Karl Zhang14573bc2020-06-08 09:23:21 +08001649 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001650 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001651
1652 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001653 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001654 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001655 "an521_psa_api": config_AN521_PSA_API,
1656 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001657 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001658 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001659 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001660 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001661 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001662 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001663 "ipc": config_IPC,
1664 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001665 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001666 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001667 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001668 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001669 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001670
1671 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001672 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001673 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001674
1675if __name__ == '__main__':
1676 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001677
Minos Galanakisea421232019-06-20 17:11:28 +01001678 # Default behavior is to export refference config when called
1679 _dir = os.getcwd()
1680 from utils import save_json
1681 for _cname, _cfg in _builtin_configs.items():
1682 _fname = os.path.join(_dir, _cname + ".json")
1683 print("Exporting config %s" % _fname)
1684 save_json(_fname, _cfg)