blob: 55398a2e999de4e95d84918278084dc3a4637912 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Xinyu Zhangeb442a12021-02-01 15:16:19 +080011 * Copyright (c) 2018-2021, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
33 "toolchain_file",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080034 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080043 "partition_ps",
Feder Liang567e8c22021-10-26 14:16:21 +080044 "mmio",
45 "fp",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080046 "lazy",
47 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010048
49 # Keys for the templace will come from the combinations of parameters
50 # provided in the seed dictionary.
51
Xinyu 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 Zhangfa3f9c42021-11-16 14:30:45 +080069 "-DPSA_FRAMEWORK_HAS_MM_IOVEC=%(mmio)s " + \
Feder Liang567e8c22021-10-26 14:16:21 +080070 "-DCONFIG_TFM_SPE_FP=%(fp)s " + \
71 "-DCONFIG_TFM_LAZY_STACKING_SPE=%(lazy)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080072 "%(extra_params)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
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +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",
Xinyu Zhang67612992021-12-20 14:11:27 +0800158 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "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",
Xinyu Zhang67612992021-12-20 14:11:27 +0800161 "Release", "off", True, True, "", "ON", "OFF", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800162 # LVL2 and LVL3 requires IPC model
Xinyu Zhang67612992021-12-20 14:11:27 +0800163 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
164 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800165 # Regression requires NS
Xinyu Zhang67612992021-12-20 14:11:27 +0800166 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800167 # psoc64 requires IPC model
Xinyu Zhang67612992021-12-20 14:11:27 +0800168 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800169 # No PSA_ACK with regression
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +0800180 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800181 # Musca requires BL2
Xinyu Zhang67612992021-12-20 14:11:27 +0800182 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
183 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800184 # psoc64 cannot use BL2
Xinyu Zhang67612992021-12-20 14:11:27 +0800185 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800186 # psoc64 does not support Debug build type
Xinyu Zhang67612992021-12-20 14:11:27 +0800187 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800188 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +0800205 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*", "*", "*"),
206 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800207 # PARTITION_PS should be OFF for Profile S
Xinyu Zhang67612992021-12-20 14:11:27 +0800208 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800209 # Proile M only support for IPC model
Xinyu Zhang67612992021-12-20 14:11:27 +0800210 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800211 # Profile M only support for Isolation Level 2
Xinyu Zhang67612992021-12-20 14:11:27 +0800212 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
213 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800214 # Profile L only support for Isolation Level 3
Xinyu Zhang67612992021-12-20 14:11:27 +0800215 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
216 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800217 # Profile S does not support IPC model
Xinyu Zhang67612992021-12-20 14:11:27 +0800218 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800219 # Profile S only supports Isolation Level 1
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +0800229 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700230 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhang67612992021-12-20 14:11:27 +0800231 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700232 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang67612992021-12-20 14:11:27 +0800233 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700234 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhang67612992021-12-20 14:11:27 +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
Xinyu Zhang67612992021-12-20 14:11:27 +0800238 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800239 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Xinyu Zhang67612992021-12-20 14:11:27 +0800240 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800241 # FP support only for GCC
Xinyu Zhang67612992021-12-20 14:11:27 +0800242 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "1", "*", "*"),
243 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "2", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800244 # FP soft only build for lazy stacking disabled
Xinyu Zhang67612992021-12-20 14:11:27 +0800245 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "0", "ON", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800246 ]
247
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100248# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100249config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800250 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800251 "toolchain_file": ["toolchain_GNUARM.cmake",
252 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800253 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800254 "isolation_level": ["1", "2"],
255 "test_regression": [True, False],
256 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100257 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800258 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800259 "with_bl2": [True, False],
260 "with_ns": [True, False],
261 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800262 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800263 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800264 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800265 "lazy": ["OFF"],
266 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 },
268 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100270 }
271
Karl Zhangaff558a2020-05-15 14:28:23 +0100272config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800273 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800274 "toolchain_file": ["toolchain_GNUARM.cmake",
275 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800276 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800277 "isolation_level": ["1", "2"],
278 "test_regression": [True, False],
279 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100280 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800281 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800282 "with_bl2": [True, False],
283 "with_ns": [True, False],
284 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800285 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800286 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800287 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800288 "lazy": ["OFF"],
289 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100290 },
291 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800292 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100293 }
294
Karl Zhangaff558a2020-05-15 14:28:23 +0100295config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800296 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
297 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "toolchain_file": ["toolchain_GNUARM.cmake",
299 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800300 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800301 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "test_regression": [False],
303 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800305 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100306 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800307 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800308 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800309 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800311 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800312 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800313 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800314 "lazy": ["OFF"],
315 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100316 },
317 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800318 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100319 }
320
Karl Zhangaff558a2020-05-15 14:28:23 +0100321config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800322 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
323 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "toolchain_file": ["toolchain_GNUARM.cmake",
325 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800326 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800327 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "test_regression": [False],
329 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100330 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800331 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800333 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800335 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800336 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800337 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800338 "lazy": ["OFF"],
339 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100340 },
341 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100343 }
344
Karl Zhangaff558a2020-05-15 14:28:23 +0100345config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800346 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "toolchain_file": ["toolchain_GNUARM.cmake",
348 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800349 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800350 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "test_regression": [False],
352 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800354 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100355 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800356 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800358 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800360 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800361 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800362 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800363 "lazy": ["OFF"],
364 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100365 },
366 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100368 }
Minos Galanakisea421232019-06-20 17:11:28 +0100369
Xinyu Zhangb708f572020-09-15 11:43:46 +0800370config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800371 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800372 "toolchain_file": ["toolchain_GNUARM.cmake",
373 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800374 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800375 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800376 "test_regression": [False],
377 "test_psa_api": ["IPC"],
378 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800379 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800381 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800382 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800383 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800384 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800385 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800386 "lazy": ["OFF"],
387 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800388 },
389 "common_params": _common_tfm_builder_cfg,
390 "invalid": _common_tfm_invalid_configs + []
391 }
392
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800393config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800394 "tfm_platform": ["cypress/psoc64"],
395 "toolchain_file": ["toolchain_GNUARM.cmake",
396 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800397 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800398 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800399 "test_regression": [True],
400 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800401 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800402 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800403 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800404 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800405 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800406 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800407 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800408 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800409 "lazy": ["OFF"],
410 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800411 },
412 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800413 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800414 }
415
Arthur She19c0e1a2021-06-02 11:06:19 -0700416config_STM32L562E_DK = {"seed_params": {
417 "tfm_platform": ["stm/stm32l562e_dk"],
418 "toolchain_file": ["toolchain_GNUARM.cmake",
419 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800420 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700421 "isolation_level": ["1", "2", "3"],
422 "test_regression": [True],
423 "test_psa_api": ["OFF"],
424 "cmake_build_type": ["Release"],
425 "with_otp": ["off"],
426 "with_bl2": [True],
427 "with_ns": [True],
428 "profile": [""],
429 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800430 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800431 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800432 "lazy": ["OFF"],
433 "extra_params": ["CRYPTO_OFF", "NS_ATTEST_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700434 },
435 "common_params": _common_tfm_builder_cfg,
436 "invalid": _common_tfm_invalid_configs + []
437 }
438
Arthur Shef3657742021-09-07 14:23:18 -0700439config_LPCXPRESSO55S69 = {"seed_params": {
440 "tfm_platform": ["nxp/lpcxpresso55s69"],
441 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800442 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700443 "isolation_level": ["2"],
444 "test_regression": [True, False],
445 "test_psa_api": ["OFF"],
446 "cmake_build_type": ["Relwithdebinfo"],
447 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800448 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700449 "with_ns": [True],
450 "profile": ["profile_medium"],
451 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800452 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800453 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800454 "lazy": ["OFF"],
455 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800456 },
457 "common_params": _common_tfm_builder_cfg,
458 "invalid": _common_tfm_invalid_configs + []
459 }
460
461config_FP = {"seed_params": {
462 "tfm_platform": ["arm/musca_s1"],
463 "toolchain_file": ["toolchain_GNUARM.cmake",
464 "toolchain_ARMCLANG.cmake"],
465 "lib_model": [False],
466 "isolation_level": ["1", "2"],
467 "test_regression": [True],
468 "test_psa_api": ["OFF"],
469 "cmake_build_type": ["Release"],
470 "with_otp": ["off"],
471 "with_bl2": [True],
472 "with_ns": [True],
473 "profile": [""],
474 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800475 "mmio": ["OFF"],
476 "fp": ["0", "1", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800477 "lazy": ["ON", "OFF"],
478 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -0700479 },
480 "common_params": _common_tfm_builder_cfg,
481 "invalid": _common_tfm_invalid_configs + []
482 }
483
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800484config_corstone1000 = {"seed_params": {
485 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800486 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800487 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800488 "isolation_level": ["1"],
489 "test_regression": [False],
490 "test_psa_api": ["OFF"],
491 "cmake_build_type": ["Debug"],
492 "with_otp": ["off"],
493 "with_bl2": [True],
494 "with_ns": [False],
495 "profile": [""],
496 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800497 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800498 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800499 "lazy": ["OFF"],
500 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800501 },
502 "common_params": _common_tfm_builder_cfg,
503 "invalid": _common_tfm_invalid_configs + []
504 }
505
Minos Galanakisea421232019-06-20 17:11:28 +0100506config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800507 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800508 "toolchain_file": ["toolchain_GNUARM.cmake",
509 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800510 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "isolation_level": ["1", "2"],
512 "test_regression": [True, False],
513 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100514 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800515 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800516 "with_bl2": [True, False],
517 "with_ns": [True, False],
518 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800519 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800520 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800521 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800522 "lazy": ["OFF"],
523 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100524 },
525 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800526 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100527 }
528
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800530 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
531 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800532 "toolchain_file": ["toolchain_GNUARM.cmake",
533 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800534 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "isolation_level": ["1", "2"],
536 "test_regression": [True, False],
537 "test_psa_api": ["OFF"],
538 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800539 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800540 "with_bl2": [True, False],
541 "with_ns": [True, False],
542 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800543 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800544 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800545 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800546 "lazy": ["OFF"],
547 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800548 },
Minos Galanakisea421232019-06-20 17:11:28 +0100549 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800550 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100551 }
552
Minos Galanakisea421232019-06-20 17:11:28 +0100553config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800554 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
555 "arm/musca_b1/sse_200",
556 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700557 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700558 "stm/stm32l562e_dk",
559 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800560 "toolchain_file": ["toolchain_GNUARM.cmake",
561 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800562 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800563 "isolation_level": ["1", "2"],
564 "test_regression": [True, False],
565 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800566 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800567 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800568 "with_bl2": [True, False],
569 "with_ns": [True, False],
570 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800571 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800572 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800573 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800574 "lazy": ["OFF"],
575 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100576 },
577 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800578 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800579 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800580 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800581 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang67612992021-12-20 14:11:27 +0800582 True, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800583 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800584 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800585 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800586 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800587 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800588 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800589 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800590 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800592 }
593
Karl Zhangaff558a2020-05-15 14:28:23 +0100594config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800595 "tfm_platform": ["arm/mps2/an521",
596 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "toolchain_file": ["toolchain_ARMCLANG.cmake",
598 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800599 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800600 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 "test_regression": [True, False],
602 "test_psa_api": ["OFF"],
603 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800604 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800605 "with_bl2": [True],
606 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800607 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800608 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800609 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800610 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800611 "lazy": ["OFF"],
612 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 },
614 "common_params": _common_tfm_builder_cfg,
615 "invalid": _common_tfm_invalid_configs + []
616 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800617
Karl Zhangaff558a2020-05-15 14:28:23 +0100618config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800619 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 "toolchain_file": ["toolchain_ARMCLANG.cmake",
621 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800622 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800623 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 "test_regression": [True, False],
625 "test_psa_api": ["OFF"],
626 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800627 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800628 "with_bl2": [True],
629 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800631 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800632 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800633 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800634 "lazy": ["OFF"],
635 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 },
637 "common_params": _common_tfm_builder_cfg,
638 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800639 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800640 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800641 ]
642 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100643
Karl Zhang14573bc2020-06-08 09:23:21 +0800644config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800645 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
646 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800647 "toolchain_file": ["toolchain_ARMCLANG.cmake",
648 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800649 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800650 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 "test_regression": [True, False],
652 "test_psa_api": ["OFF"],
653 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800654 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800655 "with_bl2": [True],
656 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800657 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800658 "partition_ps": ["ON", "OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800659 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800660 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800661 "lazy": ["OFF"],
662 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800663 },
664 "common_params": _common_tfm_builder_cfg,
665 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800666 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800667 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800668 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800669 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800670 "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800671 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800672 "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800673 ]
674 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800675
Karl Zhangaff558a2020-05-15 14:28:23 +0100676config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800677 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "toolchain_file": ["toolchain_ARMCLANG.cmake",
679 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800680 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800681 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800682 "test_regression": [True, False],
683 "test_psa_api": ["OFF"],
684 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800685 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800686 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800687 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800689 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800690 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800691 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800692 "lazy": ["OFF"],
693 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 },
695 "common_params": _common_tfm_builder_cfg,
696 "invalid": _common_tfm_invalid_configs + []
697 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100698
Minos Galanakisea421232019-06-20 17:11:28 +0100699config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800700 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 "toolchain_file": ["toolchain_ARMCLANG.cmake",
702 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800703 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800704 "isolation_level": ["1", "2"],
705 "test_regression": [True, False],
706 "test_psa_api": ["OFF"],
707 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800708 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800709 "with_bl2": [True],
710 "with_ns": [True, False],
711 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800712 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800713 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800714 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800715 "lazy": ["OFF"],
716 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800717 },
718 "common_params": _common_tfm_builder_cfg,
719 "invalid": _common_tfm_invalid_configs + []
720 }
Minos Galanakisea421232019-06-20 17:11:28 +0100721
Mark Horvath8d281cd2020-12-07 15:20:26 +0100722config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800723 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100724 "toolchain_file": ["toolchain_ARMCLANG.cmake",
725 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800726 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100727 "isolation_level": ["1"],
728 "test_regression": [False],
729 "test_psa_api": ["OFF"],
730 "cmake_build_type": ["Debug", "Release"],
731 "with_otp": ["off"],
732 "with_bl2": [True],
733 "with_ns": [False],
734 "profile": [""],
735 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800736 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800737 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800738 "lazy": ["OFF"],
739 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100740 },
741 "common_params": _common_tfm_builder_cfg,
742 "invalid": _common_tfm_invalid_configs + []
743 }
744
Karl Zhangeffed972020-06-30 15:48:01 +0800745config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800746 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 "toolchain_file": ["toolchain_ARMCLANG.cmake",
748 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800749 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800750 "isolation_level": ["1", "2"],
751 "test_regression": [True, False],
752 "test_psa_api": ["OFF"],
753 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800754 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800755 "with_bl2": [True],
756 "with_ns": [True, False],
757 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800758 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800759 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800760 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800761 "lazy": ["OFF"],
762 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800763 },
764 "common_params": _common_tfm_builder_cfg,
765 "invalid": _common_tfm_invalid_configs + []
766 }
Karl Zhangeffed972020-06-30 15:48:01 +0800767
Karl Zhangaff558a2020-05-15 14:28:23 +0100768config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800769 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
770 "arm/musca_b1/sse_200", "arm/musca_s1",
771 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800772 "toolchain_file": ["toolchain_ARMCLANG.cmake",
773 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800774 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800775 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800776 "test_regression": [True, False],
777 "test_psa_api": ["OFF"],
778 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800779 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 "with_bl2": [True, False],
781 "with_ns": [True, False],
782 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800783 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800784 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800785 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800786 "lazy": ["OFF"],
787 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800788 },
789 "common_params": _common_tfm_builder_cfg,
790 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800791 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800792 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800793 ]
794 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100795
796# Configure build manager to build several combinations
797config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800798 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
799 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800800 "toolchain_file": ["toolchain_GNUARM.cmake",
801 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800802 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "isolation_level": ["1", "2"],
804 "test_regression": [False],
805 "test_psa_api": ["IPC",
806 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800808 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800809 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800810 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800811 "with_bl2": [True],
812 "with_ns": [True, False],
813 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800814 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800815 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800816 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800817 "lazy": ["OFF"],
818 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100819 },
820 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800821 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800822 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800823 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800824 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100825 }
826
Karl Zhangaff558a2020-05-15 14:28:23 +0100827config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800828 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
829 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800830 "toolchain_file": ["toolchain_GNUARM.cmake",
831 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800832 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 "isolation_level": ["1", "2"],
834 "test_regression": [False],
835 "test_psa_api": ["IPC"],
836 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800837 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800838 "with_bl2": [True],
839 "with_ns": [True, False],
840 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800841 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800842 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800843 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800844 "lazy": ["OFF"],
845 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100846 },
847 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800848 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800849 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800850 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800851 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100852 }
853
Karl Zhang14573bc2020-06-08 09:23:21 +0800854config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800855 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
856 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800857 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800858 "toolchain_file": ["toolchain_GNUARM.cmake",
859 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800860 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800861 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800862 "test_regression": [True, False],
863 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800864 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800865 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800866 "with_bl2": [True],
867 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800868 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800869 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800870 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800871 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800872 "lazy": ["OFF"],
873 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800874 },
875 "common_params": _common_tfm_builder_cfg,
876 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800877 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800878 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800879 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800880 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800881 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang67612992021-12-20 14:11:27 +0800882 True, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800883 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800884 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800885 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800886 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800887 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800888 "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800889 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800890 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800891 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang67612992021-12-20 14:11:27 +0800892 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800893 ]
894 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800895
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800896config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800897 "tfm_platform": ["arm/mps2/an521"],
898 "toolchain_file": ["toolchain_GNUARM.cmake",
899 "toolchain_ARMCLANG.cmake"],
900 "lib_model": [True, False],
901 "isolation_level": ["1", "2", "3"],
902 "test_regression": [True],
903 "test_psa_api": ["OFF"],
904 "cmake_build_type": ["Debug"],
905 "with_otp": ["off"],
906 "with_bl2": [True],
907 "with_ns": [True],
908 "profile": [""],
909 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800910 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800911 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800912 "lazy": ["OFF"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800913 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800914 },
915 "common_params": _common_tfm_builder_cfg,
916 "invalid": _common_tfm_invalid_configs + []
917 }
918
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800919config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800920 "tfm_platform": ["arm/mps2/an521"],
921 "toolchain_file": ["toolchain_GNUARM.cmake",
922 "toolchain_ARMCLANG.cmake"],
923 "lib_model": [False],
924 "isolation_level": ["1"],
925 "test_regression": [True],
926 "test_psa_api": ["OFF"],
927 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
928 "with_otp": ["off"],
929 "with_bl2": [True],
930 "with_ns": [True],
931 "profile": [""],
932 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800933 "mmio": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800934 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800935 "lazy": ["OFF"],
936 "extra_params": [""]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800937 },
938 "common_params": _common_tfm_builder_cfg,
939 "invalid": _common_tfm_invalid_configs + []
940 }
941
Karl Zhang14573bc2020-06-08 09:23:21 +0800942config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800943 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
944 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800945 "toolchain_file": ["toolchain_ARMCLANG.cmake",
946 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800947 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800948 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949 "test_regression": [True, False],
950 "test_psa_api": ["OFF"],
951 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800952 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800953 "with_bl2": [True],
954 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800955 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800956 "partition_ps": ["ON", "OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800957 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800958 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800959 "lazy": ["OFF"],
960 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800961 },
962 "common_params": _common_tfm_builder_cfg,
963 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800964 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800965 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800966 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800967 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800968 "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800969 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +0800970 "*", "*", "profile_large", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800971 ]
972 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800973
Karl Zhang14573bc2020-06-08 09:23:21 +0800974config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800975 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
976 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800977 "toolchain_file": ["toolchain_GNUARM.cmake",
978 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800979 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800980 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800981 "test_regression": [False],
982 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800983 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800984 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800985 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800986 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800987 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800988 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800989 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800990 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800991 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800992 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800993 "lazy": ["OFF"],
994 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800995 },
996 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800997 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800998 }
999
Karl Zhang14573bc2020-06-08 09:23:21 +08001000config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001001 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
1002 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001003 "toolchain_file": ["toolchain_GNUARM.cmake",
1004 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001005 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001006 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001007 "test_regression": [False],
1008 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001009 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001010 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001011 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001012 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001013 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001014 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001015 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001016 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001017 "lazy": ["OFF"],
1018 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001019 },
1020 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001021 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001022 }
1023
Karl Zhang14573bc2020-06-08 09:23:21 +08001024config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001025 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001026 "toolchain_file": ["toolchain_GNUARM.cmake",
1027 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001028 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001029 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001030 "test_regression": [True],
1031 "test_psa_api": ["OFF"],
1032 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001033 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001034 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001035 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001036 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001037 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001038 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001039 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001040 "lazy": ["OFF"],
1041 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001042 },
1043 "common_params": _common_tfm_builder_cfg,
1044 "invalid": _common_tfm_invalid_configs + []
1045 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001046
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001047config_nightly_psoc64 = {"seed_params": {
1048 "tfm_platform": ["cypress/psoc64"],
1049 "toolchain_file": ["toolchain_GNUARM.cmake",
1050 "toolchain_ARMCLANG.cmake"],
1051 "lib_model": [False],
1052 "isolation_level": ["1", "2"],
1053 "test_regression": [True],
1054 "test_psa_api": ["OFF"],
1055 "cmake_build_type": ["Release"],
1056 "with_otp": ["off"],
1057 "with_bl2": [False],
1058 "with_ns": [True],
1059 "profile": [""],
1060 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001061 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001062 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001063 "lazy": ["OFF"],
1064 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001065 },
1066 "common_params": _common_tfm_builder_cfg,
1067 "invalid": _common_tfm_invalid_configs + []
1068 }
1069
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001070config_nightly_STM32L562E_DK = {"seed_params": {
1071 "tfm_platform": ["stm/stm32l562e_dk"],
1072 "toolchain_file": ["toolchain_GNUARM.cmake",
1073 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001074 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001075 "isolation_level": ["1", "2", "3"],
1076 "test_regression": [True],
1077 "test_psa_api": ["OFF"],
1078 "cmake_build_type": ["Release"],
1079 "with_otp": ["off"],
1080 "with_bl2": [True],
1081 "with_ns": [True],
1082 "profile": [""],
1083 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001084 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001085 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001086 "lazy": ["OFF"],
1087 "extra_params": ["CRYPTO_OFF", "NS_ATTEST_ON"]
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001088 },
1089 "common_params": _common_tfm_builder_cfg,
1090 "invalid": _common_tfm_invalid_configs + []
1091 }
1092
Arthur Shef3657742021-09-07 14:23:18 -07001093config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1094 "tfm_platform": ["nxp/lpcxpresso55s69"],
1095 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001096 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001097 "isolation_level": ["2"],
1098 "test_regression": [True, False],
1099 "test_psa_api": ["OFF"],
1100 "cmake_build_type": ["Relwithdebinfo"],
1101 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001102 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001103 "with_ns": [True],
1104 "profile": ["profile_medium"],
1105 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001106 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001107 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001108 "lazy": ["OFF"],
1109 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001110 },
1111 "common_params": _common_tfm_builder_cfg,
1112 "invalid": _common_tfm_invalid_configs + []
1113 }
1114
1115config_nightly_FP = {"seed_params": {
1116 "tfm_platform": ["arm/musca_s1"],
1117 "toolchain_file": ["toolchain_GNUARM.cmake",
1118 "toolchain_ARMCLANG.cmake"],
1119 "lib_model": [False],
1120 "isolation_level": ["1", "2"],
1121 "test_regression": [True],
1122 "test_psa_api": ["OFF"],
1123 "cmake_build_type": ["Debug"],
1124 "with_otp": ["off"],
1125 "with_bl2": [True],
1126 "with_ns": [True],
1127 "profile": [""],
1128 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001129 "mmio": ["OFF"],
1130 "fp": ["0", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001131 "lazy": ["ON", "OFF"],
1132 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -07001133 },
1134 "common_params": _common_tfm_builder_cfg,
1135 "invalid": _common_tfm_invalid_configs + []
1136 }
1137
Karl Zhang14573bc2020-06-08 09:23:21 +08001138config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001139 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001140 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001141 "toolchain_file": ["toolchain_GNUARM.cmake",
1142 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001143 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001144 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001145 "test_regression": [True],
1146 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001147 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001148 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001149 "with_bl2": [True],
1150 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001151 "profile": ["", "profile_small", "profile_medium"],
1152 "partition_ps": ["ON", "OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001153 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001154 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001155 "lazy": ["OFF"],
1156 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001157 },
1158 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001159 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001160 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001161 True, "1", False, "OFF", "Debug",
Xinyu Zhang67612992021-12-20 14:11:27 +08001162 "off", True, True, "", "ON", "OFF", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001163 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001164 False, "2", False, "OFF", "Debug",
Xinyu Zhang67612992021-12-20 14:11:27 +08001165 "off", True, True, "", "ON", "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, "3", False, "OFF", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001168 "off", True, True, "", "ON", "OFF", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001169 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001170 False, "2", False, "OFF", "Debug",
Xinyu Zhang67612992021-12-20 14:11:27 +08001171 "off", True, True, "profile_medium", "ON", "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, "3", False, "OFF", "Debug",
Xinyu Zhang67612992021-12-20 14:11:27 +08001174 "off", True, True, "profile_large", "ON", "OFF", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001175 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001176 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1177 False, "2", True, "OFF", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001178 "off", True, True, "profile_medium", "OFF", "OFF", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001179 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001180 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1181 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhang67612992021-12-20 14:11:27 +08001182 "off", True, True, "", "ON", "OFF", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001183 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001184 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1185 False, "1", True, "OFF", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001186 "off", True, True, "", "ON", "OFF", "0", "OFF", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001187 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001188 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1189 False, "2", True, "OFF", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001190 "off", True, True, "", "ON", "OFF", "0", "OFF", "NS_ATTEST_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001191 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001192 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1193 False, "3", True, "OFF", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001194 "off", True, True, "", "ON", "OFF", "0", "OFF", "CRYPTO_OFF"),
Feder Liang567e8c22021-10-26 14:16:21 +08001195 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_SFP2_SLAZY
1196 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1197 False, "2", True, "OFF", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001198 "off", True, True, "", "ON", "OFF", "2", "ON", ""),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001199 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001200 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001201 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001202 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001203 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001204 # valid configs supported by TF-M but not needed in per-patch
1205 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001206 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001207 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang67612992021-12-20 14:11:27 +08001208 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001209 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang67612992021-12-20 14:11:27 +08001210 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001211 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang67612992021-12-20 14:11:27 +08001212 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001213 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang67612992021-12-20 14:11:27 +08001214 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001215 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang67612992021-12-20 14:11:27 +08001216 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001217 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001218 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001219 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001220 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001221 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001222 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001223 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001224 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001225 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001226 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001227 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001228 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001229 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001230 "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001231 ]
1232 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001233
Karl Zhang14573bc2020-06-08 09:23:21 +08001234config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001235 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001237 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001238 "isolation_level": ["1", "2"],
1239 "test_regression": [True],
1240 "test_psa_api": ["OFF"],
1241 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001242 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001243 "with_bl2": [True],
1244 "with_ns": [True, False],
1245 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001246 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001247 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001248 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001249 "lazy": ["OFF"],
1250 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001251 },
1252 "common_params": _common_tfm_builder_cfg,
1253 "invalid": _common_tfm_invalid_configs + []
1254 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001255
1256# Configure build manager to build several combinations
1257config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001258 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001259 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001260 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001261 "isolation_level": ["2"],
1262 "test_regression": [False],
1263 "test_psa_api": ["IPC",
1264 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001265 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001266 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001267 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001268 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001269 "with_bl2": [True],
1270 "with_ns": [True, False],
1271 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001272 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001273 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001274 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001275 "lazy": ["OFF"],
1276 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001277 },
1278 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001279 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001280 }
1281
Karl Zhang14573bc2020-06-08 09:23:21 +08001282config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001283 "tfm_platform": ["cypress/psoc64"],
1284 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001285 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001286 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001287 "test_regression": [True],
1288 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001289 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001290 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001291 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001292 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001293 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001294 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001295 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001296 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001297 "lazy": ["OFF"],
1298 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001299 },
1300 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001301 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001302 }
1303
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001304config_cov_an519 = {"seed_params": {
1305 "tfm_platform": ["arm/mps2/an519"],
1306 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001307 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001308 "isolation_level": ["1", "2", "3"],
1309 "test_regression": [True, False],
1310 "test_psa_api": ["OFF"],
1311 "cmake_build_type": ["Debug", "Release"],
1312 "with_otp": ["off"],
1313 "with_bl2": [True],
1314 "with_ns": [True],
1315 "profile": ["", "profile_small", "profile_medium"],
1316 "partition_ps": ["ON", "OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001317 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001318 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001319 "lazy": ["OFF"],
1320 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001321 },
1322 "common_params": _common_tfm_builder_cfg,
1323 "invalid": _common_tfm_invalid_configs + []
1324 }
1325
1326config_cov_an521 = {"seed_params": {
1327 "tfm_platform": ["arm/mps2/an521"],
1328 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001329 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001330 "isolation_level": ["1", "2", "3"],
1331 "test_regression": [True, False],
1332 "test_psa_api": ["OFF"],
1333 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1334 "with_otp": ["off"],
1335 "with_bl2": [True],
1336 "with_ns": [True],
1337 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1338 "partition_ps": ["ON", "OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001339 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001340 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001341 "lazy": ["OFF"],
1342 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001343 },
1344 "common_params": _common_tfm_builder_cfg,
1345 "invalid": _common_tfm_invalid_configs + []
1346 }
1347
Minos Galanakisea421232019-06-20 17:11:28 +01001348# Configruation used for document building
1349config_doxygen = {"common_params": {
1350 "config_type": "tf-m_documents",
1351 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001352 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001353 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001354 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001355 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001356 "cmake --build ./ -- docs"]},
1357 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1358 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001359 r'/(\w+\.(?:html|md|pdf))$',
1360 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001361 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001362 }
1363
Karl Zhangaff558a2020-05-15 14:28:23 +01001364# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001365config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001366 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001367 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001368 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001369 "isolation_level": ["1"],
1370 "test_regression": [False],
1371 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001372 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001373 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001374 "with_bl2": [True],
1375 "with_ns": [True],
1376 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001377 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001378 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001379 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001380 "lazy": ["OFF"],
1381 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001382 },
1383 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001384 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001385 }
1386
Dean Birch4c6ad622020-03-13 11:28:03 +00001387# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001388config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001389 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001390 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1391 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001392 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001393 "isolation_level": ["1", "2"],
1394 "test_regression": [True, False],
1395 "test_psa_api": ["OFF"],
1396 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001397 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001398 "with_bl2": [True, False],
1399 "with_ns": [True],
1400 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001401 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001402 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001403 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001404 "lazy": ["OFF"],
1405 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001406 },
1407 "common_params": _common_tfm_builder_cfg,
1408 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001409 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001410 "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001411 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001412 "*", "*", False, "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001413 ]
1414 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001415
Xinyu Zhangb708f572020-09-15 11:43:46 +08001416config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001417 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001418 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001419 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001420 "isolation_level": ["1", "2"],
1421 "test_regression": [True],
1422 "test_psa_api": ["OFF"],
1423 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001424 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001425 "with_bl2": [True, False],
1426 "with_ns": [True, False],
1427 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001428 "partition_ps": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001429 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001430 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001431 "lazy": ["OFF"],
1432 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001433 },
1434 "common_params": _common_tfm_builder_cfg,
1435 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001436 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang67612992021-12-20 14:11:27 +08001437 "*", "*", True, "*", "*", "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001438 ]
1439 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001440
Xinyu Zhang38b76742021-11-11 13:57:56 +08001441config_an547 = {"seed_params": {
1442 "tfm_platform": ["arm/mps3/an547"],
1443 "toolchain_file": ["toolchain_GNUARM.cmake"],
1444 "lib_model": [False],
1445 "isolation_level": ["1"],
1446 "test_regression": [False],
1447 "test_psa_api": ["OFF"],
1448 "cmake_build_type": ["Debug"],
1449 "with_otp": ["off"],
1450 "with_bl2": [True],
1451 "with_ns": [False],
1452 "profile": [""],
1453 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001454 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001455 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001456 "lazy": ["OFF"],
1457 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001458 },
1459 "common_params": _common_tfm_builder_cfg,
1460 "invalid": _common_tfm_invalid_configs + []
1461 }
1462
1463config_corstone_polaris = {"seed_params": {
1464 "tfm_platform": ["arm/mps3/corstone_polaris"],
1465 "toolchain_file": ["toolchain_GNUARM.cmake"],
1466 "lib_model": [False],
1467 "isolation_level": ["1"],
1468 "test_regression": [False],
1469 "test_psa_api": ["OFF"],
1470 "cmake_build_type": ["Debug"],
1471 "with_otp": ["off"],
1472 "with_bl2": [True],
1473 "with_ns": [False],
1474 "profile": [""],
1475 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001476 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001477 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001478 "lazy": ["OFF"],
1479 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001480 },
1481 "common_params": _common_tfm_builder_cfg,
1482 "invalid": _common_tfm_invalid_configs + []
1483 }
1484
1485config_bl5340 = {"seed_params": {
1486 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1487 "toolchain_file": ["toolchain_GNUARM.cmake"],
1488 "lib_model": [False],
1489 "isolation_level": ["1"],
1490 "test_regression": [False],
1491 "test_psa_api": ["OFF"],
1492 "cmake_build_type": ["Debug"],
1493 "with_otp": ["off"],
1494 "with_bl2": [True],
1495 "with_ns": [False],
1496 "profile": [""],
1497 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001498 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001499 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001500 "lazy": ["OFF"],
1501 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001502 },
1503 "common_params": _common_tfm_builder_cfg,
1504 "invalid": _common_tfm_invalid_configs + []
1505 }
1506
1507config_nrf5340dk = {"seed_params": {
1508 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1509 "toolchain_file": ["toolchain_GNUARM.cmake"],
1510 "lib_model": [False],
1511 "isolation_level": ["1"],
1512 "test_regression": [False],
1513 "test_psa_api": ["OFF"],
1514 "cmake_build_type": ["Debug"],
1515 "with_otp": ["off"],
1516 "with_bl2": [True],
1517 "with_ns": [False],
1518 "profile": [""],
1519 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001520 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001521 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001522 "lazy": ["OFF"],
1523 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001524 },
1525 "common_params": _common_tfm_builder_cfg,
1526 "invalid": _common_tfm_invalid_configs + []
1527 }
1528
1529config_nrf9160dk = {"seed_params": {
1530 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1531 "toolchain_file": ["toolchain_GNUARM.cmake"],
1532 "lib_model": [False],
1533 "isolation_level": ["1"],
1534 "test_regression": [False],
1535 "test_psa_api": ["OFF"],
1536 "cmake_build_type": ["Debug"],
1537 "with_otp": ["off"],
1538 "with_bl2": [True],
1539 "with_ns": [False],
1540 "profile": [""],
1541 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001542 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001543 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001544 "lazy": ["OFF"],
1545 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001546 },
1547 "common_params": _common_tfm_builder_cfg,
1548 "invalid": _common_tfm_invalid_configs + []
1549 }
1550
1551config_m2351 = {"seed_params": {
1552 "tfm_platform": ["nuvoton/m2351"],
1553 "toolchain_file": ["toolchain_GNUARM.cmake"],
1554 "lib_model": [False],
1555 "isolation_level": ["1"],
1556 "test_regression": [False],
1557 "test_psa_api": ["OFF"],
1558 "cmake_build_type": ["Release"],
1559 "with_otp": ["off"],
1560 "with_bl2": [True],
1561 "with_ns": [False],
1562 "profile": [""],
1563 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001564 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001565 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001566 "lazy": ["OFF"],
1567 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001568 },
1569 "common_params": _common_tfm_builder_cfg,
1570 "invalid": _common_tfm_invalid_configs + []
1571 }
1572
1573config_m2354 = {"seed_params": {
1574 "tfm_platform": ["nuvoton/m2354"],
1575 "toolchain_file": ["toolchain_GNUARM.cmake"],
1576 "lib_model": [False],
1577 "isolation_level": ["1"],
1578 "test_regression": [False],
1579 "test_psa_api": ["OFF"],
1580 "cmake_build_type": ["Debug"],
1581 "with_otp": ["off"],
1582 "with_bl2": [True],
1583 "with_ns": [False],
1584 "profile": [""],
1585 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001586 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001587 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001588 "lazy": ["OFF"],
1589 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001590 },
1591 "common_params": _common_tfm_builder_cfg,
1592 "invalid": _common_tfm_invalid_configs + []
1593 }
1594
1595config_b_u585i_iot02a = {"seed_params": {
1596 "tfm_platform": ["stm/b_u585i_iot02a"],
1597 "toolchain_file": ["toolchain_GNUARM.cmake"],
1598 "lib_model": [False],
1599 "isolation_level": ["1"],
1600 "test_regression": [False],
1601 "test_psa_api": ["OFF"],
1602 "cmake_build_type": ["Release"],
1603 "with_otp": ["off"],
1604 "with_bl2": [True],
1605 "with_ns": [False],
1606 "profile": [""],
1607 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001608 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001609 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001610 "lazy": ["OFF"],
1611 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001612 },
1613 "common_params": _common_tfm_builder_cfg,
1614 "invalid": _common_tfm_invalid_configs + []
1615 }
1616
1617config_nucleo_l552ze_q = {"seed_params": {
1618 "tfm_platform": ["stm/nucleo_l552ze_q"],
1619 "toolchain_file": ["toolchain_GNUARM.cmake"],
1620 "lib_model": [False],
1621 "isolation_level": ["1"],
1622 "test_regression": [False],
1623 "test_psa_api": ["OFF"],
1624 "cmake_build_type": ["Release"],
1625 "with_otp": ["off"],
1626 "with_bl2": [True],
1627 "with_ns": [False],
1628 "profile": [""],
1629 "partition_ps": ["ON"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001630 "mmio": ["OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001631 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001632 "lazy": ["OFF"],
1633 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001634 },
1635 "common_params": _common_tfm_builder_cfg,
1636 "invalid": _common_tfm_invalid_configs + []
1637 }
1638
Karl Zhangaff558a2020-05-15 14:28:23 +01001639_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001640 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001641 "tfm_test": config_tfm_test,
1642 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001643 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001644 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001645 "tfm_nsce": config_nsce,
1646 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001647 "psa_api": config_PSA_API,
1648 "psa_api_otp": config_PSA_API_OTP,
1649 "psa_ff": config_PSA_FF,
1650 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001651 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001652 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001653 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001654 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001655
1656 #nightly test group
1657 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001658 "nightly_nsce": config_nsce,
1659 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001660 "nightly_profile": config_nightly_profile,
1661 "nightly_psa_api": config_nightly_PSA_API,
1662 "nightly_ff": config_nightly_PSA_FF,
1663 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001664 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001665 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001666 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001667 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001668
1669 #per patch test group
1670 "pp_test": config_pp_test,
1671 "pp_OTP": config_pp_OTP,
1672 "pp_PSA_API": config_pp_PSA_API,
1673 "pp_psoc64": config_pp_PSoC64,
1674
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001675 #code coverage test group
1676 "coverage_an519": config_cov_an519,
1677 "coverage_an521": config_cov_an521,
1678
Xinyu Zhang38b76742021-11-11 13:57:56 +08001679 #extra build group
1680 "arm_corstone1000": config_corstone1000,
1681 "arm_an547": config_an547,
1682 "arm_corstone_polaris": config_corstone_polaris,
1683 "cypress_psoc64": config_PSOC64,
1684 "laird_bl5340": config_bl5340,
1685 "nordic_nrf5340dk": config_nrf5340dk,
1686 "nordic_nrf9160dk": config_nrf9160dk,
1687 "nuvoton_m2351": config_m2351,
1688 "nuvoton_m2354": config_m2354,
1689 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1690 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1691 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1692 "stm_stm32l562e_dk": config_STM32L562E_DK,
1693
Karl Zhang14573bc2020-06-08 09:23:21 +08001694 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001695 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001696
1697 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001698 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001699 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001700 "an521_psa_api": config_AN521_PSA_API,
1701 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001702 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001703 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001704 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001705 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001706 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001707 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001708 "ipc": config_IPC,
1709 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001710 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001711 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001712 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001713
1714 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001715 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001716 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001717
1718if __name__ == '__main__':
1719 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001720
Minos Galanakisea421232019-06-20 17:11:28 +01001721 # Default behavior is to export refference config when called
1722 _dir = os.getcwd()
1723 from utils import save_json
1724 for _cname, _cfg in _builtin_configs.items():
1725 _fname = os.path.join(_dir, _cname + ".json")
1726 print("Exporting config %s" % _fname)
1727 save_json(_fname, _cfg)