blob: aaa4905bb1db1e10ba8aed11fb4cda22e1c74176 [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/*
Xinyu Zhangeb442a12021-02-01 15:16:19 +080011 * Copyright (c) 2018-2021, 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",
33 "toolchain_file",
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",
Feder Liang567e8c22021-10-26 14:16:21 +080044 "fp",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080045 "lazy",
46 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010047
48 # Keys for the templace will come from the combinations of parameters
49 # provided in the seed dictionary.
50
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "config_template": "cmake " + \
52 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010053 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080054 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
56 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
57 "-DTEST_PSA_API=%(test_psa_api)s " + \
58 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
59 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
60 "-DBL2=%(with_bl2)s " + \
61 "-DNS=%(with_ns)s " + \
62 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
63 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
64 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
65 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
66 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080067 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Feder Liang567e8c22021-10-26 14:16:21 +080068 "-DCONFIG_TFM_SPE_FP=%(fp)s " + \
69 "-DCONFIG_TFM_LAZY_STACKING_SPE=%(lazy)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080070 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080071 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010072
Minos Galanakisea421232019-06-20 17:11:28 +010073 # A small subset of string substitution params is allowed in commands.
74 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
75 # _tbm_target_platform_ with the paths set when building
76
Xinyu Zhangb708f572020-09-15 11:43:46 +080077 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010078 r'/(\w+\.(?:axf|bin|hex))$'),
79
80 # ALL commands will be executed for every build.
81 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010082 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080083 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010084 "%(_tbm_build_dir_)s/bin/"
85 "bl2.bin "
86 "-Binary -offset 0xA000000 "
87 "-fill 0xFF 0xA000000 0xA020000 "
88 "%(_tbm_build_dir_)s/bin/"
89 "tfm_s_ns_signed.bin "
90 "-Binary -offset 0xA020000 "
91 "-fill 0xFF 0xA020000 0xA200000 "
92 "-o %(_tbm_build_dir_)s/bin/"
93 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080094 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080095 "%(_tbm_build_dir_)s/bin/"
96 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080097 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000098 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080099 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800100 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000101 "-Binary -offset 0xA020000 "
102 "-fill 0xFF 0xA020000 0xA200000 "
103 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700104 "tfm.hex -Intel")],
105 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
106 "%(_tbm_build_dir_)s/postbuild.sh;"
107 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700108 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
109 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800110 "popd")],
111 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
112 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
113 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
114 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
115 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
116 "python3 ./${FLASH_FILE};"
117 "cd %(_tbm_build_dir_)s/bin;"
118 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
119 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
120 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100121 },
122
123 # (Optional) If set will fail if those artefacts are missing post build
124 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800125 "%(_tbm_build_dir_)s/bin/"
126 "tfm_s.bin",
127 "%(_tbm_build_dir_)s/bin/"
128 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800129 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800130 "%(_tbm_build_dir_)s/bin/"
131 "tfm.hex",
132 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800133 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800134 "%(_tbm_build_dir_)s/bin/"
135 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800136 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800137 "%(_tbm_build_dir_)s/bin/"
138 "tfm.hex",
139 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800140 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800141 "%(_tbm_build_dir_)s/bin/"
142 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100143 }
144}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100145
Xinyu Zhangb708f572020-09-15 11:43:46 +0800146# List of all build configs that are impossible under all circumstances
147_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800148 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800149 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*"),
150 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800151 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800152 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
153 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800154 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
155 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800156 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800157 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
158 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800159 "Release", "off", True, True, "", "ON", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800160 # LVL2 and LVL3 requires IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800161 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
162 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800163 # Regression requires NS
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800164 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800165 # psoc64 requires IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800166 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 # No PSA_ACK with regression
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800168 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
169 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
170 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
171 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800172 # PSA_ACK requires NS
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800173 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*", "*", "*"),
174 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*", "*", "*"),
175 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*", "*", "*"),
176 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800177 # PSA_ACK IPC (FF) does not support LVL3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800178 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800179 # Musca requires BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800180 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
181 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800182 # psoc64 cannot use BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800183 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800184 # psoc64 does not support Debug build type
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800185 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800186 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800187 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800188 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800189 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
190 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
191 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100192 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800193 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
194 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
195 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
199 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
200 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
201 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800202 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800203 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*", "*"),
204 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800205 # PARTITION_PS should be OFF for Profile S
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800206 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800207 # Proile M only support for IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800208 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800209 # Profile M only support for Isolation Level 2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800210 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
211 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800212 # Profile L only support for Isolation Level 3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800213 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
214 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800215 # Profile S does not support IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800216 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800217 # Profile S only supports Isolation Level 1
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800218 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
219 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800220 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800221 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
222 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
223 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
224 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
225 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700226 # stm/stm32l562e_dk uses BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800227 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700228 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800229 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700230 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800231 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700232 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800233 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
234 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700235 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800236 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800237 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800238 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800239 # FP support only for GCC
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800240 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "1", "*", "*"),
241 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "2", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800242 # FP soft only build for lazy stacking disabled
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800243 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "0", "ON", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800244 ]
245
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100246# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100247config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800248 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800249 "toolchain_file": ["toolchain_GNUARM.cmake",
250 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800251 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252 "isolation_level": ["1", "2"],
253 "test_regression": [True, False],
254 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100255 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800256 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800257 "with_bl2": [True, False],
258 "with_ns": [True, False],
259 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800260 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800261 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800262 "lazy": ["OFF"],
263 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100264 },
265 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 }
268
Karl Zhangaff558a2020-05-15 14:28:23 +0100269config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800270 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "toolchain_file": ["toolchain_GNUARM.cmake",
272 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800273 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800274 "isolation_level": ["1", "2"],
275 "test_regression": [True, False],
276 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800278 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "with_bl2": [True, False],
280 "with_ns": [True, False],
281 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800282 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800283 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800284 "lazy": ["OFF"],
285 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100286 },
287 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100289 }
290
Karl Zhangaff558a2020-05-15 14:28:23 +0100291config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800292 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
293 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800294 "toolchain_file": ["toolchain_GNUARM.cmake",
295 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800296 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800297 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "test_regression": [False],
299 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800300 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800301 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100302 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800303 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800305 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800307 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800308 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800309 "lazy": ["OFF"],
310 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100311 },
312 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100314 }
315
Karl Zhangaff558a2020-05-15 14:28:23 +0100316config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800317 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
318 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 "toolchain_file": ["toolchain_GNUARM.cmake",
320 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800321 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800322 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "test_regression": [False],
324 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100325 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800326 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800327 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800328 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800330 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800331 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800332 "lazy": ["OFF"],
333 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100334 },
335 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100337 }
338
Karl Zhangaff558a2020-05-15 14:28:23 +0100339config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800340 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341 "toolchain_file": ["toolchain_GNUARM.cmake",
342 "toolchain_ARMCLANG.cmake"],
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"],
Feder Liang567e8c22021-10-26 14:16:21 +0800355 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800356 "lazy": ["OFF"],
357 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100358 },
359 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100361 }
Minos Galanakisea421232019-06-20 17:11:28 +0100362
Xinyu Zhangb708f572020-09-15 11:43:46 +0800363config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800364 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "toolchain_file": ["toolchain_GNUARM.cmake",
366 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800367 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800368 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "test_regression": [False],
370 "test_psa_api": ["IPC"],
371 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800372 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800374 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800375 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800376 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800377 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800378 "lazy": ["OFF"],
379 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 },
381 "common_params": _common_tfm_builder_cfg,
382 "invalid": _common_tfm_invalid_configs + []
383 }
384
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800385config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800386 "tfm_platform": ["cypress/psoc64"],
387 "toolchain_file": ["toolchain_GNUARM.cmake",
388 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800389 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800390 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800391 "test_regression": [True],
392 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800393 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800394 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800395 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800396 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800397 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800398 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800399 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800400 "lazy": ["OFF"],
401 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800402 },
403 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800405 }
406
Arthur She19c0e1a2021-06-02 11:06:19 -0700407config_STM32L562E_DK = {"seed_params": {
408 "tfm_platform": ["stm/stm32l562e_dk"],
409 "toolchain_file": ["toolchain_GNUARM.cmake",
410 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800411 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700412 "isolation_level": ["1", "2", "3"],
413 "test_regression": [True],
414 "test_psa_api": ["OFF"],
415 "cmake_build_type": ["Release"],
416 "with_otp": ["off"],
417 "with_bl2": [True],
418 "with_ns": [True],
419 "profile": [""],
420 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800421 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800422 "lazy": ["OFF"],
423 "extra_params": ["CRYPTO_OFF", "NS_ATTEST_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700424 },
425 "common_params": _common_tfm_builder_cfg,
426 "invalid": _common_tfm_invalid_configs + []
427 }
428
Arthur Shef3657742021-09-07 14:23:18 -0700429config_LPCXPRESSO55S69 = {"seed_params": {
430 "tfm_platform": ["nxp/lpcxpresso55s69"],
431 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800432 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700433 "isolation_level": ["2"],
434 "test_regression": [True, False],
435 "test_psa_api": ["OFF"],
436 "cmake_build_type": ["Relwithdebinfo"],
437 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800438 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700439 "with_ns": [True],
440 "profile": ["profile_medium"],
441 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800442 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800443 "lazy": ["OFF"],
444 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800445 },
446 "common_params": _common_tfm_builder_cfg,
447 "invalid": _common_tfm_invalid_configs + []
448 }
449
450config_FP = {"seed_params": {
451 "tfm_platform": ["arm/musca_s1"],
452 "toolchain_file": ["toolchain_GNUARM.cmake",
453 "toolchain_ARMCLANG.cmake"],
454 "lib_model": [False],
455 "isolation_level": ["1", "2"],
456 "test_regression": [True],
457 "test_psa_api": ["OFF"],
458 "cmake_build_type": ["Release"],
459 "with_otp": ["off"],
460 "with_bl2": [True],
461 "with_ns": [True],
462 "profile": [""],
463 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800464 "fp": ["0", "1", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800465 "lazy": ["ON", "OFF"],
466 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -0700467 },
468 "common_params": _common_tfm_builder_cfg,
469 "invalid": _common_tfm_invalid_configs + []
470 }
471
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800472config_corstone1000 = {"seed_params": {
473 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800474 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800475 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800476 "isolation_level": ["1"],
477 "test_regression": [False],
478 "test_psa_api": ["OFF"],
479 "cmake_build_type": ["Debug"],
480 "with_otp": ["off"],
481 "with_bl2": [True],
482 "with_ns": [False],
483 "profile": [""],
484 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800485 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800486 "lazy": ["OFF"],
487 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800488 },
489 "common_params": _common_tfm_builder_cfg,
490 "invalid": _common_tfm_invalid_configs + []
491 }
492
Minos Galanakisea421232019-06-20 17:11:28 +0100493config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800494 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800495 "toolchain_file": ["toolchain_GNUARM.cmake",
496 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800497 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800498 "isolation_level": ["1", "2"],
499 "test_regression": [True, False],
500 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100501 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800502 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800503 "with_bl2": [True, False],
504 "with_ns": [True, False],
505 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800506 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800507 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800508 "lazy": ["OFF"],
509 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100510 },
511 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100513 }
514
Xinyu Zhangb708f572020-09-15 11:43:46 +0800515config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800516 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
517 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800518 "toolchain_file": ["toolchain_GNUARM.cmake",
519 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800520 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800521 "isolation_level": ["1", "2"],
522 "test_regression": [True, False],
523 "test_psa_api": ["OFF"],
524 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800525 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800526 "with_bl2": [True, False],
527 "with_ns": [True, False],
528 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800529 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800530 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800531 "lazy": ["OFF"],
532 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 },
Minos Galanakisea421232019-06-20 17:11:28 +0100534 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100536 }
537
Minos Galanakisea421232019-06-20 17:11:28 +0100538config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800539 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
540 "arm/musca_b1/sse_200",
541 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700542 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700543 "stm/stm32l562e_dk",
544 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800545 "toolchain_file": ["toolchain_GNUARM.cmake",
546 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800547 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800548 "isolation_level": ["1", "2"],
549 "test_regression": [True, False],
550 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800551 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800552 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 "with_bl2": [True, False],
554 "with_ns": [True, False],
555 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800556 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800557 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800558 "lazy": ["OFF"],
559 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100560 },
561 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800562 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800563 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800564 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800565 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800566 True, "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800567 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800568 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800569 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800570 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800571 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800572 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800573 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800574 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800575 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800576 }
577
Karl Zhangaff558a2020-05-15 14:28:23 +0100578config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800579 "tfm_platform": ["arm/mps2/an521",
580 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800581 "toolchain_file": ["toolchain_ARMCLANG.cmake",
582 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800583 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800584 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800585 "test_regression": [True, False],
586 "test_psa_api": ["OFF"],
587 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800588 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800589 "with_bl2": [True],
590 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800592 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800593 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800594 "lazy": ["OFF"],
595 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 },
597 "common_params": _common_tfm_builder_cfg,
598 "invalid": _common_tfm_invalid_configs + []
599 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800600
Karl Zhangaff558a2020-05-15 14:28:23 +0100601config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800602 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 "toolchain_file": ["toolchain_ARMCLANG.cmake",
604 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800605 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800606 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800607 "test_regression": [True, False],
608 "test_psa_api": ["OFF"],
609 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800610 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800611 "with_bl2": [True],
612 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800614 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800615 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800616 "lazy": ["OFF"],
617 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 },
619 "common_params": _common_tfm_builder_cfg,
620 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800621 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800622 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800623 ]
624 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100625
Karl Zhang14573bc2020-06-08 09:23:21 +0800626config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800627 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
628 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800629 "toolchain_file": ["toolchain_ARMCLANG.cmake",
630 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800631 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800632 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 "test_regression": [True, False],
634 "test_psa_api": ["OFF"],
635 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800636 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800637 "with_bl2": [True],
638 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800639 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800640 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800641 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800642 "lazy": ["OFF"],
643 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800644 },
645 "common_params": _common_tfm_builder_cfg,
646 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800647 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800648 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800649 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800650 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800651 "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800652 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800653 "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800654 ]
655 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800656
Karl Zhangaff558a2020-05-15 14:28:23 +0100657config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800658 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800659 "toolchain_file": ["toolchain_ARMCLANG.cmake",
660 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800661 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800662 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800663 "test_regression": [True, False],
664 "test_psa_api": ["OFF"],
665 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800666 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800667 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800668 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800669 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800670 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800671 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800672 "lazy": ["OFF"],
673 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 },
675 "common_params": _common_tfm_builder_cfg,
676 "invalid": _common_tfm_invalid_configs + []
677 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100678
Minos Galanakisea421232019-06-20 17:11:28 +0100679config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800680 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 "toolchain_file": ["toolchain_ARMCLANG.cmake",
682 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800683 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "isolation_level": ["1", "2"],
685 "test_regression": [True, False],
686 "test_psa_api": ["OFF"],
687 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800688 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800689 "with_bl2": [True],
690 "with_ns": [True, False],
691 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800692 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800693 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800694 "lazy": ["OFF"],
695 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 },
697 "common_params": _common_tfm_builder_cfg,
698 "invalid": _common_tfm_invalid_configs + []
699 }
Minos Galanakisea421232019-06-20 17:11:28 +0100700
Mark Horvath8d281cd2020-12-07 15:20:26 +0100701config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800702 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100703 "toolchain_file": ["toolchain_ARMCLANG.cmake",
704 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800705 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100706 "isolation_level": ["1"],
707 "test_regression": [False],
708 "test_psa_api": ["OFF"],
709 "cmake_build_type": ["Debug", "Release"],
710 "with_otp": ["off"],
711 "with_bl2": [True],
712 "with_ns": [False],
713 "profile": [""],
714 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800715 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800716 "lazy": ["OFF"],
717 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100718 },
719 "common_params": _common_tfm_builder_cfg,
720 "invalid": _common_tfm_invalid_configs + []
721 }
722
Karl Zhangeffed972020-06-30 15:48:01 +0800723config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800724 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 "toolchain_file": ["toolchain_ARMCLANG.cmake",
726 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800727 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 "isolation_level": ["1", "2"],
729 "test_regression": [True, False],
730 "test_psa_api": ["OFF"],
731 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800732 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 "with_bl2": [True],
734 "with_ns": [True, False],
735 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800736 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800737 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800738 "lazy": ["OFF"],
739 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 },
741 "common_params": _common_tfm_builder_cfg,
742 "invalid": _common_tfm_invalid_configs + []
743 }
Karl Zhangeffed972020-06-30 15:48:01 +0800744
Karl Zhangaff558a2020-05-15 14:28:23 +0100745config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800746 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
747 "arm/musca_b1/sse_200", "arm/musca_s1",
748 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800749 "toolchain_file": ["toolchain_ARMCLANG.cmake",
750 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800751 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800752 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 "test_regression": [True, False],
754 "test_psa_api": ["OFF"],
755 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800756 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "with_bl2": [True, False],
758 "with_ns": [True, False],
759 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800760 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800761 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800762 "lazy": ["OFF"],
763 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800764 },
765 "common_params": _common_tfm_builder_cfg,
766 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800767 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800768 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800769 ]
770 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100771
772# Configure build manager to build several combinations
773config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800774 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
775 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800776 "toolchain_file": ["toolchain_GNUARM.cmake",
777 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800778 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 "isolation_level": ["1", "2"],
780 "test_regression": [False],
781 "test_psa_api": ["IPC",
782 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800783 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800784 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800785 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800786 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 "with_bl2": [True],
788 "with_ns": [True, False],
789 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800790 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800791 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800792 "lazy": ["OFF"],
793 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100794 },
795 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800796 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800797 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800798 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800799 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100800 }
801
Karl Zhangaff558a2020-05-15 14:28:23 +0100802config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800803 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
804 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "toolchain_file": ["toolchain_GNUARM.cmake",
806 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800807 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800808 "isolation_level": ["1", "2"],
809 "test_regression": [False],
810 "test_psa_api": ["IPC"],
811 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800812 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 "with_bl2": [True],
814 "with_ns": [True, False],
815 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800816 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800817 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800818 "lazy": ["OFF"],
819 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100820 },
821 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800822 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800823 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800824 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800825 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100826 }
827
Karl Zhang14573bc2020-06-08 09:23:21 +0800828config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800829 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
830 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800831 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800832 "toolchain_file": ["toolchain_GNUARM.cmake",
833 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800834 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800835 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800836 "test_regression": [True, False],
837 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800838 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800839 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800840 "with_bl2": [True],
841 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800842 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800843 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800844 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800845 "lazy": ["OFF"],
846 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800847 },
848 "common_params": _common_tfm_builder_cfg,
849 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800850 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800851 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800852 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800853 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800854 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800855 True, "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800856 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800857 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800858 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800859 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800860 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800861 "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800862 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800863 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800864 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800865 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800866 ]
867 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800868
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800869config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800870 "tfm_platform": ["arm/mps2/an521"],
871 "toolchain_file": ["toolchain_GNUARM.cmake",
872 "toolchain_ARMCLANG.cmake"],
873 "lib_model": [True, False],
874 "isolation_level": ["1", "2", "3"],
875 "test_regression": [True],
876 "test_psa_api": ["OFF"],
877 "cmake_build_type": ["Debug"],
878 "with_otp": ["off"],
879 "with_bl2": [True],
880 "with_ns": [True],
881 "profile": [""],
882 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800883 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800884 "lazy": ["OFF"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800885 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800886 },
887 "common_params": _common_tfm_builder_cfg,
888 "invalid": _common_tfm_invalid_configs + []
889 }
890
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800891config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800892 "tfm_platform": ["arm/mps2/an521"],
893 "toolchain_file": ["toolchain_GNUARM.cmake",
894 "toolchain_ARMCLANG.cmake"],
895 "lib_model": [False],
896 "isolation_level": ["1"],
897 "test_regression": [True],
898 "test_psa_api": ["OFF"],
899 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
900 "with_otp": ["off"],
901 "with_bl2": [True],
902 "with_ns": [True],
903 "profile": [""],
904 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800905 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800906 "lazy": ["OFF"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800907 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800908 },
909 "common_params": _common_tfm_builder_cfg,
910 "invalid": _common_tfm_invalid_configs + []
911 }
912
Karl Zhang14573bc2020-06-08 09:23:21 +0800913config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800914 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
915 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 "toolchain_file": ["toolchain_ARMCLANG.cmake",
917 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800918 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800919 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800920 "test_regression": [True, False],
921 "test_psa_api": ["OFF"],
922 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800923 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800924 "with_bl2": [True],
925 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800926 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800927 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800928 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800929 "lazy": ["OFF"],
930 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800931 },
932 "common_params": _common_tfm_builder_cfg,
933 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800934 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800935 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800936 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800937 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800938 "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800939 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800940 "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800941 ]
942 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800943
Karl Zhang14573bc2020-06-08 09:23:21 +0800944config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800945 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
946 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800947 "toolchain_file": ["toolchain_GNUARM.cmake",
948 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800949 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800950 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 "test_regression": [False],
952 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800954 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800955 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800956 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800957 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800958 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800959 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800960 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800961 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800962 "lazy": ["OFF"],
963 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800964 },
965 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800966 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800967 }
968
Karl Zhang14573bc2020-06-08 09:23:21 +0800969config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800970 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
971 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800972 "toolchain_file": ["toolchain_GNUARM.cmake",
973 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800974 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800975 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800976 "test_regression": [False],
977 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800978 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800979 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800980 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800981 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800982 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800983 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800984 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800985 "lazy": ["OFF"],
986 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800987 },
988 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800989 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800990 }
991
Karl Zhang14573bc2020-06-08 09:23:21 +0800992config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800993 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800994 "toolchain_file": ["toolchain_GNUARM.cmake",
995 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800996 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800997 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800998 "test_regression": [True],
999 "test_psa_api": ["OFF"],
1000 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001001 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001003 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001004 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001005 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001006 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001007 "lazy": ["OFF"],
1008 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001009 },
1010 "common_params": _common_tfm_builder_cfg,
1011 "invalid": _common_tfm_invalid_configs + []
1012 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001013
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001014config_nightly_psoc64 = {"seed_params": {
1015 "tfm_platform": ["cypress/psoc64"],
1016 "toolchain_file": ["toolchain_GNUARM.cmake",
1017 "toolchain_ARMCLANG.cmake"],
1018 "lib_model": [False],
1019 "isolation_level": ["1", "2"],
1020 "test_regression": [True],
1021 "test_psa_api": ["OFF"],
1022 "cmake_build_type": ["Release"],
1023 "with_otp": ["off"],
1024 "with_bl2": [False],
1025 "with_ns": [True],
1026 "profile": [""],
1027 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001028 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001029 "lazy": ["OFF"],
1030 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001031 },
1032 "common_params": _common_tfm_builder_cfg,
1033 "invalid": _common_tfm_invalid_configs + []
1034 }
1035
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001036config_nightly_STM32L562E_DK = {"seed_params": {
1037 "tfm_platform": ["stm/stm32l562e_dk"],
1038 "toolchain_file": ["toolchain_GNUARM.cmake",
1039 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001040 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001041 "isolation_level": ["1", "2", "3"],
1042 "test_regression": [True],
1043 "test_psa_api": ["OFF"],
1044 "cmake_build_type": ["Release"],
1045 "with_otp": ["off"],
1046 "with_bl2": [True],
1047 "with_ns": [True],
1048 "profile": [""],
1049 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001050 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001051 "lazy": ["OFF"],
1052 "extra_params": ["CRYPTO_OFF", "NS_ATTEST_ON"]
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001053 },
1054 "common_params": _common_tfm_builder_cfg,
1055 "invalid": _common_tfm_invalid_configs + []
1056 }
1057
Arthur Shef3657742021-09-07 14:23:18 -07001058config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1059 "tfm_platform": ["nxp/lpcxpresso55s69"],
1060 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001061 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001062 "isolation_level": ["2"],
1063 "test_regression": [True, False],
1064 "test_psa_api": ["OFF"],
1065 "cmake_build_type": ["Relwithdebinfo"],
1066 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001067 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001068 "with_ns": [True],
1069 "profile": ["profile_medium"],
1070 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001071 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001072 "lazy": ["OFF"],
1073 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001074 },
1075 "common_params": _common_tfm_builder_cfg,
1076 "invalid": _common_tfm_invalid_configs + []
1077 }
1078
1079config_nightly_FP = {"seed_params": {
1080 "tfm_platform": ["arm/musca_s1"],
1081 "toolchain_file": ["toolchain_GNUARM.cmake",
1082 "toolchain_ARMCLANG.cmake"],
1083 "lib_model": [False],
1084 "isolation_level": ["1", "2"],
1085 "test_regression": [True],
1086 "test_psa_api": ["OFF"],
1087 "cmake_build_type": ["Debug"],
1088 "with_otp": ["off"],
1089 "with_bl2": [True],
1090 "with_ns": [True],
1091 "profile": [""],
1092 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001093 "fp": ["0", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001094 "lazy": ["ON", "OFF"],
1095 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -07001096 },
1097 "common_params": _common_tfm_builder_cfg,
1098 "invalid": _common_tfm_invalid_configs + []
1099 }
1100
Karl Zhang14573bc2020-06-08 09:23:21 +08001101config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001102 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001103 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001104 "toolchain_file": ["toolchain_GNUARM.cmake",
1105 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001106 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001107 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001108 "test_regression": [True],
1109 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001110 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001111 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001112 "with_bl2": [True],
1113 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001114 "profile": ["", "profile_small", "profile_medium"],
1115 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001116 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001117 "lazy": ["OFF"],
1118 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001119 },
1120 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001121 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001122 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001123 True, "1", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001124 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001125 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001126 False, "2", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001127 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001128 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001129 False, "3", False, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001130 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001131 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001132 False, "2", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001133 "off", True, True, "profile_medium", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001134 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001135 False, "3", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001136 "off", True, True, "profile_large", "ON", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001137 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001138 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1139 False, "2", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001140 "off", True, True, "profile_medium", "OFF", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001141 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001142 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1143 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001144 "off", True, True, "", "ON", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001145 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001146 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1147 False, "1", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001148 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001149 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001150 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1151 False, "2", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001152 "off", True, True, "", "ON", "0", "OFF", "NS_ATTEST_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001153 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001154 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1155 False, "3", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001156 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_OFF"),
Feder Liang567e8c22021-10-26 14:16:21 +08001157 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_SFP2_SLAZY
1158 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1159 False, "2", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001160 "off", True, True, "", "ON", "2", "ON", ""),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001161 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001162 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001163 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001164 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001165 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001166 # valid configs supported by TF-M but not needed in per-patch
1167 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001168 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001169 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001170 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001171 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001172 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001173 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001174 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001175 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001176 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001177 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001178 "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001179 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001180 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001181 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001182 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001183 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001184 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001185 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001186 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001187 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001188 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001189 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001190 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001191 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001192 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001193 ]
1194 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001195
Karl Zhang14573bc2020-06-08 09:23:21 +08001196config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001197 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001198 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001199 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001200 "isolation_level": ["1", "2"],
1201 "test_regression": [True],
1202 "test_psa_api": ["OFF"],
1203 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001204 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001205 "with_bl2": [True],
1206 "with_ns": [True, False],
1207 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001208 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001209 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001210 "lazy": ["OFF"],
1211 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001212 },
1213 "common_params": _common_tfm_builder_cfg,
1214 "invalid": _common_tfm_invalid_configs + []
1215 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001216
1217# Configure build manager to build several combinations
1218config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001219 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001220 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001221 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001222 "isolation_level": ["2"],
1223 "test_regression": [False],
1224 "test_psa_api": ["IPC",
1225 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001226 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001227 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001228 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001229 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001230 "with_bl2": [True],
1231 "with_ns": [True, False],
1232 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001233 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001234 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001235 "lazy": ["OFF"],
1236 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001237 },
1238 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001239 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001240 }
1241
Karl Zhang14573bc2020-06-08 09:23:21 +08001242config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001243 "tfm_platform": ["cypress/psoc64"],
1244 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001245 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001246 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001247 "test_regression": [True],
1248 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001249 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001250 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001251 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001252 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001253 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001254 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001255 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001256 "lazy": ["OFF"],
1257 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001258 },
1259 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001260 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001261 }
1262
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001263config_cov_an519 = {"seed_params": {
1264 "tfm_platform": ["arm/mps2/an519"],
1265 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001266 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001267 "isolation_level": ["1", "2", "3"],
1268 "test_regression": [True, False],
1269 "test_psa_api": ["OFF"],
1270 "cmake_build_type": ["Debug", "Release"],
1271 "with_otp": ["off"],
1272 "with_bl2": [True],
1273 "with_ns": [True],
1274 "profile": ["", "profile_small", "profile_medium"],
1275 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001276 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001277 "lazy": ["OFF"],
1278 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001279 },
1280 "common_params": _common_tfm_builder_cfg,
1281 "invalid": _common_tfm_invalid_configs + []
1282 }
1283
1284config_cov_an521 = {"seed_params": {
1285 "tfm_platform": ["arm/mps2/an521"],
1286 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001287 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001288 "isolation_level": ["1", "2", "3"],
1289 "test_regression": [True, False],
1290 "test_psa_api": ["OFF"],
1291 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1292 "with_otp": ["off"],
1293 "with_bl2": [True],
1294 "with_ns": [True],
1295 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1296 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001297 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001298 "lazy": ["OFF"],
1299 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001300 },
1301 "common_params": _common_tfm_builder_cfg,
1302 "invalid": _common_tfm_invalid_configs + []
1303 }
1304
Minos Galanakisea421232019-06-20 17:11:28 +01001305# Configruation used for document building
1306config_doxygen = {"common_params": {
1307 "config_type": "tf-m_documents",
1308 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001309 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001310 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001311 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001312 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001313 "cmake --build ./ -- docs"]},
1314 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1315 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001316 r'/(\w+\.(?:html|md|pdf))$',
1317 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001318 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001319 }
1320
Karl Zhangaff558a2020-05-15 14:28:23 +01001321# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001322config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001323 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001324 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001325 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001326 "isolation_level": ["1"],
1327 "test_regression": [False],
1328 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001329 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001330 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001331 "with_bl2": [True],
1332 "with_ns": [True],
1333 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001334 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001335 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001336 "lazy": ["OFF"],
1337 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001338 },
1339 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001340 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001341 }
1342
Dean Birch4c6ad622020-03-13 11:28:03 +00001343# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001344config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001345 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001346 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1347 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001348 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001349 "isolation_level": ["1", "2"],
1350 "test_regression": [True, False],
1351 "test_psa_api": ["OFF"],
1352 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001353 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001354 "with_bl2": [True, False],
1355 "with_ns": [True],
1356 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001357 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001358 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001359 "lazy": ["OFF"],
1360 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001361 },
1362 "common_params": _common_tfm_builder_cfg,
1363 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001364 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001365 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001366 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001367 "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001368 ]
1369 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001370
Xinyu Zhangb708f572020-09-15 11:43:46 +08001371config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001372 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001373 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001374 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001375 "isolation_level": ["1", "2"],
1376 "test_regression": [True],
1377 "test_psa_api": ["OFF"],
1378 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001379 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001380 "with_bl2": [True, False],
1381 "with_ns": [True, False],
1382 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001383 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001384 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001385 "lazy": ["OFF"],
1386 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001387 },
1388 "common_params": _common_tfm_builder_cfg,
1389 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001390 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001391 "*", "*", True, "*", "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001392 ]
1393 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001394
Xinyu Zhang38b76742021-11-11 13:57:56 +08001395config_an547 = {"seed_params": {
1396 "tfm_platform": ["arm/mps3/an547"],
1397 "toolchain_file": ["toolchain_GNUARM.cmake"],
1398 "lib_model": [False],
1399 "isolation_level": ["1"],
1400 "test_regression": [False],
1401 "test_psa_api": ["OFF"],
1402 "cmake_build_type": ["Debug"],
1403 "with_otp": ["off"],
1404 "with_bl2": [True],
1405 "with_ns": [False],
1406 "profile": [""],
1407 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001408 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001409 "lazy": ["OFF"],
1410 "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_corstone_polaris = {"seed_params": {
1417 "tfm_platform": ["arm/mps3/corstone_polaris"],
1418 "toolchain_file": ["toolchain_GNUARM.cmake"],
1419 "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"],
Feder Liang567e8c22021-10-26 14:16:21 +08001429 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001430 "lazy": ["OFF"],
1431 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001432 },
1433 "common_params": _common_tfm_builder_cfg,
1434 "invalid": _common_tfm_invalid_configs + []
1435 }
1436
1437config_bl5340 = {"seed_params": {
1438 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1439 "toolchain_file": ["toolchain_GNUARM.cmake"],
1440 "lib_model": [False],
1441 "isolation_level": ["1"],
1442 "test_regression": [False],
1443 "test_psa_api": ["OFF"],
1444 "cmake_build_type": ["Debug"],
1445 "with_otp": ["off"],
1446 "with_bl2": [True],
1447 "with_ns": [False],
1448 "profile": [""],
1449 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001450 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001451 "lazy": ["OFF"],
1452 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001453 },
1454 "common_params": _common_tfm_builder_cfg,
1455 "invalid": _common_tfm_invalid_configs + []
1456 }
1457
1458config_nrf5340dk = {"seed_params": {
1459 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1460 "toolchain_file": ["toolchain_GNUARM.cmake"],
1461 "lib_model": [False],
1462 "isolation_level": ["1"],
1463 "test_regression": [False],
1464 "test_psa_api": ["OFF"],
1465 "cmake_build_type": ["Debug"],
1466 "with_otp": ["off"],
1467 "with_bl2": [True],
1468 "with_ns": [False],
1469 "profile": [""],
1470 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001471 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001472 "lazy": ["OFF"],
1473 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001474 },
1475 "common_params": _common_tfm_builder_cfg,
1476 "invalid": _common_tfm_invalid_configs + []
1477 }
1478
1479config_nrf9160dk = {"seed_params": {
1480 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1481 "toolchain_file": ["toolchain_GNUARM.cmake"],
1482 "lib_model": [False],
1483 "isolation_level": ["1"],
1484 "test_regression": [False],
1485 "test_psa_api": ["OFF"],
1486 "cmake_build_type": ["Debug"],
1487 "with_otp": ["off"],
1488 "with_bl2": [True],
1489 "with_ns": [False],
1490 "profile": [""],
1491 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001492 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001493 "lazy": ["OFF"],
1494 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001495 },
1496 "common_params": _common_tfm_builder_cfg,
1497 "invalid": _common_tfm_invalid_configs + []
1498 }
1499
1500config_m2351 = {"seed_params": {
1501 "tfm_platform": ["nuvoton/m2351"],
1502 "toolchain_file": ["toolchain_GNUARM.cmake"],
1503 "lib_model": [False],
1504 "isolation_level": ["1"],
1505 "test_regression": [False],
1506 "test_psa_api": ["OFF"],
1507 "cmake_build_type": ["Release"],
1508 "with_otp": ["off"],
1509 "with_bl2": [True],
1510 "with_ns": [False],
1511 "profile": [""],
1512 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001513 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001514 "lazy": ["OFF"],
1515 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001516 },
1517 "common_params": _common_tfm_builder_cfg,
1518 "invalid": _common_tfm_invalid_configs + []
1519 }
1520
1521config_m2354 = {"seed_params": {
1522 "tfm_platform": ["nuvoton/m2354"],
1523 "toolchain_file": ["toolchain_GNUARM.cmake"],
1524 "lib_model": [False],
1525 "isolation_level": ["1"],
1526 "test_regression": [False],
1527 "test_psa_api": ["OFF"],
1528 "cmake_build_type": ["Debug"],
1529 "with_otp": ["off"],
1530 "with_bl2": [True],
1531 "with_ns": [False],
1532 "profile": [""],
1533 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001534 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001535 "lazy": ["OFF"],
1536 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001537 },
1538 "common_params": _common_tfm_builder_cfg,
1539 "invalid": _common_tfm_invalid_configs + []
1540 }
1541
1542config_b_u585i_iot02a = {"seed_params": {
1543 "tfm_platform": ["stm/b_u585i_iot02a"],
1544 "toolchain_file": ["toolchain_GNUARM.cmake"],
1545 "lib_model": [False],
1546 "isolation_level": ["1"],
1547 "test_regression": [False],
1548 "test_psa_api": ["OFF"],
1549 "cmake_build_type": ["Release"],
1550 "with_otp": ["off"],
1551 "with_bl2": [True],
1552 "with_ns": [False],
1553 "profile": [""],
1554 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001555 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001556 "lazy": ["OFF"],
1557 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001558 },
1559 "common_params": _common_tfm_builder_cfg,
1560 "invalid": _common_tfm_invalid_configs + []
1561 }
1562
1563config_nucleo_l552ze_q = {"seed_params": {
1564 "tfm_platform": ["stm/nucleo_l552ze_q"],
1565 "toolchain_file": ["toolchain_GNUARM.cmake"],
1566 "lib_model": [False],
1567 "isolation_level": ["1"],
1568 "test_regression": [False],
1569 "test_psa_api": ["OFF"],
1570 "cmake_build_type": ["Release"],
1571 "with_otp": ["off"],
1572 "with_bl2": [True],
1573 "with_ns": [False],
1574 "profile": [""],
1575 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001576 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001577 "lazy": ["OFF"],
1578 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001579 },
1580 "common_params": _common_tfm_builder_cfg,
1581 "invalid": _common_tfm_invalid_configs + []
1582 }
1583
Karl Zhangaff558a2020-05-15 14:28:23 +01001584_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001585 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001586 "tfm_test": config_tfm_test,
1587 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001588 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001589 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001590 "tfm_nsce": config_nsce,
1591 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001592 "psa_api": config_PSA_API,
1593 "psa_api_otp": config_PSA_API_OTP,
1594 "psa_ff": config_PSA_FF,
1595 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001596 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001597 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001598 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001599 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001600
1601 #nightly test group
1602 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001603 "nightly_nsce": config_nsce,
1604 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001605 "nightly_profile": config_nightly_profile,
1606 "nightly_psa_api": config_nightly_PSA_API,
1607 "nightly_ff": config_nightly_PSA_FF,
1608 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001609 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001610 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001611 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001612 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001613
1614 #per patch test group
1615 "pp_test": config_pp_test,
1616 "pp_OTP": config_pp_OTP,
1617 "pp_PSA_API": config_pp_PSA_API,
1618 "pp_psoc64": config_pp_PSoC64,
1619
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001620 #code coverage test group
1621 "coverage_an519": config_cov_an519,
1622 "coverage_an521": config_cov_an521,
1623
Xinyu Zhang38b76742021-11-11 13:57:56 +08001624 #extra build group
1625 "arm_corstone1000": config_corstone1000,
1626 "arm_an547": config_an547,
1627 "arm_corstone_polaris": config_corstone_polaris,
1628 "cypress_psoc64": config_PSOC64,
1629 "laird_bl5340": config_bl5340,
1630 "nordic_nrf5340dk": config_nrf5340dk,
1631 "nordic_nrf9160dk": config_nrf9160dk,
1632 "nuvoton_m2351": config_m2351,
1633 "nuvoton_m2354": config_m2354,
1634 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1635 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1636 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1637 "stm_stm32l562e_dk": config_STM32L562E_DK,
1638
Karl Zhang14573bc2020-06-08 09:23:21 +08001639 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001640 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001641
1642 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001643 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001644 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001645 "an521_psa_api": config_AN521_PSA_API,
1646 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001647 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001648 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001649 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001650 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001651 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001652 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001653 "ipc": config_IPC,
1654 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001655 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001656 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001657 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001658
1659 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001660 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001661 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001662
1663if __name__ == '__main__':
1664 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001665
Minos Galanakisea421232019-06-20 17:11:28 +01001666 # Default behavior is to export refference config when called
1667 _dir = os.getcwd()
1668 from utils import save_json
1669 for _cname, _cfg in _builtin_configs.items():
1670 _fname = os.path.join(_dir, _cname + ".json")
1671 print("Exporting config %s" % _fname)
1672 save_json(_fname, _cfg)