blob: 6cbadd19bca29d3b90651cdbf9ad1b3564c67204 [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
Karl Zhangaff558a2020-05-15 14:28:23 +0100260config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800261 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800262 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800263 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800264 "isolation_level": ["1", "2"],
265 "test_regression": [True, False],
266 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800268 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "with_bl2": [True, False],
270 "with_ns": [True, False],
271 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800272 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800273 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100274 },
275 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800276 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 }
278
Karl Zhangaff558a2020-05-15 14:28:23 +0100279config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800280 "tfm_platform": ["arm/mps2/an521"],
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_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800299 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
300 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800301 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800302 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800303 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "test_regression": [False],
305 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800307 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100308 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800309 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800311 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800312 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800313 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800314 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100315 },
316 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800317 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100318 }
319
Karl Zhangaff558a2020-05-15 14:28:23 +0100320config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800321 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
322 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800323 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800324 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800325 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "test_regression": [False],
327 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100328 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800329 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800331 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800333 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800334 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100335 },
336 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100338 }
339
Karl Zhangaff558a2020-05-15 14:28:23 +0100340config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800341 "tfm_platform": ["arm/musca_b1/sse_200"],
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": [True, 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": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800348 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100349 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800350 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800352 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800354 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800355 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100356 },
357 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800358 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100359 }
Minos Galanakisea421232019-06-20 17:11:28 +0100360
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800362 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800363 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800364 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800365 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "test_regression": [False],
367 "test_psa_api": ["IPC"],
368 "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": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800375 },
376 "common_params": _common_tfm_builder_cfg,
377 "invalid": _common_tfm_invalid_configs + []
378 }
379
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800380config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800381 "tfm_platform": ["cypress/psoc64"],
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 Zhangbbc04132021-11-02 16:02:18 +0800384 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 "test_regression": [True],
386 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800387 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800388 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800389 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +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": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800394 },
395 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800396 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800397 }
398
Arthur She19c0e1a2021-06-02 11:06:19 -0700399config_STM32L562E_DK = {"seed_params": {
400 "tfm_platform": ["stm/stm32l562e_dk"],
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": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700403 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800404 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700405 "test_psa_api": ["OFF"],
406 "cmake_build_type": ["Release"],
407 "with_otp": ["off"],
408 "with_bl2": [True],
409 "with_ns": [True],
410 "profile": [""],
411 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800412 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700413 },
414 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800415 "invalid": _common_tfm_invalid_configs + [
416 # all other tests are off when CRYPTO is ON
417 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800418 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800419 # all other tests are ON when CRYPTO is OFF
420 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800421 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800422 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700423 }
424
Arthur Shef3657742021-09-07 14:23:18 -0700425config_LPCXPRESSO55S69 = {"seed_params": {
426 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800427 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800428 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700429 "isolation_level": ["2"],
430 "test_regression": [True, False],
431 "test_psa_api": ["OFF"],
432 "cmake_build_type": ["Relwithdebinfo"],
433 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800434 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700435 "with_ns": [True],
436 "profile": ["profile_medium"],
437 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800438 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800439 },
440 "common_params": _common_tfm_builder_cfg,
441 "invalid": _common_tfm_invalid_configs + []
442 }
443
444config_FP = {"seed_params": {
445 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800446 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +0800447 "lib_model": [False],
448 "isolation_level": ["1", "2"],
449 "test_regression": [True],
450 "test_psa_api": ["OFF"],
451 "cmake_build_type": ["Release"],
452 "with_otp": ["off"],
453 "with_bl2": [True],
454 "with_ns": [True],
455 "profile": [""],
456 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800457 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700458 },
459 "common_params": _common_tfm_builder_cfg,
460 "invalid": _common_tfm_invalid_configs + []
461 }
462
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800463config_corstone1000 = {"seed_params": {
464 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800465 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800466 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800467 "isolation_level": ["1"],
468 "test_regression": [False],
469 "test_psa_api": ["OFF"],
470 "cmake_build_type": ["Debug"],
471 "with_otp": ["off"],
472 "with_bl2": [True],
473 "with_ns": [False],
474 "profile": [""],
475 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800476 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800477 },
478 "common_params": _common_tfm_builder_cfg,
479 "invalid": _common_tfm_invalid_configs + []
480 }
481
Minos Galanakisea421232019-06-20 17:11:28 +0100482config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800483 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800484 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800485 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800486 "isolation_level": ["1", "2"],
487 "test_regression": [True, False],
488 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100489 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800490 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800491 "with_bl2": [True, False],
492 "with_ns": [True, False],
493 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800494 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800495 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100496 },
497 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800498 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100499 }
500
Xinyu Zhangb708f572020-09-15 11:43:46 +0800501config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800502 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
503 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800504 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800505 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 "isolation_level": ["1", "2"],
507 "test_regression": [True, False],
508 "test_psa_api": ["OFF"],
509 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800510 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "with_bl2": [True, False],
512 "with_ns": [True, False],
513 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800514 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800515 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800516 },
Minos Galanakisea421232019-06-20 17:11:28 +0100517 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800518 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100519 }
520
Minos Galanakisea421232019-06-20 17:11:28 +0100521config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800522 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
523 "arm/musca_b1/sse_200",
524 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700525 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700526 "stm/stm32l562e_dk",
527 "nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800528 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800529 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800530 "isolation_level": ["1", "2"],
531 "test_regression": [True, False],
532 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800533 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800534 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "with_bl2": [True, False],
536 "with_ns": [True, False],
537 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800538 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800539 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100540 },
541 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800543 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800544 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800545 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800546 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800547 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800548 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800549 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800550 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800551 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800552 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800553 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800554 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800556 }
557
Karl Zhangaff558a2020-05-15 14:28:23 +0100558config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800559 "tfm_platform": ["arm/mps2/an521",
560 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800561 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800562 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800563 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 "test_regression": [True, False],
565 "test_psa_api": ["OFF"],
566 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800567 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800568 "with_bl2": [True],
569 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800570 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800571 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800572 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800573 },
574 "common_params": _common_tfm_builder_cfg,
575 "invalid": _common_tfm_invalid_configs + []
576 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800577
Karl Zhangaff558a2020-05-15 14:28:23 +0100578config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800579 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800580 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800581 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800582 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 "test_regression": [True, False],
584 "test_psa_api": ["OFF"],
585 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800586 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800587 "with_bl2": [True],
588 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800590 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800591 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 },
593 "common_params": _common_tfm_builder_cfg,
594 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800595 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800596 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 ]
598 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100599
Karl Zhang14573bc2020-06-08 09:23:21 +0800600config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800601 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
602 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800603 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800604 "lib_model": [False],
605 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800606 "test_regression": [True, False],
607 "test_psa_api": ["OFF"],
608 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800609 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800610 "with_bl2": [True],
611 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800612 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800613 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800614 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800615 },
616 "common_params": _common_tfm_builder_cfg,
617 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800618 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800619 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800620 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800621 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800622 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800623 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800624 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800625 ]
626 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800627
David Huda27ae72022-03-28 15:32:19 +0800628config_tfm_profile_s = {"seed_params": {
629 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
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": [True],
632 "isolation_level": ["1"],
633 "test_regression": [True, False],
634 "test_psa_api": ["OFF"],
635 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
636 "with_otp": ["OFF"],
637 "with_bl2": [True],
638 "with_ns": [True],
639 "profile": ["profile_small"],
640 "partition_ps": ["OFF"],
641 "extra_params": [""]
642 },
643 "common_params": _common_tfm_builder_cfg,
644 "valid": [
645 # Profile Small also supports SFN model
646 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "*",
647 "*", "SFN_ENABLE")
648 ],
649 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800650 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
David Huda27ae72022-03-28 15:32:19 +0800651 "*", "Minsizerel", "*", "*", "*", "*", "*", "*")
652 ]
653 }
654
Karl Zhangaff558a2020-05-15 14:28:23 +0100655config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800656 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800657 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800658 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800659 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800660 "test_regression": [True, False],
661 "test_psa_api": ["OFF"],
662 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800663 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800664 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800665 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800666 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800667 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800668 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800669 },
670 "common_params": _common_tfm_builder_cfg,
671 "invalid": _common_tfm_invalid_configs + []
672 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100673
Minos Galanakisea421232019-06-20 17:11:28 +0100674config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800675 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800676 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800677 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "isolation_level": ["1", "2"],
679 "test_regression": [True, False],
680 "test_psa_api": ["OFF"],
681 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800682 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800683 "with_bl2": [True],
684 "with_ns": [True, False],
685 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800686 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800687 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 },
689 "common_params": _common_tfm_builder_cfg,
690 "invalid": _common_tfm_invalid_configs + []
691 }
Minos Galanakisea421232019-06-20 17:11:28 +0100692
Mark Horvath8d281cd2020-12-07 15:20:26 +0100693config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800694 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800695 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800696 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100697 "isolation_level": ["1"],
698 "test_regression": [False],
699 "test_psa_api": ["OFF"],
700 "cmake_build_type": ["Debug", "Release"],
701 "with_otp": ["off"],
702 "with_bl2": [True],
703 "with_ns": [False],
704 "profile": [""],
705 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800706 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100707 },
708 "common_params": _common_tfm_builder_cfg,
709 "invalid": _common_tfm_invalid_configs + []
710 }
711
Karl Zhangeffed972020-06-30 15:48:01 +0800712config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800713 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800714 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800715 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800716 "isolation_level": ["1", "2"],
717 "test_regression": [True, False],
718 "test_psa_api": ["OFF"],
719 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800720 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800721 "with_bl2": [True],
722 "with_ns": [True, False],
723 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800724 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800725 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800726 },
727 "common_params": _common_tfm_builder_cfg,
728 "invalid": _common_tfm_invalid_configs + []
729 }
Karl Zhangeffed972020-06-30 15:48:01 +0800730
Karl Zhangaff558a2020-05-15 14:28:23 +0100731config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800732 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
733 "arm/musca_b1/sse_200", "arm/musca_s1",
734 "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800735 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800736 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800737 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 "test_regression": [True, False],
739 "test_psa_api": ["OFF"],
740 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800741 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 "with_bl2": [True, False],
743 "with_ns": [True, False],
744 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800745 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800746 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 },
748 "common_params": _common_tfm_builder_cfg,
749 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800750 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800751 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 ]
753 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100754
755# Configure build manager to build several combinations
756config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800757 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
758 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800759 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800760 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 "isolation_level": ["1", "2"],
762 "test_regression": [False],
763 "test_psa_api": ["IPC",
764 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800766 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800767 "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],
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": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100774 },
775 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800776 "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 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100780 }
781
Karl Zhangaff558a2020-05-15 14:28:23 +0100782config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800783 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
784 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800785 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800786 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 "isolation_level": ["1", "2"],
788 "test_regression": [False],
789 "test_psa_api": ["IPC"],
790 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800791 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 "with_bl2": [True],
793 "with_ns": [True, False],
794 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800795 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800796 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100797 },
798 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800799 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800800 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800801 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100803 }
804
Karl Zhang14573bc2020-06-08 09:23:21 +0800805config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800806 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
807 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800808 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800809 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800810 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800811 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 "test_regression": [True, False],
813 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800814 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800815 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800816 "with_bl2": [True],
817 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800818 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800819 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800820 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800821 },
822 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800823 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800824 # MUSCA_B1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
825 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800826 False, "1", True, "OFF", "Release",
827 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhang433771e2022-04-01 16:49:17 +0800828 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
829 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800830 False, "1", True, "OFF", "Release",
831 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
832 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800834 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800835 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800836 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800837 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800838 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800839 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800840 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800841 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800842 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800843 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800844 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800845 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800846 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800847 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800848 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800849 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 ]
851 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800852
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800853config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800854 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800855 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800856 "lib_model": [True, False],
857 "isolation_level": ["1", "2", "3"],
858 "test_regression": [True],
859 "test_psa_api": ["OFF"],
860 "cmake_build_type": ["Debug"],
861 "with_otp": ["off"],
862 "with_bl2": [True],
863 "with_ns": [True],
864 "profile": [""],
865 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800866 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800867 },
868 "common_params": _common_tfm_builder_cfg,
869 "invalid": _common_tfm_invalid_configs + []
870 }
871
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800872config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800873 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800874 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800875 "lib_model": [False],
876 "isolation_level": ["1"],
877 "test_regression": [True],
878 "test_psa_api": ["OFF"],
879 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
880 "with_otp": ["off"],
881 "with_bl2": [True],
882 "with_ns": [True],
883 "profile": [""],
884 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800885 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800886 },
887 "common_params": _common_tfm_builder_cfg,
888 "invalid": _common_tfm_invalid_configs + []
889 }
890
Karl Zhang14573bc2020-06-08 09:23:21 +0800891config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800892 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
893 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800894 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800895 "lib_model": [False],
896 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800897 "test_regression": [True, False],
898 "test_psa_api": ["OFF"],
899 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800900 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800901 "with_bl2": [True],
902 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800903 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800904 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800905 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800906 },
907 "common_params": _common_tfm_builder_cfg,
908 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800909 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800910 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800911 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800912 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800913 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800914 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800915 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 ]
917 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800918
Karl Zhang14573bc2020-06-08 09:23:21 +0800919config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800920 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
921 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800922 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800923 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800924 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800925 "test_regression": [False],
926 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800927 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800928 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800929 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800930 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800931 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800932 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800933 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800934 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800935 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800936 },
937 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800938 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800939 }
940
Karl Zhang14573bc2020-06-08 09:23:21 +0800941config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800942 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
943 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800944 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800945 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800946 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800947 "test_regression": [False],
948 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800949 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800950 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800952 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800954 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800955 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800956 },
957 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800959 }
960
Karl Zhang14573bc2020-06-08 09:23:21 +0800961config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800962 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800963 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800964 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800965 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800966 "test_regression": [True],
967 "test_psa_api": ["OFF"],
968 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800969 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800970 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800971 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800972 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800973 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800974 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800975 },
976 "common_params": _common_tfm_builder_cfg,
977 "invalid": _common_tfm_invalid_configs + []
978 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800979
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800980config_nightly_psoc64 = {"seed_params": {
981 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800982 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800983 "lib_model": [False],
984 "isolation_level": ["1", "2"],
985 "test_regression": [True],
986 "test_psa_api": ["OFF"],
987 "cmake_build_type": ["Release"],
988 "with_otp": ["off"],
989 "with_bl2": [False],
990 "with_ns": [True],
991 "profile": [""],
992 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800993 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800994 },
995 "common_params": _common_tfm_builder_cfg,
996 "invalid": _common_tfm_invalid_configs + []
997 }
998
Arthur Shef3657742021-09-07 14:23:18 -0700999config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1000 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001001 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001002 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001003 "isolation_level": ["2"],
1004 "test_regression": [True, False],
1005 "test_psa_api": ["OFF"],
1006 "cmake_build_type": ["Relwithdebinfo"],
1007 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001008 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001009 "with_ns": [True],
1010 "profile": ["profile_medium"],
1011 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001012 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001013 },
1014 "common_params": _common_tfm_builder_cfg,
1015 "invalid": _common_tfm_invalid_configs + []
1016 }
1017
1018config_nightly_FP = {"seed_params": {
1019 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001020 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +08001021 "lib_model": [False],
1022 "isolation_level": ["1", "2"],
1023 "test_regression": [True],
1024 "test_psa_api": ["OFF"],
1025 "cmake_build_type": ["Debug"],
1026 "with_otp": ["off"],
1027 "with_bl2": [True],
1028 "with_ns": [True],
1029 "profile": [""],
1030 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001031 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001032 },
1033 "common_params": _common_tfm_builder_cfg,
1034 "invalid": _common_tfm_invalid_configs + []
1035 }
1036
Karl Zhang14573bc2020-06-08 09:23:21 +08001037config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001038 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001039 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001040 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001041 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001042 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001043 "test_regression": [True],
1044 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001045 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001046 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001047 "with_bl2": [True],
1048 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001049 "profile": ["", "profile_small", "profile_medium"],
1050 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001051 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001052 },
1053 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001054 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001055 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001056 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001057 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001058 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001059 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001060 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001061 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001062 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001063 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001064 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001065 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001066 "off", True, True, "profile_medium", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001067 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001068 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001069 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001070 # AN521_GCC_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
1071 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001072 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001073 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001074 # MUSCA_B1_GCC_LIB_1_REG_Minsizerel_BL2_NS
1075 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001076 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001077 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001078 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +08001079 ("stm/stm32l562e_dk", "ARMCLANG_6_13",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001080 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001081 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001082 # stm32l562e_dk_GCC_IPC_2_REG_Release_BL2_NS
1083 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001084 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001085 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001086 # stm32l562e_dk_GCC_IPC_3_REG_Release_BL2_NS
1087 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001088 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001089 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001090 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2_NS_FPHARD
1091 ("arm/musca_s1", "GCC_10_3",
Feder Liang567e8c22021-10-26 14:16:21 +08001092 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001093 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001094 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1095 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001096 False, "1", True, "OFF", "Release",
1097 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001098 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001099 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001100 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001101 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001102 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001103 # valid configs supported by TF-M but not needed in per-patch
1104 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001105 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001106 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001107 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001108 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001109 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001110 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001111 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001112 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001113 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001114 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001115 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001116 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001117 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001118 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001119 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001120 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001121 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001122 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001123 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001124 ("*", "GCC_7_3_1", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001125 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001126 ("*", "ARMCLANG_6_13", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001127 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001128 ("*", "ARMCLANG_6_13", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001129 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001130 ]
1131 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001132
Karl Zhang14573bc2020-06-08 09:23:21 +08001133config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001134 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001135 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001136 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001137 "isolation_level": ["1", "2"],
1138 "test_regression": [True],
1139 "test_psa_api": ["OFF"],
1140 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001141 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001142 "with_bl2": [True],
1143 "with_ns": [True, False],
1144 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001145 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001146 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001147 },
1148 "common_params": _common_tfm_builder_cfg,
1149 "invalid": _common_tfm_invalid_configs + []
1150 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001151
1152# Configure build manager to build several combinations
1153config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001154 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001155 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001156 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001157 "isolation_level": ["2"],
1158 "test_regression": [False],
1159 "test_psa_api": ["IPC",
1160 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001161 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001162 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001163 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001164 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001165 "with_bl2": [True],
1166 "with_ns": [True, False],
1167 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001168 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001169 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001170 },
1171 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001172 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001173 }
1174
Karl Zhang14573bc2020-06-08 09:23:21 +08001175config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001176 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001177 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001178 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001179 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001180 "test_regression": [True],
1181 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001182 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001183 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001184 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001185 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001186 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001187 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001188 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001189 },
1190 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001191 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001192 }
1193
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001194config_cov_an519 = {"seed_params": {
1195 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001196 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001197 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001198 "isolation_level": ["1", "2", "3"],
1199 "test_regression": [True, False],
1200 "test_psa_api": ["OFF"],
1201 "cmake_build_type": ["Debug", "Release"],
1202 "with_otp": ["off"],
1203 "with_bl2": [True],
1204 "with_ns": [True],
1205 "profile": ["", "profile_small", "profile_medium"],
1206 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001207 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001208 },
1209 "common_params": _common_tfm_builder_cfg,
1210 "invalid": _common_tfm_invalid_configs + []
1211 }
1212
1213config_cov_an521 = {"seed_params": {
1214 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001215 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001216 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001217 "isolation_level": ["1", "2", "3"],
1218 "test_regression": [True, False],
1219 "test_psa_api": ["OFF"],
1220 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1221 "with_otp": ["off"],
1222 "with_bl2": [True],
1223 "with_ns": [True],
1224 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1225 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001226 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001227 },
1228 "common_params": _common_tfm_builder_cfg,
1229 "invalid": _common_tfm_invalid_configs + []
1230 }
1231
Minos Galanakisea421232019-06-20 17:11:28 +01001232# Configruation used for document building
1233config_doxygen = {"common_params": {
1234 "config_type": "tf-m_documents",
1235 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001236 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001237 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001238 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001239 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001240 "cmake --build ./ -- docs"]},
1241 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1242 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001243 r'/(\w+\.(?:html|md|pdf))$',
1244 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001245 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001246 }
1247
Karl Zhangaff558a2020-05-15 14:28:23 +01001248# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001249config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001250 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001251 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001252 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001253 "isolation_level": ["1"],
1254 "test_regression": [False],
1255 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001256 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001257 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001258 "with_bl2": [True],
1259 "with_ns": [True],
1260 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001261 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001262 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001263 },
1264 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001265 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001266 }
1267
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001268config_debug_PSA_API = {"seed_params": {
1269 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001270 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001271 "lib_model": [True],
1272 "isolation_level": ["1"],
1273 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001274 "test_psa_api": ["CRYPTO",
1275 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001276 "STORAGE",
1277 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001278 "cmake_build_type": ["Debug"],
1279 "with_otp": ["off"],
1280 "with_bl2": [True],
1281 "with_ns": [True],
1282 "profile": [""],
1283 "partition_ps": ["ON"],
1284 "extra_params": [""]
1285 },
1286 "common_params": _common_tfm_builder_cfg,
1287 "invalid": _common_tfm_invalid_configs + []
1288 }
1289
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001290config_debug_PSA_API_nolib = {"seed_params": {
1291 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001292 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001293 "lib_model": [False],
1294 "isolation_level": ["1"],
1295 "test_regression": [False],
1296 "test_psa_api": ["CRYPTO",
1297 "INITIAL_ATTESTATION",
1298 "STORAGE",
1299 "IPC"],
1300 "cmake_build_type": ["Debug"],
1301 "with_otp": ["off"],
1302 "with_bl2": [True],
1303 "with_ns": [True],
1304 "profile": [""],
1305 "partition_ps": ["ON"],
1306 "extra_params": [""]
1307 },
1308 "common_params": _common_tfm_builder_cfg,
1309 "invalid": _common_tfm_invalid_configs + []
1310 }
1311
Dean Birch4c6ad622020-03-13 11:28:03 +00001312# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001313config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001314 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001315 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001316 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001317 "isolation_level": ["1", "2"],
1318 "test_regression": [True, False],
1319 "test_psa_api": ["OFF"],
1320 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001321 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001322 "with_bl2": [True, False],
1323 "with_ns": [True],
1324 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001325 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001326 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001327 },
1328 "common_params": _common_tfm_builder_cfg,
1329 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001330 ("*", "ARMCLANG_6_13", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001331 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001332 ("*", "ARMCLANG_6_13", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001333 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001334 ]
1335 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001336
Xinyu Zhangb708f572020-09-15 11:43:46 +08001337config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001338 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001339 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001340 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001341 "isolation_level": ["1", "2"],
1342 "test_regression": [True],
1343 "test_psa_api": ["OFF"],
1344 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001345 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001346 "with_bl2": [True, False],
1347 "with_ns": [True, False],
1348 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001349 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001350 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001351 },
1352 "common_params": _common_tfm_builder_cfg,
1353 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001354 ("arm/mps2/an521", "GCC_7_3_1", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001355 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001356 ]
1357 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001358
Xinyu Zhang38b76742021-11-11 13:57:56 +08001359config_an547 = {"seed_params": {
1360 "tfm_platform": ["arm/mps3/an547"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001361 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001362 "lib_model": [False],
1363 "isolation_level": ["1"],
1364 "test_regression": [False],
1365 "test_psa_api": ["OFF"],
1366 "cmake_build_type": ["Debug"],
1367 "with_otp": ["off"],
1368 "with_bl2": [True],
1369 "with_ns": [False],
1370 "profile": [""],
1371 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001372 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001373 },
1374 "common_params": _common_tfm_builder_cfg,
1375 "invalid": _common_tfm_invalid_configs + []
1376 }
1377
1378config_corstone_polaris = {"seed_params": {
1379 "tfm_platform": ["arm/mps3/corstone_polaris"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001380 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001381 "lib_model": [False],
1382 "isolation_level": ["1"],
1383 "test_regression": [False],
1384 "test_psa_api": ["OFF"],
1385 "cmake_build_type": ["Debug"],
1386 "with_otp": ["off"],
1387 "with_bl2": [True],
1388 "with_ns": [False],
1389 "profile": [""],
1390 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001391 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001392 },
1393 "common_params": _common_tfm_builder_cfg,
1394 "invalid": _common_tfm_invalid_configs + []
1395 }
1396
1397config_bl5340 = {"seed_params": {
1398 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001399 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001400 "lib_model": [False],
1401 "isolation_level": ["1"],
1402 "test_regression": [False],
1403 "test_psa_api": ["OFF"],
1404 "cmake_build_type": ["Debug"],
1405 "with_otp": ["off"],
1406 "with_bl2": [True],
1407 "with_ns": [False],
1408 "profile": [""],
1409 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001410 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001411 },
1412 "common_params": _common_tfm_builder_cfg,
1413 "invalid": _common_tfm_invalid_configs + []
1414 }
1415
1416config_nrf5340dk = {"seed_params": {
1417 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001418 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001419 "lib_model": [False],
1420 "isolation_level": ["1"],
1421 "test_regression": [False],
1422 "test_psa_api": ["OFF"],
1423 "cmake_build_type": ["Debug"],
1424 "with_otp": ["off"],
1425 "with_bl2": [True],
1426 "with_ns": [False],
1427 "profile": [""],
1428 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001429 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001430 },
1431 "common_params": _common_tfm_builder_cfg,
1432 "invalid": _common_tfm_invalid_configs + []
1433 }
1434
1435config_nrf9160dk = {"seed_params": {
1436 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001437 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001438 "lib_model": [False],
1439 "isolation_level": ["1"],
1440 "test_regression": [False],
1441 "test_psa_api": ["OFF"],
1442 "cmake_build_type": ["Debug"],
1443 "with_otp": ["off"],
1444 "with_bl2": [True],
1445 "with_ns": [False],
1446 "profile": [""],
1447 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001448 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001449 },
1450 "common_params": _common_tfm_builder_cfg,
1451 "invalid": _common_tfm_invalid_configs + []
1452 }
1453
1454config_m2351 = {"seed_params": {
1455 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001456 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001457 "lib_model": [False],
1458 "isolation_level": ["1"],
1459 "test_regression": [False],
1460 "test_psa_api": ["OFF"],
1461 "cmake_build_type": ["Release"],
1462 "with_otp": ["off"],
1463 "with_bl2": [True],
1464 "with_ns": [False],
1465 "profile": [""],
1466 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001467 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001468 },
1469 "common_params": _common_tfm_builder_cfg,
1470 "invalid": _common_tfm_invalid_configs + []
1471 }
1472
1473config_m2354 = {"seed_params": {
1474 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001475 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001476 "lib_model": [False],
1477 "isolation_level": ["1"],
1478 "test_regression": [False],
1479 "test_psa_api": ["OFF"],
1480 "cmake_build_type": ["Debug"],
1481 "with_otp": ["off"],
1482 "with_bl2": [True],
1483 "with_ns": [False],
1484 "profile": [""],
1485 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001486 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001487 },
1488 "common_params": _common_tfm_builder_cfg,
1489 "invalid": _common_tfm_invalid_configs + []
1490 }
1491
1492config_b_u585i_iot02a = {"seed_params": {
1493 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001494 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001495 "lib_model": [False],
1496 "isolation_level": ["1"],
1497 "test_regression": [False],
1498 "test_psa_api": ["OFF"],
1499 "cmake_build_type": ["Release"],
1500 "with_otp": ["off"],
1501 "with_bl2": [True],
1502 "with_ns": [False],
1503 "profile": [""],
1504 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001505 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001506 },
1507 "common_params": _common_tfm_builder_cfg,
1508 "invalid": _common_tfm_invalid_configs + []
1509 }
1510
1511config_nucleo_l552ze_q = {"seed_params": {
1512 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001513 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001514 "lib_model": [False],
1515 "isolation_level": ["1"],
1516 "test_regression": [False],
1517 "test_psa_api": ["OFF"],
1518 "cmake_build_type": ["Release"],
1519 "with_otp": ["off"],
1520 "with_bl2": [True],
1521 "with_ns": [False],
1522 "profile": [""],
1523 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001524 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001525 },
1526 "common_params": _common_tfm_builder_cfg,
1527 "invalid": _common_tfm_invalid_configs + []
1528 }
1529
Karl Zhangaff558a2020-05-15 14:28:23 +01001530_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001531 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001532 "tfm_test": config_tfm_test,
1533 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001534 "tfm_profile": config_tfm_profile,
David Huda27ae72022-03-28 15:32:19 +08001535 "tfm_profile_s": config_tfm_profile_s,
Karl Zhangaff558a2020-05-15 14:28:23 +01001536 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001537 "tfm_nsce": config_nsce,
1538 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001539 "psa_api": config_PSA_API,
1540 "psa_api_otp": config_PSA_API_OTP,
1541 "psa_ff": config_PSA_FF,
1542 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001543 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001544 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001545 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001546 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001547
1548 #nightly test group
1549 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001550 "nightly_nsce": config_nsce,
1551 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001552 "nightly_profile": config_nightly_profile,
David Huda27ae72022-03-28 15:32:19 +08001553 "nightly_profile_s": config_tfm_profile_s,
Karl Zhang14573bc2020-06-08 09:23:21 +08001554 "nightly_psa_api": config_nightly_PSA_API,
1555 "nightly_ff": config_nightly_PSA_FF,
1556 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001557 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001558 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001559 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001560 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001561
1562 #per patch test group
1563 "pp_test": config_pp_test,
1564 "pp_OTP": config_pp_OTP,
1565 "pp_PSA_API": config_pp_PSA_API,
1566 "pp_psoc64": config_pp_PSoC64,
1567
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001568 #code coverage test group
1569 "coverage_an519": config_cov_an519,
1570 "coverage_an521": config_cov_an521,
1571
Xinyu Zhang38b76742021-11-11 13:57:56 +08001572 #extra build group
1573 "arm_corstone1000": config_corstone1000,
1574 "arm_an547": config_an547,
1575 "arm_corstone_polaris": config_corstone_polaris,
1576 "cypress_psoc64": config_PSOC64,
1577 "laird_bl5340": config_bl5340,
1578 "nordic_nrf5340dk": config_nrf5340dk,
1579 "nordic_nrf9160dk": config_nrf9160dk,
1580 "nuvoton_m2351": config_m2351,
1581 "nuvoton_m2354": config_m2354,
1582 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1583 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1584 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1585 "stm_stm32l562e_dk": config_STM32L562E_DK,
1586
Karl Zhang14573bc2020-06-08 09:23:21 +08001587 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001588 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001589
1590 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001591 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001592 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001593 "an521_psa_api": config_AN521_PSA_API,
1594 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001595 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001596 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001597 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001598 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001599 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001600 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001601 "ipc": config_IPC,
1602 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001603 "debug": config_debug,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001604 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001605 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001606 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001607
1608 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001609 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001610 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001611
1612if __name__ == '__main__':
1613 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001614
Minos Galanakisea421232019-06-20 17:11:28 +01001615 # Default behavior is to export refference config when called
1616 _dir = os.getcwd()
1617 from utils import save_json
1618 for _cname, _cfg in _builtin_configs.items():
1619 _fname = os.path.join(_dir, _cname + ".json")
1620 print("Exporting config %s" % _fname)
1621 save_json(_fname, _cfg)