blob: 9674cadcb9c33ff0628ecebed18bc9003f96cd07 [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
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080033 "compiler",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080034 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080043 "partition_ps",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080044 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangf3e19482022-01-11 15:48:13 +080049 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080050 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang433771e2022-04-01 16:49:17 +080051 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(compiler)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080052 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000055 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
57 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
58 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
59 "-DBL2=%(with_bl2)s " + \
60 "-DNS=%(with_ns)s " + \
61 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
62 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
63 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
64 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
65 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080066 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080067 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080068 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010069
Xinyu Zhang433771e2022-04-01 16:49:17 +080070 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
71
Minos Galanakisea421232019-06-20 17:11:28 +010072 # A small subset of string substitution params is allowed in commands.
73 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
74 # _tbm_target_platform_ with the paths set when building
75
Xinyu Zhangb708f572020-09-15 11:43:46 +080076 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010077 r'/(\w+\.(?:axf|bin|hex))$'),
78
79 # ALL commands will be executed for every build.
80 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010081 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080082 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010083 "%(_tbm_build_dir_)s/bin/"
84 "bl2.bin "
85 "-Binary -offset 0xA000000 "
86 "-fill 0xFF 0xA000000 0xA020000 "
87 "%(_tbm_build_dir_)s/bin/"
88 "tfm_s_ns_signed.bin "
89 "-Binary -offset 0xA020000 "
90 "-fill 0xFF 0xA020000 0xA200000 "
91 "-o %(_tbm_build_dir_)s/bin/"
92 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080093 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080094 "%(_tbm_build_dir_)s/bin/"
95 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080096 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000097 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080098 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080099 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000100 "-Binary -offset 0xA020000 "
101 "-fill 0xFF 0xA020000 0xA200000 "
102 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700103 "tfm.hex -Intel")],
104 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
105 "%(_tbm_build_dir_)s/postbuild.sh;"
106 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700107 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
108 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800109 "popd")],
110 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
111 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
112 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
113 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
114 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
115 "python3 ./${FLASH_FILE};"
116 "cd %(_tbm_build_dir_)s/bin;"
117 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
118 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800119 "popd")],
120 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
121 "pushd %(_tbm_build_dir_)s/..;"
122 "sudo /usr/local/bin/cysecuretools "
123 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
124 "--target cy8ckit-064s0s2-4343w "
125 "sign-image "
126 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
127 "--image-type BOOT --image-id 1;"
128 "sudo /usr/local/bin/cysecuretools "
129 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
130 "--target cy8ckit-064s0s2-4343w "
131 "sign-image "
132 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
133 "--image-type BOOT --image-id 16;"
134 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
135 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
136 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100137 },
138
139 # (Optional) If set will fail if those artefacts are missing post build
140 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800141 "%(_tbm_build_dir_)s/bin/"
142 "tfm_s.bin",
143 "%(_tbm_build_dir_)s/bin/"
144 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800145 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800146 "%(_tbm_build_dir_)s/bin/"
147 "tfm.hex",
148 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800149 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800150 "%(_tbm_build_dir_)s/bin/"
151 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800152 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800153 "%(_tbm_build_dir_)s/bin/"
154 "tfm.hex",
155 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800156 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800157 "%(_tbm_build_dir_)s/bin/"
158 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100159 }
160}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100161
Xinyu Zhangb708f572020-09-15 11:43:46 +0800162# List of all build configs that are impossible under all circumstances
163_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800164 # 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 +0800165 ("arm/musca_b1/sse_200", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
166 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800167 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhang433771e2022-04-01 16:49:17 +0800168 ("arm/musca_b1/sse_200", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
169 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
170 # Oversize issue on config lpcxpresso55s69_GCC_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
171 ("nxp/lpcxpresso55s69", "GCC_7_3_1", False, "2", False, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800172 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800173 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +0800174 ("stm/stm32l562e_dk", "ARMCLANG_6_13", True, "1", True, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800175 "Release", "off", True, True, "", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800176 # LVL2 and LVL3 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800177 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
178 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800179 # Regression requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800180 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800181 # psoc64 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800182 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800183 # No PSA_ACK with regression
Feder Liang357b1602022-01-11 16:47:49 +0800184 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
185 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
186 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
187 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800188 # PSA_ACK requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800189 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
190 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
191 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
192 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800193 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang357b1602022-01-11 16:47:49 +0800194 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800195 # Musca requires BL2
Feder Liang357b1602022-01-11 16:47:49 +0800196 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
197 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800198 # psoc64 cannot use BL2
Feder Liang357b1602022-01-11 16:47:49 +0800199 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800200 # psoc64 does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800201 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhange1b29e02022-03-04 12:02:07 +0800202 # PSoC64 platform got issue on level one test, disable it as a workaround
203 ("cypress/psoc64", "*", "*", "1", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800204 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800205 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800206 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800207 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
208 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
209 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100210 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800211 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
212 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
213 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
214 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
215 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
216 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
217 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
218 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
219 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800220 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800221 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
222 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800223 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800224 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800225 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800226 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800227 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800228 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
229 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800230 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800231 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
232 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800233 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800234 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800235 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800236 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
237 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800238 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800239 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
240 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
241 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
242 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
243 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700244 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800245 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700246 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800247 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700248 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang433771e2022-04-01 16:49:17 +0800249 ("nxp/lpcxpresso55s69", "ARMCLANG_6_13", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700250 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800251 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
252 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700253 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800254 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800255 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800256 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800257 ]
258
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100259# Configure build manager to build several combinations
Bence Balogh176b78f2022-02-22 13:49:34 +0100260config_an552 = {"seed_params": {
261 "tfm_platform": ["arm/mps3/an552"],
262 "compiler": ["GCC_10_3"],
263 "lib_model": [True, False],
264 "isolation_level": ["1", "2"],
265 "test_regression": [True, False],
266 "test_psa_api": ["OFF"],
267 "cmake_build_type": ["Debug", "Release"],
268 "with_otp": ["off"],
269 "with_bl2": [True],
270 "with_ns": [True],
271 "profile": [""],
272 "partition_ps": ["ON"],
273 "extra_params": [""]
274 },
275 "common_params": _common_tfm_builder_cfg,
276 "invalid": _common_tfm_invalid_configs + []
277 }
278
Karl Zhangaff558a2020-05-15 14:28:23 +0100279config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800280 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800281 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800282 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800283 "isolation_level": ["1", "2"],
284 "test_regression": [True, False],
285 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100286 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800287 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "with_bl2": [True, False],
289 "with_ns": [True, False],
290 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800291 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800292 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100293 },
294 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800295 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100296 }
297
Karl Zhangaff558a2020-05-15 14:28:23 +0100298config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800299 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800300 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800301 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "isolation_level": ["1", "2"],
303 "test_regression": [True, False],
304 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100305 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800306 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "with_bl2": [True, False],
308 "with_ns": [True, False],
309 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800310 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800311 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100312 },
313 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100315 }
316
Karl Zhangaff558a2020-05-15 14:28:23 +0100317config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800318 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
319 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800320 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800321 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800322 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "test_regression": [False],
324 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800326 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100327 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800328 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800330 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800332 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800333 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100334 },
335 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100337 }
338
Karl Zhangaff558a2020-05-15 14:28:23 +0100339config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800340 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
341 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800342 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800343 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800344 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345 "test_regression": [False],
346 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100347 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800348 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800349 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800350 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800352 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800353 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100354 },
355 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800356 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100357 }
358
Karl Zhangaff558a2020-05-15 14:28:23 +0100359config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800360 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800361 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800362 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800363 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800364 "test_regression": [False],
365 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800367 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100368 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800369 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800370 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800371 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800372 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800373 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800374 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100375 },
376 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800377 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100378 }
Minos Galanakisea421232019-06-20 17:11:28 +0100379
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800381 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800382 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800383 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800384 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 "test_regression": [False],
386 "test_psa_api": ["IPC"],
387 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800388 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800389 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800390 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800391 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800392 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800393 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800394 },
395 "common_params": _common_tfm_builder_cfg,
396 "invalid": _common_tfm_invalid_configs + []
397 }
398
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800399config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800400 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800401 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800402 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800403 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 "test_regression": [True],
405 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800406 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800407 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800408 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800409 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800410 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800411 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800412 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800413 },
414 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800416 }
417
Arthur She19c0e1a2021-06-02 11:06:19 -0700418config_STM32L562E_DK = {"seed_params": {
419 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800420 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800421 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700422 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800423 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700424 "test_psa_api": ["OFF"],
425 "cmake_build_type": ["Release"],
426 "with_otp": ["off"],
427 "with_bl2": [True],
428 "with_ns": [True],
429 "profile": [""],
430 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800431 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700432 },
433 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800434 "invalid": _common_tfm_invalid_configs + [
435 # all other tests are off when CRYPTO is ON
436 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800437 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800438 # all other tests are ON when CRYPTO is OFF
439 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800440 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800441 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700442 }
443
Arthur Shef3657742021-09-07 14:23:18 -0700444config_LPCXPRESSO55S69 = {"seed_params": {
445 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800446 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800447 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700448 "isolation_level": ["2"],
449 "test_regression": [True, False],
450 "test_psa_api": ["OFF"],
451 "cmake_build_type": ["Relwithdebinfo"],
452 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800453 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700454 "with_ns": [True],
455 "profile": ["profile_medium"],
456 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800457 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800458 },
459 "common_params": _common_tfm_builder_cfg,
460 "invalid": _common_tfm_invalid_configs + []
461 }
462
463config_FP = {"seed_params": {
464 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800465 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +0800466 "lib_model": [False],
467 "isolation_level": ["1", "2"],
468 "test_regression": [True],
469 "test_psa_api": ["OFF"],
470 "cmake_build_type": ["Release"],
471 "with_otp": ["off"],
472 "with_bl2": [True],
473 "with_ns": [True],
474 "profile": [""],
475 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800476 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700477 },
478 "common_params": _common_tfm_builder_cfg,
479 "invalid": _common_tfm_invalid_configs + []
480 }
481
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800482config_corstone1000 = {"seed_params": {
483 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800484 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800485 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800486 "isolation_level": ["1"],
487 "test_regression": [False],
488 "test_psa_api": ["OFF"],
489 "cmake_build_type": ["Debug"],
490 "with_otp": ["off"],
491 "with_bl2": [True],
492 "with_ns": [False],
493 "profile": [""],
494 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800495 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800496 },
497 "common_params": _common_tfm_builder_cfg,
498 "invalid": _common_tfm_invalid_configs + []
499 }
500
Minos Galanakisea421232019-06-20 17:11:28 +0100501config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800502 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800503 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800504 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 "isolation_level": ["1", "2"],
506 "test_regression": [True, False],
507 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100508 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800509 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "with_bl2": [True, False],
511 "with_ns": [True, False],
512 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800513 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800514 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100515 },
516 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100518 }
519
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800521 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
522 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800523 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800524 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 "isolation_level": ["1", "2"],
526 "test_regression": [True, False],
527 "test_psa_api": ["OFF"],
528 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800529 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800530 "with_bl2": [True, False],
531 "with_ns": [True, False],
532 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800533 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800534 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 },
Minos Galanakisea421232019-06-20 17:11:28 +0100536 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800537 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100538 }
539
Minos Galanakisea421232019-06-20 17:11:28 +0100540config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800541 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
542 "arm/musca_b1/sse_200",
Bence Balogh176b78f2022-02-22 13:49:34 +0100543 "arm/mps3/an524", "arm/mps3/an547",
544 "arm/mps3/an552", "cypress/psoc64",
545 "arm/mps3/corstone_polaris",
Arthur She19c0e1a2021-06-02 11:06:19 -0700546 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700547 "stm/stm32l562e_dk",
548 "nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800549 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800550 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800551 "isolation_level": ["1", "2"],
552 "test_regression": [True, False],
553 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800554 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800555 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 "with_bl2": [True, False],
557 "with_ns": [True, False],
558 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800559 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800560 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100561 },
562 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800563 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800564 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800565 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800566 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800567 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800568 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800569 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800570 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800571 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800572 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800573 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800574 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800575 "*", "*", "*", "*", "*", "*"),
Bence Balogh176b78f2022-02-22 13:49:34 +0100576 ("arm/mps3/an547", "*", "*", "*", "*", "*", "RelWithDebInfo",
577 "*", "*", "*", "*", "*", "*"),
578 ("arm/mps3/an552", "*", "*", "*", "*", "*", "RelWithDebInfo",
579 "*", "*", "*", "*", "*", "*"),
580 ("arm/mps3/corstone_polaris", "*", "*", "*", "*", "*", "RelWithDebInfo",
581 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800582 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800583 }
584
Karl Zhangaff558a2020-05-15 14:28:23 +0100585config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800586 "tfm_platform": ["arm/mps2/an521",
587 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800588 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800589 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800590 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "test_regression": [True, False],
592 "test_psa_api": ["OFF"],
593 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800594 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800595 "with_bl2": [True],
596 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800598 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800599 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 },
601 "common_params": _common_tfm_builder_cfg,
602 "invalid": _common_tfm_invalid_configs + []
603 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800604
Karl Zhangaff558a2020-05-15 14:28:23 +0100605config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800606 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800607 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800608 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800609 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800610 "test_regression": [True, False],
611 "test_psa_api": ["OFF"],
612 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800613 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800614 "with_bl2": [True],
615 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800617 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800618 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800619 },
620 "common_params": _common_tfm_builder_cfg,
621 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800622 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800623 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 ]
625 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100626
Karl Zhang14573bc2020-06-08 09:23:21 +0800627config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800628 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
629 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800630 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800631 "lib_model": [False],
632 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 "test_regression": [True, False],
634 "test_psa_api": ["OFF"],
635 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800636 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800637 "with_bl2": [True],
638 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800639 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800640 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800641 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800642 },
643 "common_params": _common_tfm_builder_cfg,
644 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800645 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800646 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800647 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800648 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800649 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800650 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800651 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800652 ]
653 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800654
David Huda27ae72022-03-28 15:32:19 +0800655config_tfm_profile_s = {"seed_params": {
656 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800657 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800658 "lib_model": [True],
659 "isolation_level": ["1"],
660 "test_regression": [True, False],
661 "test_psa_api": ["OFF"],
662 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
663 "with_otp": ["OFF"],
664 "with_bl2": [True],
665 "with_ns": [True],
666 "profile": ["profile_small"],
667 "partition_ps": ["OFF"],
668 "extra_params": [""]
669 },
670 "common_params": _common_tfm_builder_cfg,
671 "valid": [
672 # Profile Small also supports SFN model
673 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "*",
674 "*", "SFN_ENABLE")
675 ],
676 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800677 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
David Huda27ae72022-03-28 15:32:19 +0800678 "*", "Minsizerel", "*", "*", "*", "*", "*", "*")
679 ]
680 }
681
Karl Zhangaff558a2020-05-15 14:28:23 +0100682config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800683 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800684 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800685 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800686 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800687 "test_regression": [True, False],
688 "test_psa_api": ["OFF"],
689 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800690 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800692 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800694 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800695 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 },
697 "common_params": _common_tfm_builder_cfg,
698 "invalid": _common_tfm_invalid_configs + []
699 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100700
Minos Galanakisea421232019-06-20 17:11:28 +0100701config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800702 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800703 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800704 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 "isolation_level": ["1", "2"],
706 "test_regression": [True, False],
707 "test_psa_api": ["OFF"],
708 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800709 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "with_bl2": [True],
711 "with_ns": [True, False],
712 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800713 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800714 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800715 },
716 "common_params": _common_tfm_builder_cfg,
717 "invalid": _common_tfm_invalid_configs + []
718 }
Minos Galanakisea421232019-06-20 17:11:28 +0100719
Mark Horvath8d281cd2020-12-07 15:20:26 +0100720config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800721 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800722 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800723 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100724 "isolation_level": ["1"],
725 "test_regression": [False],
726 "test_psa_api": ["OFF"],
727 "cmake_build_type": ["Debug", "Release"],
728 "with_otp": ["off"],
729 "with_bl2": [True],
730 "with_ns": [False],
731 "profile": [""],
732 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800733 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100734 },
735 "common_params": _common_tfm_builder_cfg,
736 "invalid": _common_tfm_invalid_configs + []
737 }
738
Karl Zhangeffed972020-06-30 15:48:01 +0800739config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800740 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800741 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800742 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800743 "isolation_level": ["1", "2"],
744 "test_regression": [True, False],
745 "test_psa_api": ["OFF"],
746 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800747 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800748 "with_bl2": [True],
749 "with_ns": [True, False],
750 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800751 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800752 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 },
754 "common_params": _common_tfm_builder_cfg,
755 "invalid": _common_tfm_invalid_configs + []
756 }
Karl Zhangeffed972020-06-30 15:48:01 +0800757
Karl Zhangaff558a2020-05-15 14:28:23 +0100758config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800759 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
760 "arm/musca_b1/sse_200", "arm/musca_s1",
761 "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800762 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800763 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800764 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "test_regression": [True, False],
766 "test_psa_api": ["OFF"],
767 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800768 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800769 "with_bl2": [True, False],
770 "with_ns": [True, False],
771 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800772 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800773 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 },
775 "common_params": _common_tfm_builder_cfg,
776 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800777 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800778 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 ]
780 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100781
782# Configure build manager to build several combinations
783config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800784 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
785 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800786 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800787 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800788 "isolation_level": ["1", "2"],
789 "test_regression": [False],
790 "test_psa_api": ["IPC",
791 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800793 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800795 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800796 "with_bl2": [True],
797 "with_ns": [True, False],
798 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800799 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800800 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100801 },
802 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800804 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800805 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100807 }
808
Karl Zhangaff558a2020-05-15 14:28:23 +0100809config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800810 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
811 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800812 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800813 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 "isolation_level": ["1", "2"],
815 "test_regression": [False],
816 "test_psa_api": ["IPC"],
817 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800818 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800819 "with_bl2": [True],
820 "with_ns": [True, False],
821 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800822 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800823 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100824 },
825 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800827 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800828 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100830 }
831
Karl Zhang14573bc2020-06-08 09:23:21 +0800832config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800833 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
834 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800835 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800836 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800837 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800838 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "test_regression": [True, False],
840 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800841 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800842 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800843 "with_bl2": [True],
844 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800845 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800846 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800847 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800848 },
849 "common_params": _common_tfm_builder_cfg,
850 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800851 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800852 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800853 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800854 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800855 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800856 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800857 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800858 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800859 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800860 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800861 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800862 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800863 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800864 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800865 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800866 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800867 ]
868 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800869
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800870config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800871 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800872 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800873 "lib_model": [True, False],
874 "isolation_level": ["1", "2", "3"],
875 "test_regression": [True],
876 "test_psa_api": ["OFF"],
877 "cmake_build_type": ["Debug"],
878 "with_otp": ["off"],
879 "with_bl2": [True],
880 "with_ns": [True],
881 "profile": [""],
882 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800883 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800884 },
885 "common_params": _common_tfm_builder_cfg,
886 "invalid": _common_tfm_invalid_configs + []
887 }
888
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800889config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800890 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800891 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800892 "lib_model": [False],
893 "isolation_level": ["1"],
894 "test_regression": [True],
895 "test_psa_api": ["OFF"],
896 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
897 "with_otp": ["off"],
898 "with_bl2": [True],
899 "with_ns": [True],
900 "profile": [""],
901 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800902 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800903 },
904 "common_params": _common_tfm_builder_cfg,
905 "invalid": _common_tfm_invalid_configs + []
906 }
907
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800908config_cc_driver_psa = {"seed_params": {
909 "tfm_platform": ["arm/musca_b1/sse_200",
910 "arm/musca_s1"],
911 "compiler": ["GCC_7_3_1"],
912 "lib_model": [False],
913 "isolation_level": ["1"],
914 "test_regression": [True],
915 "test_psa_api": ["OFF"],
916 "cmake_build_type": ["Release"],
917 "with_otp": ["off"],
918 "with_bl2": [True],
919 "with_ns": [True],
920 "profile": [""],
921 "partition_ps": ["ON"],
922 "extra_params": ["CC_DRIVER_PSA"]
923 },
924 "common_params": _common_tfm_builder_cfg,
925 "invalid": _common_tfm_invalid_configs + []
926 }
927
Karl Zhang14573bc2020-06-08 09:23:21 +0800928config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800929 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
930 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800931 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800932 "lib_model": [False],
933 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800934 "test_regression": [True, False],
935 "test_psa_api": ["OFF"],
936 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800937 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800938 "with_bl2": [True],
939 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800940 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800941 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800942 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800943 },
944 "common_params": _common_tfm_builder_cfg,
945 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800946 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800947 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800948 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800949 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800950 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800951 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800952 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 ]
954 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800955
Karl Zhang14573bc2020-06-08 09:23:21 +0800956config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800957 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
958 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800959 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800960 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800961 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800962 "test_regression": [False],
963 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800964 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800965 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800966 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800967 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800968 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800969 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800970 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800971 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800972 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800973 },
974 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800975 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800976 }
977
Karl Zhang14573bc2020-06-08 09:23:21 +0800978config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800979 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
980 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800981 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800982 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800983 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984 "test_regression": [False],
985 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800986 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800987 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800988 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800989 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800990 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800991 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800992 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800993 },
994 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800995 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800996 }
997
Karl Zhang14573bc2020-06-08 09:23:21 +0800998config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800999 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001000 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001001 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001002 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001003 "test_regression": [True],
1004 "test_psa_api": ["OFF"],
1005 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001006 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001007 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001008 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001009 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001010 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001011 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001012 },
1013 "common_params": _common_tfm_builder_cfg,
1014 "invalid": _common_tfm_invalid_configs + []
1015 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001016
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001017config_nightly_psoc64 = {"seed_params": {
1018 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001019 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001020 "lib_model": [False],
1021 "isolation_level": ["1", "2"],
1022 "test_regression": [True],
1023 "test_psa_api": ["OFF"],
1024 "cmake_build_type": ["Release"],
1025 "with_otp": ["off"],
1026 "with_bl2": [False],
1027 "with_ns": [True],
1028 "profile": [""],
1029 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001030 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001031 },
1032 "common_params": _common_tfm_builder_cfg,
1033 "invalid": _common_tfm_invalid_configs + []
1034 }
1035
Arthur Shef3657742021-09-07 14:23:18 -07001036config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1037 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001038 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001039 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001040 "isolation_level": ["2"],
1041 "test_regression": [True, False],
1042 "test_psa_api": ["OFF"],
1043 "cmake_build_type": ["Relwithdebinfo"],
1044 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001045 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001046 "with_ns": [True],
1047 "profile": ["profile_medium"],
1048 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001049 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001050 },
1051 "common_params": _common_tfm_builder_cfg,
1052 "invalid": _common_tfm_invalid_configs + []
1053 }
1054
1055config_nightly_FP = {"seed_params": {
1056 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001057 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +08001058 "lib_model": [False],
1059 "isolation_level": ["1", "2"],
1060 "test_regression": [True],
1061 "test_psa_api": ["OFF"],
1062 "cmake_build_type": ["Debug"],
1063 "with_otp": ["off"],
1064 "with_bl2": [True],
1065 "with_ns": [True],
1066 "profile": [""],
1067 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001068 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001069 },
1070 "common_params": _common_tfm_builder_cfg,
1071 "invalid": _common_tfm_invalid_configs + []
1072 }
1073
Karl Zhang14573bc2020-06-08 09:23:21 +08001074config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001075 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001076 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001077 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001078 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001079 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001080 "test_regression": [True],
1081 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001082 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001083 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001084 "with_bl2": [True],
1085 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001086 "profile": ["", "profile_small", "profile_medium"],
1087 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001088 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001089 },
1090 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001091 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001092 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001093 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001094 "off", True, True, "", "ON", ""),
Bence Balogh176b78f2022-02-22 13:49:34 +01001095 # AN552_GNUARM_IPC_1_REG_Debug_BL2_NS
1096 ("arm/mps3/an552", "GCC_10_3",
1097 False, "1", True, "OFF", "Debug",
1098 "off", True, True, "", "ON", ""),
1099 # AN552_GNUARM_IPC_1_REG_Release_BL2_NS
1100 ("arm/mps3/an552", "GCC_10_3",
1101 False, "1", True, "OFF", "Release",
1102 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001103 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001104 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001105 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001106 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001107 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001108 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001109 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001110 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001111 "off", True, True, "profile_medium", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001112 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001113 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001114 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001115 # AN521_GCC_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
1116 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001117 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001118 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001119 # MUSCA_B1_GCC_LIB_1_REG_Minsizerel_BL2_NS
1120 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001121 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001122 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001123 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +08001124 ("stm/stm32l562e_dk", "ARMCLANG_6_13",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001125 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001126 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001127 # stm32l562e_dk_GCC_IPC_2_REG_Release_BL2_NS
1128 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001129 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001130 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001131 # stm32l562e_dk_GCC_IPC_3_REG_Release_BL2_NS
1132 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001133 False, "3", 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 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2_NS_FPHARD
1136 ("arm/musca_s1", "GCC_10_3",
Feder Liang567e8c22021-10-26 14:16:21 +08001137 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001138 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001139 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1140 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001141 False, "1", True, "OFF", "Release",
1142 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001143 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001144 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001145 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001146 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001147 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001148 # valid configs supported by TF-M but not needed in per-patch
1149 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001150 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001151 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001152 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001153 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001154 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001155 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001156 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001157 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001158 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001159 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001160 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001161 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001162 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001163 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001164 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001165 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001166 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001167 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001168 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001169 ("*", "GCC_7_3_1", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001170 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001171 ("*", "ARMCLANG_6_13", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001172 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001173 ("*", "ARMCLANG_6_13", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001174 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001175 ]
1176 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001177
Karl Zhang14573bc2020-06-08 09:23:21 +08001178config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001179 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001180 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001181 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001182 "isolation_level": ["1", "2"],
1183 "test_regression": [True],
1184 "test_psa_api": ["OFF"],
1185 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001186 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001187 "with_bl2": [True],
1188 "with_ns": [True, False],
1189 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001190 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001191 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001192 },
1193 "common_params": _common_tfm_builder_cfg,
1194 "invalid": _common_tfm_invalid_configs + []
1195 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001196
1197# Configure build manager to build several combinations
1198config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001199 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001200 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001201 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001202 "isolation_level": ["2"],
1203 "test_regression": [False],
1204 "test_psa_api": ["IPC",
1205 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001206 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001207 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001208 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001209 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001210 "with_bl2": [True],
1211 "with_ns": [True, False],
1212 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001213 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001214 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001215 },
1216 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001217 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001218 }
1219
Karl Zhang14573bc2020-06-08 09:23:21 +08001220config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001221 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001222 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001223 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001224 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001225 "test_regression": [True],
1226 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001227 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001228 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001229 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001230 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001231 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001232 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001233 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001234 },
1235 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001237 }
1238
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001239config_cov_an519 = {"seed_params": {
1240 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001241 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001242 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001243 "isolation_level": ["1", "2", "3"],
1244 "test_regression": [True, False],
1245 "test_psa_api": ["OFF"],
1246 "cmake_build_type": ["Debug", "Release"],
1247 "with_otp": ["off"],
1248 "with_bl2": [True],
1249 "with_ns": [True],
1250 "profile": ["", "profile_small", "profile_medium"],
1251 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001252 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001253 },
1254 "common_params": _common_tfm_builder_cfg,
1255 "invalid": _common_tfm_invalid_configs + []
1256 }
1257
1258config_cov_an521 = {"seed_params": {
1259 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001260 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001261 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001262 "isolation_level": ["1", "2", "3"],
1263 "test_regression": [True, False],
1264 "test_psa_api": ["OFF"],
1265 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1266 "with_otp": ["off"],
1267 "with_bl2": [True],
1268 "with_ns": [True],
1269 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1270 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001271 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001272 },
1273 "common_params": _common_tfm_builder_cfg,
1274 "invalid": _common_tfm_invalid_configs + []
1275 }
1276
Minos Galanakisea421232019-06-20 17:11:28 +01001277# Configruation used for document building
1278config_doxygen = {"common_params": {
1279 "config_type": "tf-m_documents",
1280 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001281 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001282 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001283 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001284 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001285 "cmake --build ./ -- docs"]},
1286 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1287 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001288 r'/(\w+\.(?:html|md|pdf))$',
1289 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001290 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001291 }
1292
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001293# Configurations used in testing
1294
Minos Galanakisea421232019-06-20 17:11:28 +01001295config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001296 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001297 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001298 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001299 "isolation_level": ["1"],
1300 "test_regression": [False],
1301 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001302 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001303 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001304 "with_bl2": [True],
1305 "with_ns": [True],
1306 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001307 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001308 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001309 },
1310 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001311 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001312 }
1313
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001314
1315config_debug_regr = config_debug.copy()
1316config_debug_regr["test_regression"] = [True]
1317
1318
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001319config_debug_PSA_API = {"seed_params": {
1320 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001321 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001322 "lib_model": [True],
1323 "isolation_level": ["1"],
1324 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001325 "test_psa_api": ["CRYPTO",
1326 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001327 "STORAGE",
1328 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001329 "cmake_build_type": ["Debug"],
1330 "with_otp": ["off"],
1331 "with_bl2": [True],
1332 "with_ns": [True],
1333 "profile": [""],
1334 "partition_ps": ["ON"],
1335 "extra_params": [""]
1336 },
1337 "common_params": _common_tfm_builder_cfg,
1338 "invalid": _common_tfm_invalid_configs + []
1339 }
1340
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001341config_debug_PSA_API_nolib = {"seed_params": {
1342 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001343 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001344 "lib_model": [False],
1345 "isolation_level": ["1"],
1346 "test_regression": [False],
1347 "test_psa_api": ["CRYPTO",
1348 "INITIAL_ATTESTATION",
1349 "STORAGE",
1350 "IPC"],
1351 "cmake_build_type": ["Debug"],
1352 "with_otp": ["off"],
1353 "with_bl2": [True],
1354 "with_ns": [True],
1355 "profile": [""],
1356 "partition_ps": ["ON"],
1357 "extra_params": [""]
1358 },
1359 "common_params": _common_tfm_builder_cfg,
1360 "invalid": _common_tfm_invalid_configs + []
1361 }
1362
Dean Birch4c6ad622020-03-13 11:28:03 +00001363# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001364config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001365 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001366 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001367 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001368 "isolation_level": ["1", "2"],
1369 "test_regression": [True, False],
1370 "test_psa_api": ["OFF"],
1371 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001372 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001373 "with_bl2": [True, False],
1374 "with_ns": [True],
1375 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001376 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001377 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001378 },
1379 "common_params": _common_tfm_builder_cfg,
1380 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001381 ("*", "ARMCLANG_6_13", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001382 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001383 ("*", "ARMCLANG_6_13", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001384 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001385 ]
1386 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001387
Xinyu Zhangb708f572020-09-15 11:43:46 +08001388config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001389 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001390 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001391 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001392 "isolation_level": ["1", "2"],
1393 "test_regression": [True],
1394 "test_psa_api": ["OFF"],
1395 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001396 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001397 "with_bl2": [True, False],
1398 "with_ns": [True, False],
1399 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001400 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001401 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001402 },
1403 "common_params": _common_tfm_builder_cfg,
1404 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001405 ("arm/mps2/an521", "GCC_7_3_1", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001406 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001407 ]
1408 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001409
Xinyu Zhang38b76742021-11-11 13:57:56 +08001410config_an547 = {"seed_params": {
1411 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001412 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001413 "lib_model": [False],
1414 "isolation_level": ["1"],
1415 "test_regression": [False],
1416 "test_psa_api": ["OFF"],
1417 "cmake_build_type": ["Debug"],
1418 "with_otp": ["off"],
1419 "with_bl2": [True],
1420 "with_ns": [False],
1421 "profile": [""],
1422 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001423 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001424 },
1425 "common_params": _common_tfm_builder_cfg,
1426 "invalid": _common_tfm_invalid_configs + []
1427 }
1428
1429config_corstone_polaris = {"seed_params": {
1430 "tfm_platform": ["arm/mps3/corstone_polaris"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001431 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001432 "lib_model": [False],
1433 "isolation_level": ["1"],
1434 "test_regression": [False],
1435 "test_psa_api": ["OFF"],
1436 "cmake_build_type": ["Debug"],
1437 "with_otp": ["off"],
1438 "with_bl2": [True],
1439 "with_ns": [False],
1440 "profile": [""],
1441 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001442 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001443 },
1444 "common_params": _common_tfm_builder_cfg,
1445 "invalid": _common_tfm_invalid_configs + []
1446 }
1447
1448config_bl5340 = {"seed_params": {
1449 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001450 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001451 "lib_model": [False],
1452 "isolation_level": ["1"],
1453 "test_regression": [False],
1454 "test_psa_api": ["OFF"],
1455 "cmake_build_type": ["Debug"],
1456 "with_otp": ["off"],
1457 "with_bl2": [True],
1458 "with_ns": [False],
1459 "profile": [""],
1460 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001461 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001462 },
1463 "common_params": _common_tfm_builder_cfg,
1464 "invalid": _common_tfm_invalid_configs + []
1465 }
1466
1467config_nrf5340dk = {"seed_params": {
1468 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001469 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001470 "lib_model": [False],
1471 "isolation_level": ["1"],
1472 "test_regression": [False],
1473 "test_psa_api": ["OFF"],
1474 "cmake_build_type": ["Debug"],
1475 "with_otp": ["off"],
1476 "with_bl2": [True],
1477 "with_ns": [False],
1478 "profile": [""],
1479 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001480 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001481 },
1482 "common_params": _common_tfm_builder_cfg,
1483 "invalid": _common_tfm_invalid_configs + []
1484 }
1485
1486config_nrf9160dk = {"seed_params": {
1487 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001488 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001489 "lib_model": [False],
1490 "isolation_level": ["1"],
1491 "test_regression": [False],
1492 "test_psa_api": ["OFF"],
1493 "cmake_build_type": ["Debug"],
1494 "with_otp": ["off"],
1495 "with_bl2": [True],
1496 "with_ns": [False],
1497 "profile": [""],
1498 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001499 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001500 },
1501 "common_params": _common_tfm_builder_cfg,
1502 "invalid": _common_tfm_invalid_configs + []
1503 }
1504
1505config_m2351 = {"seed_params": {
1506 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001507 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001508 "lib_model": [False],
1509 "isolation_level": ["1"],
1510 "test_regression": [False],
1511 "test_psa_api": ["OFF"],
1512 "cmake_build_type": ["Release"],
1513 "with_otp": ["off"],
1514 "with_bl2": [True],
1515 "with_ns": [False],
1516 "profile": [""],
1517 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001518 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001519 },
1520 "common_params": _common_tfm_builder_cfg,
1521 "invalid": _common_tfm_invalid_configs + []
1522 }
1523
1524config_m2354 = {"seed_params": {
1525 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001526 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001527 "lib_model": [False],
1528 "isolation_level": ["1"],
1529 "test_regression": [False],
1530 "test_psa_api": ["OFF"],
1531 "cmake_build_type": ["Debug"],
1532 "with_otp": ["off"],
1533 "with_bl2": [True],
1534 "with_ns": [False],
1535 "profile": [""],
1536 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001537 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001538 },
1539 "common_params": _common_tfm_builder_cfg,
1540 "invalid": _common_tfm_invalid_configs + []
1541 }
1542
1543config_b_u585i_iot02a = {"seed_params": {
1544 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001545 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001546 "lib_model": [False],
1547 "isolation_level": ["1"],
1548 "test_regression": [False],
1549 "test_psa_api": ["OFF"],
1550 "cmake_build_type": ["Release"],
1551 "with_otp": ["off"],
1552 "with_bl2": [True],
1553 "with_ns": [False],
1554 "profile": [""],
1555 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001556 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001557 },
1558 "common_params": _common_tfm_builder_cfg,
1559 "invalid": _common_tfm_invalid_configs + []
1560 }
1561
1562config_nucleo_l552ze_q = {"seed_params": {
1563 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001564 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001565 "lib_model": [False],
1566 "isolation_level": ["1"],
1567 "test_regression": [False],
1568 "test_psa_api": ["OFF"],
1569 "cmake_build_type": ["Release"],
1570 "with_otp": ["off"],
1571 "with_bl2": [True],
1572 "with_ns": [False],
1573 "profile": [""],
1574 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001575 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001576 },
1577 "common_params": _common_tfm_builder_cfg,
1578 "invalid": _common_tfm_invalid_configs + []
1579 }
1580
Karl Zhangaff558a2020-05-15 14:28:23 +01001581_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001582 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001583 "tfm_test": config_tfm_test,
1584 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001585 "tfm_profile": config_tfm_profile,
David Huda27ae72022-03-28 15:32:19 +08001586 "tfm_profile_s": config_tfm_profile_s,
Karl Zhangaff558a2020-05-15 14:28:23 +01001587 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001588 "tfm_nsce": config_nsce,
1589 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001590 "psa_api": config_PSA_API,
1591 "psa_api_otp": config_PSA_API_OTP,
1592 "psa_ff": config_PSA_FF,
1593 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001594 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001595 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001596 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001597 "tfm_fp": config_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001598 "tfm_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001599
1600 #nightly test group
1601 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001602 "nightly_nsce": config_nsce,
1603 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001604 "nightly_profile": config_nightly_profile,
David Huda27ae72022-03-28 15:32:19 +08001605 "nightly_profile_s": config_tfm_profile_s,
Karl Zhang14573bc2020-06-08 09:23:21 +08001606 "nightly_psa_api": config_nightly_PSA_API,
1607 "nightly_ff": config_nightly_PSA_FF,
1608 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001609 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001610 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001611 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001612 "nightly_fp":config_nightly_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001613 "nightly_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001614
1615 #per patch test group
1616 "pp_test": config_pp_test,
1617 "pp_OTP": config_pp_OTP,
1618 "pp_PSA_API": config_pp_PSA_API,
1619 "pp_psoc64": config_pp_PSoC64,
1620
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001621 #code coverage test group
1622 "coverage_an519": config_cov_an519,
1623 "coverage_an521": config_cov_an521,
1624
Xinyu Zhang38b76742021-11-11 13:57:56 +08001625 #extra build group
1626 "arm_corstone1000": config_corstone1000,
1627 "arm_an547": config_an547,
Bence Balogh176b78f2022-02-22 13:49:34 +01001628 "arm_an552": config_an552,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001629 "arm_corstone_polaris": config_corstone_polaris,
1630 "cypress_psoc64": config_PSOC64,
1631 "laird_bl5340": config_bl5340,
1632 "nordic_nrf5340dk": config_nrf5340dk,
1633 "nordic_nrf9160dk": config_nrf9160dk,
1634 "nuvoton_m2351": config_m2351,
1635 "nuvoton_m2354": config_m2354,
1636 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1637 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1638 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1639 "stm_stm32l562e_dk": config_STM32L562E_DK,
1640
Karl Zhang14573bc2020-06-08 09:23:21 +08001641 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001642 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001643
1644 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001645 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001646 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001647 "an521_psa_api": config_AN521_PSA_API,
1648 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001649 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001650 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001651 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001652 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001653 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001654 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001655 "ipc": config_IPC,
1656 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001657 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001658 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001659 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001660 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001661 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001662
1663 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001664 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001665 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001666
1667if __name__ == '__main__':
1668 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001669
Minos Galanakisea421232019-06-20 17:11:28 +01001670 # Default behavior is to export refference config when called
1671 _dir = os.getcwd()
1672 from utils import save_json
1673 for _cname, _cfg in _builtin_configs.items():
1674 _fname = os.path.join(_dir, _cname + ".json")
1675 print("Exporting config %s" % _fname)
1676 save_json(_fname, _cfg)