blob: 2b3fe486f6fb78023dd91ad039b808ac8c1ad1d2 [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",
Xinyu Zhanga1088e22021-11-11 18:02:45 +080044 "nsce",
Feder Liang567e8c22021-10-26 14:16:21 +080045 "mmio",
46 "fp",
47 "lazy"],
Minos Galanakisea421232019-06-20 17:11:28 +010048
49 # Keys for the templace will come from the combinations of parameters
50 # provided in the seed dictionary.
51
Xinyu Zhangb708f572020-09-15 11:43:46 +080052 "config_template": "cmake " + \
53 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010054 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080055 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
57 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
58 "-DTEST_PSA_API=%(test_psa_api)s " + \
59 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
60 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
61 "-DBL2=%(with_bl2)s " + \
62 "-DNS=%(with_ns)s " + \
63 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
64 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
65 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
66 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
67 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080068 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080069 "-DTFM_NS_MANAGE_NSID=%(nsce)s " + \
Xinyu Zhangfa3f9c42021-11-16 14:30:45 +080070 "-DPSA_FRAMEWORK_HAS_MM_IOVEC=%(mmio)s " + \
Feder Liang567e8c22021-10-26 14:16:21 +080071 "-DCONFIG_TFM_SPE_FP=%(fp)s " + \
72 "-DCONFIG_TFM_LAZY_STACKING_SPE=%(lazy)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080073 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010074
Minos Galanakisea421232019-06-20 17:11:28 +010075 # A small subset of string substitution params is allowed in commands.
76 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
77 # _tbm_target_platform_ with the paths set when building
78
Xinyu Zhangb708f572020-09-15 11:43:46 +080079 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010080 r'/(\w+\.(?:axf|bin|hex))$'),
81
82 # ALL commands will be executed for every build.
83 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010084 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080085 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010086 "%(_tbm_build_dir_)s/bin/"
87 "bl2.bin "
88 "-Binary -offset 0xA000000 "
89 "-fill 0xFF 0xA000000 0xA020000 "
90 "%(_tbm_build_dir_)s/bin/"
91 "tfm_s_ns_signed.bin "
92 "-Binary -offset 0xA020000 "
93 "-fill 0xFF 0xA020000 0xA200000 "
94 "-o %(_tbm_build_dir_)s/bin/"
95 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080096 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080097 "%(_tbm_build_dir_)s/bin/"
98 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080099 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000100 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800101 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800102 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000103 "-Binary -offset 0xA020000 "
104 "-fill 0xFF 0xA020000 0xA200000 "
105 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700106 "tfm.hex -Intel")],
107 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
108 "%(_tbm_build_dir_)s/postbuild.sh;"
109 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700110 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
111 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800112 "popd")],
113 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
114 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
115 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
116 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
117 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
118 "python3 ./${FLASH_FILE};"
119 "cd %(_tbm_build_dir_)s/bin;"
120 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
121 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
122 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100123 },
124
125 # (Optional) If set will fail if those artefacts are missing post build
126 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800127 "%(_tbm_build_dir_)s/bin/"
128 "tfm_s.bin",
129 "%(_tbm_build_dir_)s/bin/"
130 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800131 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800132 "%(_tbm_build_dir_)s/bin/"
133 "tfm.hex",
134 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800135 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800136 "%(_tbm_build_dir_)s/bin/"
137 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800138 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800139 "%(_tbm_build_dir_)s/bin/"
140 "tfm.hex",
141 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800142 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800143 "%(_tbm_build_dir_)s/bin/"
144 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100145 }
146}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100147
Xinyu Zhangb708f572020-09-15 11:43:46 +0800148# List of all build configs that are impossible under all circumstances
149_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800150 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Feder Liang567e8c22021-10-26 14:16:21 +0800151 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*", "*"),
152 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800153 # Load range overlap on Musca for IPC Debug type: T895
Feder Liang567e8c22021-10-26 14:16:21 +0800154 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
155 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800156 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
157 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Feder Liang567e8c22021-10-26 14:16:21 +0800158 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "OFF", "OFF", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800159 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
160 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Feder Liang567e8c22021-10-26 14:16:21 +0800161 "Release", "off", True, True, "", "ON", "OFF", "OFF", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800162 # LVL2 and LVL3 requires IPC model
Feder Liang567e8c22021-10-26 14:16:21 +0800163 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
164 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800165 # Regression requires NS
Feder Liang567e8c22021-10-26 14:16:21 +0800166 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800167 # psoc64 requires IPC model
Feder Liang567e8c22021-10-26 14:16:21 +0800168 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800169 # No PSA_ACK with regression
Feder Liang567e8c22021-10-26 14:16:21 +0800170 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
171 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
172 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
173 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800174 # PSA_ACK requires NS
Feder Liang567e8c22021-10-26 14:16:21 +0800175 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
176 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
177 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
178 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800179 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang567e8c22021-10-26 14:16:21 +0800180 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800181 # Musca requires BL2
Feder Liang567e8c22021-10-26 14:16:21 +0800182 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
183 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800184 # psoc64 cannot use BL2
Feder Liang567e8c22021-10-26 14:16:21 +0800185 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800186 # psoc64 does not support Debug build type
Feder Liang567e8c22021-10-26 14:16:21 +0800187 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800188 # Musca b1 SSE 200 does not support Profile S
Feder Liang567e8c22021-10-26 14:16:21 +0800189 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800190 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang567e8c22021-10-26 14:16:21 +0800191 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
192 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
193 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100194 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang567e8c22021-10-26 14:16:21 +0800195 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
199 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
200 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
201 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
202 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
203 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800204 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang567e8c22021-10-26 14:16:21 +0800205 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*", "*", "*"),
206 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800207 # PARTITION_PS should be OFF for Profile S
Feder Liang567e8c22021-10-26 14:16:21 +0800208 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800209 # Proile M only support for IPC model
Feder Liang567e8c22021-10-26 14:16:21 +0800210 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800211 # Profile M only support for Isolation Level 2
Feder Liang567e8c22021-10-26 14:16:21 +0800212 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
213 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800214 # Profile L only support for Isolation Level 3
Feder Liang567e8c22021-10-26 14:16:21 +0800215 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
216 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800217 # Profile S does not support IPC model
Feder Liang567e8c22021-10-26 14:16:21 +0800218 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800219 # Profile S only supports Isolation Level 1
Feder Liang567e8c22021-10-26 14:16:21 +0800220 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
221 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800222 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang567e8c22021-10-26 14:16:21 +0800223 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
224 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
225 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
226 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
227 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700228 # stm/stm32l562e_dk uses BL2
Feder Liang567e8c22021-10-26 14:16:21 +0800229 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700230 # stm/stm32l562e_dk does not support Debug build type
Feder Liang567e8c22021-10-26 14:16:21 +0800231 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700232 # nxp/lpcxpresso55s69 only build with GCC
Feder Liang567e8c22021-10-26 14:16:21 +0800233 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700234 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang567e8c22021-10-26 14:16:21 +0800235 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
236 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700237 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang567e8c22021-10-26 14:16:21 +0800238 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800239 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang567e8c22021-10-26 14:16:21 +0800240 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800241 # NSID does not support multi core
Feder Liang567e8c22021-10-26 14:16:21 +0800242 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON", "*", "*", "*"),
243 # FP support only for GCC
244 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "1", "*"),
245 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "2", "*"),
246 # FP soft only build for lazy stacking disabled
247 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "0", "ON")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800248 ]
249
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100250# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100251config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800252 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800253 "toolchain_file": ["toolchain_GNUARM.cmake",
254 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800255 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800256 "isolation_level": ["1", "2"],
257 "test_regression": [True, False],
258 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100259 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800260 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800261 "with_bl2": [True, False],
262 "with_ns": [True, False],
263 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800264 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800265 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800266 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800267 "fp": ["0"],
268 "lazy": ["OFF"]
Karl Zhangaff558a2020-05-15 14:28:23 +0100269 },
270 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100272 }
273
Karl Zhangaff558a2020-05-15 14:28:23 +0100274config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800275 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800276 "toolchain_file": ["toolchain_GNUARM.cmake",
277 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800278 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "isolation_level": ["1", "2"],
280 "test_regression": [True, False],
281 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100282 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800283 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800284 "with_bl2": [True, False],
285 "with_ns": [True, False],
286 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800287 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800288 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800289 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800290 "fp": ["0"],
291 "lazy": ["OFF"]
Karl Zhangaff558a2020-05-15 14:28:23 +0100292 },
293 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800294 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100295 }
296
Karl Zhangaff558a2020-05-15 14:28:23 +0100297config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800298 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
299 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800300 "toolchain_file": ["toolchain_GNUARM.cmake",
301 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800302 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800303 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "test_regression": [False],
305 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800307 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100308 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800309 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800311 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800312 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800313 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800314 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800315 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800316 "fp": ["0"],
317 "lazy": ["OFF"]
Karl Zhangaff558a2020-05-15 14:28:23 +0100318 },
319 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100321 }
322
Karl Zhangaff558a2020-05-15 14:28:23 +0100323config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800324 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
325 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "toolchain_file": ["toolchain_GNUARM.cmake",
327 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800328 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800329 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "test_regression": [False],
331 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100332 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800333 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800335 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800337 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800338 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800339 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800340 "fp": ["0"],
341 "lazy": ["OFF"]
Karl Zhangaff558a2020-05-15 14:28:23 +0100342 },
343 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800344 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100345 }
346
Karl Zhangaff558a2020-05-15 14:28:23 +0100347config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800348 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800349 "toolchain_file": ["toolchain_GNUARM.cmake",
350 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800351 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800352 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "test_regression": [False],
354 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800355 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800356 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100357 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800358 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800360 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800362 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800363 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800364 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800365 "fp": ["0"],
366 "lazy": ["OFF"]
Karl Zhangaff558a2020-05-15 14:28:23 +0100367 },
368 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100370 }
Minos Galanakisea421232019-06-20 17:11:28 +0100371
Xinyu Zhangb708f572020-09-15 11:43:46 +0800372config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800373 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800374 "toolchain_file": ["toolchain_GNUARM.cmake",
375 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800376 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800377 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800378 "test_regression": [False],
379 "test_psa_api": ["IPC"],
380 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800381 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800382 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800383 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800384 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800385 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800386 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800387 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800388 "fp": ["0"],
389 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800390 },
391 "common_params": _common_tfm_builder_cfg,
392 "invalid": _common_tfm_invalid_configs + []
393 }
394
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800395config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800396 "tfm_platform": ["cypress/psoc64"],
397 "toolchain_file": ["toolchain_GNUARM.cmake",
398 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800399 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800400 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800401 "test_regression": [True],
402 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800403 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800404 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800405 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800406 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800407 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800408 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800409 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800410 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800411 "fp": ["0"],
412 "lazy": ["OFF"]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800413 },
414 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800416 }
417
Arthur She19c0e1a2021-06-02 11:06:19 -0700418config_STM32L562E_DK = {"seed_params": {
419 "tfm_platform": ["stm/stm32l562e_dk"],
420 "toolchain_file": ["toolchain_GNUARM.cmake",
421 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800422 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700423 "isolation_level": ["1", "2", "3"],
424 "test_regression": [True],
425 "test_psa_api": ["OFF"],
426 "cmake_build_type": ["Release"],
427 "with_otp": ["off"],
428 "with_bl2": [True],
429 "with_ns": [True],
430 "profile": [""],
431 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800432 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800433 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800434 "fp": ["0"],
435 "lazy": ["OFF"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700436 },
437 "common_params": _common_tfm_builder_cfg,
438 "invalid": _common_tfm_invalid_configs + []
439 }
440
Arthur Shef3657742021-09-07 14:23:18 -0700441config_LPCXPRESSO55S69 = {"seed_params": {
442 "tfm_platform": ["nxp/lpcxpresso55s69"],
443 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800444 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700445 "isolation_level": ["2"],
446 "test_regression": [True, False],
447 "test_psa_api": ["OFF"],
448 "cmake_build_type": ["Relwithdebinfo"],
449 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800450 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700451 "with_ns": [True],
452 "profile": ["profile_medium"],
453 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800454 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800455 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800456 "fp": ["0"],
457 "lazy": ["OFF"]
458 },
459 "common_params": _common_tfm_builder_cfg,
460 "invalid": _common_tfm_invalid_configs + []
461 }
462
463config_FP = {"seed_params": {
464 "tfm_platform": ["arm/musca_s1"],
465 "toolchain_file": ["toolchain_GNUARM.cmake",
466 "toolchain_ARMCLANG.cmake"],
467 "lib_model": [False],
468 "isolation_level": ["1", "2"],
469 "test_regression": [True],
470 "test_psa_api": ["OFF"],
471 "cmake_build_type": ["Release"],
472 "with_otp": ["off"],
473 "with_bl2": [True],
474 "with_ns": [True],
475 "profile": [""],
476 "partition_ps": ["ON"],
477 "nsce": ["OFF"],
478 "mmio": ["OFF"],
479 "fp": ["0", "1", "2"],
480 "lazy": ["ON", "OFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700481 },
482 "common_params": _common_tfm_builder_cfg,
483 "invalid": _common_tfm_invalid_configs + []
484 }
485
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800486config_corstone1000 = {"seed_params": {
487 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800488 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800489 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800490 "isolation_level": ["1"],
491 "test_regression": [False],
492 "test_psa_api": ["OFF"],
493 "cmake_build_type": ["Debug"],
494 "with_otp": ["off"],
495 "with_bl2": [True],
496 "with_ns": [False],
497 "profile": [""],
498 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800499 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800500 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800501 "fp": ["0"],
502 "lazy": ["OFF"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800503 },
504 "common_params": _common_tfm_builder_cfg,
505 "invalid": _common_tfm_invalid_configs + []
506 }
507
Minos Galanakisea421232019-06-20 17:11:28 +0100508config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800509 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "toolchain_file": ["toolchain_GNUARM.cmake",
511 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800512 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800513 "isolation_level": ["1", "2"],
514 "test_regression": [True, False],
515 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100516 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800517 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800518 "with_bl2": [True, False],
519 "with_ns": [True, False],
520 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800521 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800522 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800523 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800524 "fp": ["0"],
525 "lazy": ["OFF"]
Minos Galanakisea421232019-06-20 17:11:28 +0100526 },
527 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100529 }
530
Xinyu Zhangb708f572020-09-15 11:43:46 +0800531config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800532 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
533 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800534 "toolchain_file": ["toolchain_GNUARM.cmake",
535 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800536 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800537 "isolation_level": ["1", "2"],
538 "test_regression": [True, False],
539 "test_psa_api": ["OFF"],
540 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800541 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 "with_bl2": [True, False],
543 "with_ns": [True, False],
544 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800545 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800546 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800547 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800548 "fp": ["0"],
549 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800550 },
Minos Galanakisea421232019-06-20 17:11:28 +0100551 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100553 }
554
Minos Galanakisea421232019-06-20 17:11:28 +0100555config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800556 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
557 "arm/musca_b1/sse_200",
558 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700559 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700560 "stm/stm32l562e_dk",
561 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800562 "toolchain_file": ["toolchain_GNUARM.cmake",
563 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800564 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800565 "isolation_level": ["1", "2"],
566 "test_regression": [True, False],
567 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800568 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800569 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800570 "with_bl2": [True, False],
571 "with_ns": [True, False],
572 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800573 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800574 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800575 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800576 "fp": ["0"],
577 "lazy": ["OFF"]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100578 },
579 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800580 "invalid": _common_tfm_invalid_configs + [
581 ("cypress/psoc64", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800582 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 ("cypress/psoc64", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800584 "*", "*", "*", "*", True, True, "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800585 ("arm/mps2/an521", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800586 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800587 ("arm/mps2/an519", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800588 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800589 ("arm/musca_b1/sse_200", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800590 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800591 ("arm/mps3/an524", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800592 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800594 }
595
Karl Zhangaff558a2020-05-15 14:28:23 +0100596config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800597 "tfm_platform": ["arm/mps2/an521",
598 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "toolchain_file": ["toolchain_ARMCLANG.cmake",
600 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800601 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800602 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 "test_regression": [True, False],
604 "test_psa_api": ["OFF"],
605 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800606 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800607 "with_bl2": [True],
608 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800609 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800610 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800611 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800612 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800613 "fp": ["0"],
614 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800615 },
616 "common_params": _common_tfm_builder_cfg,
617 "invalid": _common_tfm_invalid_configs + []
618 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800619
Karl Zhangaff558a2020-05-15 14:28:23 +0100620config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800621 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 "toolchain_file": ["toolchain_ARMCLANG.cmake",
623 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800624 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800625 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 "test_regression": [True, False],
627 "test_psa_api": ["OFF"],
628 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800629 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800630 "with_bl2": [True],
631 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800632 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800633 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800634 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800635 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800636 "fp": ["0"],
637 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800638 },
639 "common_params": _common_tfm_builder_cfg,
640 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800641 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800642 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 ]
644 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100645
Karl Zhang14573bc2020-06-08 09:23:21 +0800646config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800647 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
648 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "toolchain_file": ["toolchain_ARMCLANG.cmake",
650 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800651 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800652 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800653 "test_regression": [True, False],
654 "test_psa_api": ["OFF"],
655 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800656 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800657 "with_bl2": [True],
658 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800659 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800660 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800661 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800662 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800663 "fp": ["0"],
664 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800665 },
666 "common_params": _common_tfm_builder_cfg,
667 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800668 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800669 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800670 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800671 ("arm/mps2/an519", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800672 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800673 ("arm/musca_b1/sse_200", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800674 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800675 ]
676 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800677
Karl Zhangaff558a2020-05-15 14:28:23 +0100678config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800679 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "toolchain_file": ["toolchain_ARMCLANG.cmake",
681 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800682 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800683 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "test_regression": [True, False],
685 "test_psa_api": ["OFF"],
686 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800687 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800689 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800690 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800691 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800692 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800693 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800694 "fp": ["0"],
695 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 },
697 "common_params": _common_tfm_builder_cfg,
698 "invalid": _common_tfm_invalid_configs + []
699 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100700
Minos Galanakisea421232019-06-20 17:11:28 +0100701config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800702 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 "toolchain_file": ["toolchain_ARMCLANG.cmake",
704 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800705 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 "isolation_level": ["1", "2"],
707 "test_regression": [True, False],
708 "test_psa_api": ["OFF"],
709 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800710 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800711 "with_bl2": [True],
712 "with_ns": [True, False],
713 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800714 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800715 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800716 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800717 "fp": ["0"],
718 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 },
720 "common_params": _common_tfm_builder_cfg,
721 "invalid": _common_tfm_invalid_configs + []
722 }
Minos Galanakisea421232019-06-20 17:11:28 +0100723
Mark Horvath8d281cd2020-12-07 15:20:26 +0100724config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800725 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100726 "toolchain_file": ["toolchain_ARMCLANG.cmake",
727 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800728 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100729 "isolation_level": ["1"],
730 "test_regression": [False],
731 "test_psa_api": ["OFF"],
732 "cmake_build_type": ["Debug", "Release"],
733 "with_otp": ["off"],
734 "with_bl2": [True],
735 "with_ns": [False],
736 "profile": [""],
737 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800738 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800739 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800740 "fp": ["0"],
741 "lazy": ["OFF"]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100742 },
743 "common_params": _common_tfm_builder_cfg,
744 "invalid": _common_tfm_invalid_configs + []
745 }
746
Karl Zhangeffed972020-06-30 15:48:01 +0800747config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800748 "tfm_platform": ["arm/musca_s1"],
Xinyu 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 Zhangb708f572020-09-15 11:43:46 +0800752 "isolation_level": ["1", "2"],
753 "test_regression": [True, False],
754 "test_psa_api": ["OFF"],
755 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800756 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "with_bl2": [True],
758 "with_ns": [True, False],
759 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800760 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800761 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800762 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800763 "fp": ["0"],
764 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 },
766 "common_params": _common_tfm_builder_cfg,
767 "invalid": _common_tfm_invalid_configs + []
768 }
Karl Zhangeffed972020-06-30 15:48:01 +0800769
Karl Zhangaff558a2020-05-15 14:28:23 +0100770config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800771 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
772 "arm/musca_b1/sse_200", "arm/musca_s1",
773 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 "toolchain_file": ["toolchain_ARMCLANG.cmake",
775 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800776 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800777 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800778 "test_regression": [True, False],
779 "test_psa_api": ["OFF"],
780 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800781 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 "with_bl2": [True, False],
783 "with_ns": [True, False],
784 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800785 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800786 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800787 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800788 "fp": ["0"],
789 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800790 },
791 "common_params": _common_tfm_builder_cfg,
792 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800793 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800794 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 ]
796 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100797
798# Configure build manager to build several combinations
799config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800800 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
801 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 "toolchain_file": ["toolchain_GNUARM.cmake",
803 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800804 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "isolation_level": ["1", "2"],
806 "test_regression": [False],
807 "test_psa_api": ["IPC",
808 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800809 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800810 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800811 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800812 "with_otp": ["off"],
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"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800817 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800818 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800819 "fp": ["0"],
820 "lazy": ["OFF"]
Karl Zhangaff558a2020-05-15 14:28:23 +0100821 },
822 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800823 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800824 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800825 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100827 }
828
Karl Zhangaff558a2020-05-15 14:28:23 +0100829config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800830 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
831 "arm/musca_b1/sse_200"],
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": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800835 "isolation_level": ["1", "2"],
836 "test_regression": [False],
837 "test_psa_api": ["IPC"],
838 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800839 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800840 "with_bl2": [True],
841 "with_ns": [True, False],
842 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800843 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800844 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800845 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800846 "fp": ["0"],
847 "lazy": ["OFF"]
Karl Zhangaff558a2020-05-15 14:28:23 +0100848 },
849 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800851 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800852 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800853 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100854 }
855
Karl Zhang14573bc2020-06-08 09:23:21 +0800856config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800857 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
858 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800859 "arm/mps3/an524", "stm/stm32l562e_dk",
860 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800861 "toolchain_file": ["toolchain_GNUARM.cmake",
862 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800863 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800864 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800865 "test_regression": [True, False],
866 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800867 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800868 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800869 "with_bl2": [True],
870 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800871 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800872 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800873 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800874 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800875 "fp": ["0"],
876 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800877 },
878 "common_params": _common_tfm_builder_cfg,
879 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800880 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800881 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800882 ("cypress/psoc64", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800883 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800884 ("cypress/psoc64", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800885 "*", "*", "*", "*", True, True, "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800886 ("arm/mps2/an521", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800887 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800888 ("arm/mps2/an519", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800889 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800890 ("arm/musca_b1/sse_200", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800891 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800892 ("arm/musca_s1", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800893 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800894 ("arm/mps3/an524", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800895 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800896 ]
897 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800898
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800899config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800900 "tfm_platform": ["arm/mps2/an521"],
901 "toolchain_file": ["toolchain_GNUARM.cmake",
902 "toolchain_ARMCLANG.cmake"],
903 "lib_model": [True, False],
904 "isolation_level": ["1", "2", "3"],
905 "test_regression": [True],
906 "test_psa_api": ["OFF"],
907 "cmake_build_type": ["Debug"],
908 "with_otp": ["off"],
909 "with_bl2": [True],
910 "with_ns": [True],
911 "profile": [""],
912 "partition_ps": ["ON"],
913 "nsce": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800914 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800915 "fp": ["0"],
916 "lazy": ["OFF"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800917 },
918 "common_params": _common_tfm_builder_cfg,
919 "invalid": _common_tfm_invalid_configs + []
920 }
921
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800922config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800923 "tfm_platform": ["arm/mps2/an521"],
924 "toolchain_file": ["toolchain_GNUARM.cmake",
925 "toolchain_ARMCLANG.cmake"],
926 "lib_model": [False],
927 "isolation_level": ["1"],
928 "test_regression": [True],
929 "test_psa_api": ["OFF"],
930 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
931 "with_otp": ["off"],
932 "with_bl2": [True],
933 "with_ns": [True],
934 "profile": [""],
935 "partition_ps": ["ON"],
936 "nsce": ["OFF"],
937 "mmio": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800938 "fp": ["0"],
939 "lazy": ["OFF"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800940 },
941 "common_params": _common_tfm_builder_cfg,
942 "invalid": _common_tfm_invalid_configs + []
943 }
944
Karl Zhang14573bc2020-06-08 09:23:21 +0800945config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800946 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
947 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800948 "toolchain_file": ["toolchain_ARMCLANG.cmake",
949 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800950 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800951 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800952 "test_regression": [True, False],
953 "test_psa_api": ["OFF"],
954 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800955 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800956 "with_bl2": [True],
957 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800958 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800959 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800960 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800961 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800962 "fp": ["0"],
963 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800964 },
965 "common_params": _common_tfm_builder_cfg,
966 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800967 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800968 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800969 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800970 ("arm/mps2/an519", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800971 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800972 ("arm/musca_b1/sse_200", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +0800973 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800974 ]
975 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800976
Karl Zhang14573bc2020-06-08 09:23:21 +0800977config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800978 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
979 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800980 "toolchain_file": ["toolchain_GNUARM.cmake",
981 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800982 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800983 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984 "test_regression": [False],
985 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800986 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800987 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800988 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800989 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800990 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800991 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800992 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800993 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800994 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800995 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800996 "fp": ["0"],
997 "lazy": ["OFF"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800998 },
999 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001000 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001001 }
1002
Karl Zhang14573bc2020-06-08 09:23:21 +08001003config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001004 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
1005 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001006 "toolchain_file": ["toolchain_GNUARM.cmake",
1007 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001008 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001009 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001010 "test_regression": [False],
1011 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001012 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001013 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001014 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001015 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001016 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001017 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001018 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001019 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001020 "fp": ["0"],
1021 "lazy": ["OFF"]
Karl Zhang14573bc2020-06-08 09:23:21 +08001022 },
1023 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001024 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001025 }
1026
Karl Zhang14573bc2020-06-08 09:23:21 +08001027config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001028 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001029 "toolchain_file": ["toolchain_GNUARM.cmake",
1030 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001031 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001032 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001033 "test_regression": [True],
1034 "test_psa_api": ["OFF"],
1035 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001036 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001037 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001038 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001039 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001040 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001041 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001042 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001043 "fp": ["0"],
1044 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001045 },
1046 "common_params": _common_tfm_builder_cfg,
1047 "invalid": _common_tfm_invalid_configs + []
1048 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001049
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001050config_nightly_psoc64 = {"seed_params": {
1051 "tfm_platform": ["cypress/psoc64"],
1052 "toolchain_file": ["toolchain_GNUARM.cmake",
1053 "toolchain_ARMCLANG.cmake"],
1054 "lib_model": [False],
1055 "isolation_level": ["1", "2"],
1056 "test_regression": [True],
1057 "test_psa_api": ["OFF"],
1058 "cmake_build_type": ["Release"],
1059 "with_otp": ["off"],
1060 "with_bl2": [False],
1061 "with_ns": [True],
1062 "profile": [""],
1063 "partition_ps": ["ON"],
1064 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001065 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001066 "fp": ["0"],
1067 "lazy": ["OFF"]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001068 },
1069 "common_params": _common_tfm_builder_cfg,
1070 "invalid": _common_tfm_invalid_configs + []
1071 }
1072
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001073config_nightly_STM32L562E_DK = {"seed_params": {
1074 "tfm_platform": ["stm/stm32l562e_dk"],
1075 "toolchain_file": ["toolchain_GNUARM.cmake",
1076 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001077 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001078 "isolation_level": ["1", "2", "3"],
1079 "test_regression": [True],
1080 "test_psa_api": ["OFF"],
1081 "cmake_build_type": ["Release"],
1082 "with_otp": ["off"],
1083 "with_bl2": [True],
1084 "with_ns": [True],
1085 "profile": [""],
1086 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001087 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001088 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001089 "fp": ["0"],
1090 "lazy": ["OFF"]
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001091 },
1092 "common_params": _common_tfm_builder_cfg,
1093 "invalid": _common_tfm_invalid_configs + []
1094 }
1095
Arthur Shef3657742021-09-07 14:23:18 -07001096config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1097 "tfm_platform": ["nxp/lpcxpresso55s69"],
1098 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001099 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001100 "isolation_level": ["2"],
1101 "test_regression": [True, False],
1102 "test_psa_api": ["OFF"],
1103 "cmake_build_type": ["Relwithdebinfo"],
1104 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001105 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001106 "with_ns": [True],
1107 "profile": ["profile_medium"],
1108 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001109 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001110 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001111 "fp": ["0"],
1112 "lazy": ["OFF"]
1113 },
1114 "common_params": _common_tfm_builder_cfg,
1115 "invalid": _common_tfm_invalid_configs + []
1116 }
1117
1118config_nightly_FP = {"seed_params": {
1119 "tfm_platform": ["arm/musca_s1"],
1120 "toolchain_file": ["toolchain_GNUARM.cmake",
1121 "toolchain_ARMCLANG.cmake"],
1122 "lib_model": [False],
1123 "isolation_level": ["1", "2"],
1124 "test_regression": [True],
1125 "test_psa_api": ["OFF"],
1126 "cmake_build_type": ["Debug"],
1127 "with_otp": ["off"],
1128 "with_bl2": [True],
1129 "with_ns": [True],
1130 "profile": [""],
1131 "partition_ps": ["ON"],
1132 "nsce": ["OFF"],
1133 "mmio": ["OFF"],
1134 "fp": ["0", "2"],
1135 "lazy": ["ON", "OFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001136 },
1137 "common_params": _common_tfm_builder_cfg,
1138 "invalid": _common_tfm_invalid_configs + []
1139 }
1140
Karl Zhang14573bc2020-06-08 09:23:21 +08001141config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001142 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001143 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001144 "toolchain_file": ["toolchain_GNUARM.cmake",
1145 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001146 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001147 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 "test_regression": [True],
1149 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001150 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001151 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001152 "with_bl2": [True],
1153 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001154 "profile": ["", "profile_small", "profile_medium"],
1155 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001156 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001157 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001158 "fp": ["0"],
1159 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001160 },
1161 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001162 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001163 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001164 True, "1", False, "OFF", "Debug",
Feder Liang567e8c22021-10-26 14:16:21 +08001165 "off", True, True, "", "ON", "OFF", "OFF", "0", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001166 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001167 False, "2", False, "OFF", "Debug",
Feder Liang567e8c22021-10-26 14:16:21 +08001168 "off", True, True, "", "ON", "OFF", "OFF", "0", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001169 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001170 False, "3", False, "OFF", "Release",
Feder Liang567e8c22021-10-26 14:16:21 +08001171 "off", True, True, "", "ON", "OFF", "OFF", "0", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001172 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001173 False, "2", False, "OFF", "Debug",
Feder Liang567e8c22021-10-26 14:16:21 +08001174 "off", True, True, "profile_medium", "ON", "OFF", "OFF", "0", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001175 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001176 False, "3", False, "OFF", "Debug",
Feder Liang567e8c22021-10-26 14:16:21 +08001177 "off", True, True, "profile_large", "ON", "OFF", "OFF", "0", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001178 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001179 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1180 False, "2", True, "OFF", "Release",
Feder Liang567e8c22021-10-26 14:16:21 +08001181 "off", True, True, "profile_medium", "OFF", "OFF", "OFF", "0", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001182 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001183 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1184 True, "1", True, "OFF", "Minsizerel",
Feder Liang567e8c22021-10-26 14:16:21 +08001185 "off", True, True, "", "ON", "OFF", "OFF", "0", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001186 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001187 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1188 False, "1", True, "OFF", "Release",
Feder Liang567e8c22021-10-26 14:16:21 +08001189 "off", True, True, "", "ON", "OFF", "OFF", "0", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001190 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001191 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1192 False, "2", True, "OFF", "Release",
Feder Liang567e8c22021-10-26 14:16:21 +08001193 "off", True, True, "", "ON", "OFF", "OFF", "0", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001194 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001195 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1196 False, "3", True, "OFF", "Release",
Feder Liang567e8c22021-10-26 14:16:21 +08001197 "off", True, True, "", "ON", "OFF", "OFF", "0", "OFF"),
1198 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_SFP2_SLAZY
1199 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1200 False, "2", True, "OFF", "Release",
1201 "off", True, True, "", "ON", "OFF", "OFF", "2", "ON"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001202 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001203 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001204 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001205 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001206 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001207 # valid configs supported by TF-M but not needed in per-patch
1208 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang567e8c22021-10-26 14:16:21 +08001209 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001210 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang567e8c22021-10-26 14:16:21 +08001211 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001212 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang567e8c22021-10-26 14:16:21 +08001213 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001214 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang567e8c22021-10-26 14:16:21 +08001215 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001216 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang567e8c22021-10-26 14:16:21 +08001217 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001218 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang567e8c22021-10-26 14:16:21 +08001219 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001220 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001221 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001222 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001223 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001224 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001225 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001226 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001227 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001228 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001229 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001230 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001231 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001232 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001233 "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001234 ]
1235 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001236
Karl Zhang14573bc2020-06-08 09:23:21 +08001237config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001238 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001239 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001240 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001241 "isolation_level": ["1", "2"],
1242 "test_regression": [True],
1243 "test_psa_api": ["OFF"],
1244 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001245 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001246 "with_bl2": [True],
1247 "with_ns": [True, False],
1248 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001249 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001250 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001251 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001252 "fp": ["0"],
1253 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001254 },
1255 "common_params": _common_tfm_builder_cfg,
1256 "invalid": _common_tfm_invalid_configs + []
1257 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001258
1259# Configure build manager to build several combinations
1260config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001261 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001262 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001263 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001264 "isolation_level": ["2"],
1265 "test_regression": [False],
1266 "test_psa_api": ["IPC",
1267 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001268 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001269 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001270 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001271 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001272 "with_bl2": [True],
1273 "with_ns": [True, False],
1274 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001275 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001276 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001277 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001278 "fp": ["0"],
1279 "lazy": ["OFF"]
Karl Zhang14573bc2020-06-08 09:23:21 +08001280 },
1281 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001282 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001283 }
1284
Karl Zhang14573bc2020-06-08 09:23:21 +08001285config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001286 "tfm_platform": ["cypress/psoc64"],
1287 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001288 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001289 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001290 "test_regression": [True],
1291 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001292 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001293 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001294 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001295 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001296 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001297 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001298 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001299 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001300 "fp": ["0"],
1301 "lazy": ["OFF"]
Karl Zhang14573bc2020-06-08 09:23:21 +08001302 },
1303 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001304 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001305 }
1306
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001307config_cov_an519 = {"seed_params": {
1308 "tfm_platform": ["arm/mps2/an519"],
1309 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001310 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001311 "isolation_level": ["1", "2", "3"],
1312 "test_regression": [True, False],
1313 "test_psa_api": ["OFF"],
1314 "cmake_build_type": ["Debug", "Release"],
1315 "with_otp": ["off"],
1316 "with_bl2": [True],
1317 "with_ns": [True],
1318 "profile": ["", "profile_small", "profile_medium"],
1319 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001320 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001321 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001322 "fp": ["0"],
1323 "lazy": ["OFF"]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001324 },
1325 "common_params": _common_tfm_builder_cfg,
1326 "invalid": _common_tfm_invalid_configs + []
1327 }
1328
1329config_cov_an521 = {"seed_params": {
1330 "tfm_platform": ["arm/mps2/an521"],
1331 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001332 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001333 "isolation_level": ["1", "2", "3"],
1334 "test_regression": [True, False],
1335 "test_psa_api": ["OFF"],
1336 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1337 "with_otp": ["off"],
1338 "with_bl2": [True],
1339 "with_ns": [True],
1340 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1341 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001342 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001343 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001344 "fp": ["0"],
1345 "lazy": ["OFF"]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001346 },
1347 "common_params": _common_tfm_builder_cfg,
1348 "invalid": _common_tfm_invalid_configs + []
1349 }
1350
Minos Galanakisea421232019-06-20 17:11:28 +01001351# Configruation used for document building
1352config_doxygen = {"common_params": {
1353 "config_type": "tf-m_documents",
1354 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001355 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001356 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001357 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001358 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001359 "cmake --build ./ -- docs"]},
1360 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1361 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001362 r'/(\w+\.(?:html|md|pdf))$',
1363 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001364 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001365 }
1366
Karl Zhangaff558a2020-05-15 14:28:23 +01001367# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001368config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001369 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001370 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001371 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001372 "isolation_level": ["1"],
1373 "test_regression": [False],
1374 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001375 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001376 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001377 "with_bl2": [True],
1378 "with_ns": [True],
1379 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001380 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001381 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001382 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001383 "fp": ["0"],
1384 "lazy": ["OFF"]
Minos Galanakisea421232019-06-20 17:11:28 +01001385 },
1386 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001387 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001388 }
1389
Dean Birch4c6ad622020-03-13 11:28:03 +00001390# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001391config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001392 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001393 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1394 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001395 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001396 "isolation_level": ["1", "2"],
1397 "test_regression": [True, False],
1398 "test_psa_api": ["OFF"],
1399 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001400 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001401 "with_bl2": [True, False],
1402 "with_ns": [True],
1403 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001404 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001405 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001406 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001407 "fp": ["0"],
1408 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001409 },
1410 "common_params": _common_tfm_builder_cfg,
1411 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001412 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001413 "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001414 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001415 "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001416 ]
1417 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001418
Xinyu Zhangb708f572020-09-15 11:43:46 +08001419config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001420 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001421 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001422 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001423 "isolation_level": ["1", "2"],
1424 "test_regression": [True],
1425 "test_psa_api": ["OFF"],
1426 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001427 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001428 "with_bl2": [True, False],
1429 "with_ns": [True, False],
1430 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001431 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001432 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001433 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001434 "fp": ["0"],
1435 "lazy": ["OFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001436 },
1437 "common_params": _common_tfm_builder_cfg,
1438 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001439 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Feder Liang567e8c22021-10-26 14:16:21 +08001440 "*", "*", True, "*", "*", "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001441 ]
1442 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001443
Xinyu Zhang38b76742021-11-11 13:57:56 +08001444config_an547 = {"seed_params": {
1445 "tfm_platform": ["arm/mps3/an547"],
1446 "toolchain_file": ["toolchain_GNUARM.cmake"],
1447 "lib_model": [False],
1448 "isolation_level": ["1"],
1449 "test_regression": [False],
1450 "test_psa_api": ["OFF"],
1451 "cmake_build_type": ["Debug"],
1452 "with_otp": ["off"],
1453 "with_bl2": [True],
1454 "with_ns": [False],
1455 "profile": [""],
1456 "partition_ps": ["ON"],
1457 "nsce": ["OFF"],
1458 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001459 "fp": ["0"],
1460 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001461 },
1462 "common_params": _common_tfm_builder_cfg,
1463 "invalid": _common_tfm_invalid_configs + []
1464 }
1465
1466config_corstone_polaris = {"seed_params": {
1467 "tfm_platform": ["arm/mps3/corstone_polaris"],
1468 "toolchain_file": ["toolchain_GNUARM.cmake"],
1469 "lib_model": [False],
1470 "isolation_level": ["1"],
1471 "test_regression": [False],
1472 "test_psa_api": ["OFF"],
1473 "cmake_build_type": ["Debug"],
1474 "with_otp": ["off"],
1475 "with_bl2": [True],
1476 "with_ns": [False],
1477 "profile": [""],
1478 "partition_ps": ["ON"],
1479 "nsce": ["OFF"],
1480 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001481 "fp": ["0"],
1482 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001483 },
1484 "common_params": _common_tfm_builder_cfg,
1485 "invalid": _common_tfm_invalid_configs + []
1486 }
1487
1488config_bl5340 = {"seed_params": {
1489 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1490 "toolchain_file": ["toolchain_GNUARM.cmake"],
1491 "lib_model": [False],
1492 "isolation_level": ["1"],
1493 "test_regression": [False],
1494 "test_psa_api": ["OFF"],
1495 "cmake_build_type": ["Debug"],
1496 "with_otp": ["off"],
1497 "with_bl2": [True],
1498 "with_ns": [False],
1499 "profile": [""],
1500 "partition_ps": ["ON"],
1501 "nsce": ["OFF"],
1502 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001503 "fp": ["0"],
1504 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001505 },
1506 "common_params": _common_tfm_builder_cfg,
1507 "invalid": _common_tfm_invalid_configs + []
1508 }
1509
1510config_nrf5340dk = {"seed_params": {
1511 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1512 "toolchain_file": ["toolchain_GNUARM.cmake"],
1513 "lib_model": [False],
1514 "isolation_level": ["1"],
1515 "test_regression": [False],
1516 "test_psa_api": ["OFF"],
1517 "cmake_build_type": ["Debug"],
1518 "with_otp": ["off"],
1519 "with_bl2": [True],
1520 "with_ns": [False],
1521 "profile": [""],
1522 "partition_ps": ["ON"],
1523 "nsce": ["OFF"],
1524 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001525 "fp": ["0"],
1526 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001527 },
1528 "common_params": _common_tfm_builder_cfg,
1529 "invalid": _common_tfm_invalid_configs + []
1530 }
1531
1532config_nrf9160dk = {"seed_params": {
1533 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1534 "toolchain_file": ["toolchain_GNUARM.cmake"],
1535 "lib_model": [False],
1536 "isolation_level": ["1"],
1537 "test_regression": [False],
1538 "test_psa_api": ["OFF"],
1539 "cmake_build_type": ["Debug"],
1540 "with_otp": ["off"],
1541 "with_bl2": [True],
1542 "with_ns": [False],
1543 "profile": [""],
1544 "partition_ps": ["ON"],
1545 "nsce": ["OFF"],
1546 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001547 "fp": ["0"],
1548 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001549 },
1550 "common_params": _common_tfm_builder_cfg,
1551 "invalid": _common_tfm_invalid_configs + []
1552 }
1553
1554config_m2351 = {"seed_params": {
1555 "tfm_platform": ["nuvoton/m2351"],
1556 "toolchain_file": ["toolchain_GNUARM.cmake"],
1557 "lib_model": [False],
1558 "isolation_level": ["1"],
1559 "test_regression": [False],
1560 "test_psa_api": ["OFF"],
1561 "cmake_build_type": ["Release"],
1562 "with_otp": ["off"],
1563 "with_bl2": [True],
1564 "with_ns": [False],
1565 "profile": [""],
1566 "partition_ps": ["ON"],
1567 "nsce": ["OFF"],
1568 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001569 "fp": ["0"],
1570 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001571 },
1572 "common_params": _common_tfm_builder_cfg,
1573 "invalid": _common_tfm_invalid_configs + []
1574 }
1575
1576config_m2354 = {"seed_params": {
1577 "tfm_platform": ["nuvoton/m2354"],
1578 "toolchain_file": ["toolchain_GNUARM.cmake"],
1579 "lib_model": [False],
1580 "isolation_level": ["1"],
1581 "test_regression": [False],
1582 "test_psa_api": ["OFF"],
1583 "cmake_build_type": ["Debug"],
1584 "with_otp": ["off"],
1585 "with_bl2": [True],
1586 "with_ns": [False],
1587 "profile": [""],
1588 "partition_ps": ["ON"],
1589 "nsce": ["OFF"],
1590 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001591 "fp": ["0"],
1592 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001593 },
1594 "common_params": _common_tfm_builder_cfg,
1595 "invalid": _common_tfm_invalid_configs + []
1596 }
1597
1598config_b_u585i_iot02a = {"seed_params": {
1599 "tfm_platform": ["stm/b_u585i_iot02a"],
1600 "toolchain_file": ["toolchain_GNUARM.cmake"],
1601 "lib_model": [False],
1602 "isolation_level": ["1"],
1603 "test_regression": [False],
1604 "test_psa_api": ["OFF"],
1605 "cmake_build_type": ["Release"],
1606 "with_otp": ["off"],
1607 "with_bl2": [True],
1608 "with_ns": [False],
1609 "profile": [""],
1610 "partition_ps": ["ON"],
1611 "nsce": ["OFF"],
1612 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001613 "fp": ["0"],
1614 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001615 },
1616 "common_params": _common_tfm_builder_cfg,
1617 "invalid": _common_tfm_invalid_configs + []
1618 }
1619
1620config_nucleo_l552ze_q = {"seed_params": {
1621 "tfm_platform": ["stm/nucleo_l552ze_q"],
1622 "toolchain_file": ["toolchain_GNUARM.cmake"],
1623 "lib_model": [False],
1624 "isolation_level": ["1"],
1625 "test_regression": [False],
1626 "test_psa_api": ["OFF"],
1627 "cmake_build_type": ["Release"],
1628 "with_otp": ["off"],
1629 "with_bl2": [True],
1630 "with_ns": [False],
1631 "profile": [""],
1632 "partition_ps": ["ON"],
1633 "nsce": ["OFF"],
1634 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001635 "fp": ["0"],
1636 "lazy": ["OFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001637 },
1638 "common_params": _common_tfm_builder_cfg,
1639 "invalid": _common_tfm_invalid_configs + []
1640 }
1641
Karl Zhangaff558a2020-05-15 14:28:23 +01001642_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001643 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001644 "tfm_test": config_tfm_test,
1645 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001646 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001647 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001648 "tfm_nsce": config_nsce,
1649 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001650 "psa_api": config_PSA_API,
1651 "psa_api_otp": config_PSA_API_OTP,
1652 "psa_ff": config_PSA_FF,
1653 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001654 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001655 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001656 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001657 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001658
1659 #nightly test group
1660 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001661 "nightly_nsce": config_nsce,
1662 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001663 "nightly_profile": config_nightly_profile,
1664 "nightly_psa_api": config_nightly_PSA_API,
1665 "nightly_ff": config_nightly_PSA_FF,
1666 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001667 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001668 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001669 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001670 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001671
1672 #per patch test group
1673 "pp_test": config_pp_test,
1674 "pp_OTP": config_pp_OTP,
1675 "pp_PSA_API": config_pp_PSA_API,
1676 "pp_psoc64": config_pp_PSoC64,
1677
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001678 #code coverage test group
1679 "coverage_an519": config_cov_an519,
1680 "coverage_an521": config_cov_an521,
1681
Xinyu Zhang38b76742021-11-11 13:57:56 +08001682 #extra build group
1683 "arm_corstone1000": config_corstone1000,
1684 "arm_an547": config_an547,
1685 "arm_corstone_polaris": config_corstone_polaris,
1686 "cypress_psoc64": config_PSOC64,
1687 "laird_bl5340": config_bl5340,
1688 "nordic_nrf5340dk": config_nrf5340dk,
1689 "nordic_nrf9160dk": config_nrf9160dk,
1690 "nuvoton_m2351": config_m2351,
1691 "nuvoton_m2354": config_m2354,
1692 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1693 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1694 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1695 "stm_stm32l562e_dk": config_STM32L562E_DK,
1696
Karl Zhang14573bc2020-06-08 09:23:21 +08001697 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001698 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001699
1700 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001701 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001702 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001703 "an521_psa_api": config_AN521_PSA_API,
1704 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001705 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001706 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001707 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001708 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001709 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001710 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001711 "ipc": config_IPC,
1712 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001713 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001714 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001715 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001716
1717 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001718 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001719 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001720
1721if __name__ == '__main__':
1722 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001723
Minos Galanakisea421232019-06-20 17:11:28 +01001724 # Default behavior is to export refference config when called
1725 _dir = os.getcwd()
1726 from utils import save_json
1727 for _cname, _cfg in _builtin_configs.items():
1728 _fname = os.path.join(_dir, _cname + ".json")
1729 print("Exporting config %s" % _fname)
1730 save_json(_fname, _cfg)