blob: 427d97f88d0bffad771f68f8dc6552f0ede3e5e6 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Xinyu Zhangeb442a12021-02-01 15:16:19 +080011 * Copyright (c) 2018-2021, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
33 "toolchain_file",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080034 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080043 "partition_ps",
Feder Liang567e8c22021-10-26 14:16:21 +080044 "fp",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080045 "lazy",
46 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010047
48 # Keys for the templace will come from the combinations of parameters
49 # provided in the seed dictionary.
50
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "config_template": "cmake " + \
52 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010053 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080054 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
56 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
57 "-DTEST_PSA_API=%(test_psa_api)s " + \
58 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
59 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
60 "-DBL2=%(with_bl2)s " + \
61 "-DNS=%(with_ns)s " + \
62 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
63 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
64 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
65 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
66 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080067 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Feder Liang567e8c22021-10-26 14:16:21 +080068 "-DCONFIG_TFM_SPE_FP=%(fp)s " + \
69 "-DCONFIG_TFM_LAZY_STACKING_SPE=%(lazy)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080070 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080071 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010072
Minos Galanakisea421232019-06-20 17:11:28 +010073 # A small subset of string substitution params is allowed in commands.
74 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
75 # _tbm_target_platform_ with the paths set when building
76
Xinyu Zhangb708f572020-09-15 11:43:46 +080077 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010078 r'/(\w+\.(?:axf|bin|hex))$'),
79
80 # ALL commands will be executed for every build.
81 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010082 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080083 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010084 "%(_tbm_build_dir_)s/bin/"
85 "bl2.bin "
86 "-Binary -offset 0xA000000 "
87 "-fill 0xFF 0xA000000 0xA020000 "
88 "%(_tbm_build_dir_)s/bin/"
89 "tfm_s_ns_signed.bin "
90 "-Binary -offset 0xA020000 "
91 "-fill 0xFF 0xA020000 0xA200000 "
92 "-o %(_tbm_build_dir_)s/bin/"
93 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080094 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080095 "%(_tbm_build_dir_)s/bin/"
96 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080097 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000098 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080099 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800100 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000101 "-Binary -offset 0xA020000 "
102 "-fill 0xFF 0xA020000 0xA200000 "
103 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700104 "tfm.hex -Intel")],
105 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
106 "%(_tbm_build_dir_)s/postbuild.sh;"
107 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700108 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
109 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800110 "popd")],
111 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
112 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
113 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
114 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
115 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
116 "python3 ./${FLASH_FILE};"
117 "cd %(_tbm_build_dir_)s/bin;"
118 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
119 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
120 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100121 },
122
123 # (Optional) If set will fail if those artefacts are missing post build
124 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800125 "%(_tbm_build_dir_)s/bin/"
126 "tfm_s.bin",
127 "%(_tbm_build_dir_)s/bin/"
128 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800129 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800130 "%(_tbm_build_dir_)s/bin/"
131 "tfm.hex",
132 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800133 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800134 "%(_tbm_build_dir_)s/bin/"
135 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800136 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800137 "%(_tbm_build_dir_)s/bin/"
138 "tfm.hex",
139 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800140 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800141 "%(_tbm_build_dir_)s/bin/"
142 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100143 }
144}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100145
Xinyu Zhangb708f572020-09-15 11:43:46 +0800146# List of all build configs that are impossible under all circumstances
147_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800148 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800149 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*"),
150 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800151 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800152 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
153 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800154 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
155 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800156 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800157 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
158 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800159 "Release", "off", True, True, "", "ON", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800160 # LVL2 and LVL3 requires IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800161 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
162 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800163 # Regression requires NS
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800164 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800165 # psoc64 requires IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800166 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 # No PSA_ACK with regression
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800168 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
169 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
170 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
171 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800172 # PSA_ACK requires NS
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800173 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*", "*", "*"),
174 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*", "*", "*"),
175 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*", "*", "*"),
176 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800177 # PSA_ACK IPC (FF) does not support LVL3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800178 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800179 # Musca requires BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800180 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
181 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800182 # psoc64 cannot use BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800183 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800184 # psoc64 does not support Debug build type
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800185 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800186 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800187 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800188 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800189 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
190 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
191 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100192 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800193 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
194 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
195 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
199 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
200 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
201 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800202 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800203 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*", "*"),
204 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800205 # PARTITION_PS should be OFF for Profile S
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800206 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800207 # Proile M only support for IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800208 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800209 # Profile M only support for Isolation Level 2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800210 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
211 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800212 # Profile L only support for Isolation Level 3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800213 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
214 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800215 # Profile S does not support IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800216 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800217 # Profile S only supports Isolation Level 1
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800218 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
219 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800220 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800221 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
222 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
223 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
224 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
225 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700226 # stm/stm32l562e_dk uses BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800227 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700228 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800229 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700230 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800231 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700232 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800233 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
234 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700235 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800236 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800237 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800238 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800239 # FP support only for GCC
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800240 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "1", "*", "*"),
241 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "2", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800242 # FP soft only build for lazy stacking disabled
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800243 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "0", "ON", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800244 ]
245
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100246# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100247config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800248 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800249 "toolchain_file": ["toolchain_GNUARM.cmake",
250 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800251 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252 "isolation_level": ["1", "2"],
253 "test_regression": [True, False],
254 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100255 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800256 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800257 "with_bl2": [True, False],
258 "with_ns": [True, False],
259 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800260 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800261 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800262 "lazy": ["OFF"],
263 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100264 },
265 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 }
268
Karl Zhangaff558a2020-05-15 14:28:23 +0100269config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800270 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "toolchain_file": ["toolchain_GNUARM.cmake",
272 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800273 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800274 "isolation_level": ["1", "2"],
275 "test_regression": [True, False],
276 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800278 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "with_bl2": [True, False],
280 "with_ns": [True, False],
281 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800282 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800283 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800284 "lazy": ["OFF"],
285 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100286 },
287 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100289 }
290
Karl Zhangaff558a2020-05-15 14:28:23 +0100291config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800292 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
293 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800294 "toolchain_file": ["toolchain_GNUARM.cmake",
295 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800296 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800297 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "test_regression": [False],
299 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800300 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800301 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100302 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800303 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800305 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800307 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800308 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800309 "lazy": ["OFF"],
310 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100311 },
312 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100314 }
315
Karl Zhangaff558a2020-05-15 14:28:23 +0100316config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800317 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
318 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 "toolchain_file": ["toolchain_GNUARM.cmake",
320 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800321 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800322 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "test_regression": [False],
324 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100325 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800326 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800327 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800328 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800330 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800331 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800332 "lazy": ["OFF"],
333 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100334 },
335 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100337 }
338
Karl Zhangaff558a2020-05-15 14:28:23 +0100339config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800340 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341 "toolchain_file": ["toolchain_GNUARM.cmake",
342 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800343 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800344 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345 "test_regression": [False],
346 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800348 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100349 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800350 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800352 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800354 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800355 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800356 "lazy": ["OFF"],
357 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100358 },
359 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100361 }
Minos Galanakisea421232019-06-20 17:11:28 +0100362
Xinyu Zhangb708f572020-09-15 11:43:46 +0800363config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800364 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "toolchain_file": ["toolchain_GNUARM.cmake",
366 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800367 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800368 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "test_regression": [False],
370 "test_psa_api": ["IPC"],
371 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800372 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800374 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800375 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800376 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800377 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800378 "lazy": ["OFF"],
379 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 },
381 "common_params": _common_tfm_builder_cfg,
382 "invalid": _common_tfm_invalid_configs + []
383 }
384
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800385config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800386 "tfm_platform": ["cypress/psoc64"],
387 "toolchain_file": ["toolchain_GNUARM.cmake",
388 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800389 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800390 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800391 "test_regression": [True],
392 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800393 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800394 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800395 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800396 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800397 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800398 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800399 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800400 "lazy": ["OFF"],
401 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800402 },
403 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800405 }
406
Arthur She19c0e1a2021-06-02 11:06:19 -0700407config_STM32L562E_DK = {"seed_params": {
408 "tfm_platform": ["stm/stm32l562e_dk"],
409 "toolchain_file": ["toolchain_GNUARM.cmake",
410 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800411 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700412 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800413 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700414 "test_psa_api": ["OFF"],
415 "cmake_build_type": ["Release"],
416 "with_otp": ["off"],
417 "with_bl2": [True],
418 "with_ns": [True],
419 "profile": [""],
420 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800421 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800422 "lazy": ["OFF"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800423 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700424 },
425 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800426 "invalid": _common_tfm_invalid_configs + [
427 # all other tests are off when CRYPTO is ON
428 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
429 "*", "*", "*", "*", "*", "*", "CRYPTO_ON"),
430 # all other tests are ON when CRYPTO is OFF
431 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
432 "*", "*", "*", "*", "*", "*", "CRYPTO_OFF"),
433 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700434 }
435
Arthur Shef3657742021-09-07 14:23:18 -0700436config_LPCXPRESSO55S69 = {"seed_params": {
437 "tfm_platform": ["nxp/lpcxpresso55s69"],
438 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800439 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700440 "isolation_level": ["2"],
441 "test_regression": [True, False],
442 "test_psa_api": ["OFF"],
443 "cmake_build_type": ["Relwithdebinfo"],
444 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800445 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700446 "with_ns": [True],
447 "profile": ["profile_medium"],
448 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800449 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800450 "lazy": ["OFF"],
451 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800452 },
453 "common_params": _common_tfm_builder_cfg,
454 "invalid": _common_tfm_invalid_configs + []
455 }
456
457config_FP = {"seed_params": {
458 "tfm_platform": ["arm/musca_s1"],
459 "toolchain_file": ["toolchain_GNUARM.cmake",
460 "toolchain_ARMCLANG.cmake"],
461 "lib_model": [False],
462 "isolation_level": ["1", "2"],
463 "test_regression": [True],
464 "test_psa_api": ["OFF"],
465 "cmake_build_type": ["Release"],
466 "with_otp": ["off"],
467 "with_bl2": [True],
468 "with_ns": [True],
469 "profile": [""],
470 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800471 "fp": ["0", "1", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800472 "lazy": ["ON", "OFF"],
473 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -0700474 },
475 "common_params": _common_tfm_builder_cfg,
476 "invalid": _common_tfm_invalid_configs + []
477 }
478
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800479config_corstone1000 = {"seed_params": {
480 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800481 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800482 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800483 "isolation_level": ["1"],
484 "test_regression": [False],
485 "test_psa_api": ["OFF"],
486 "cmake_build_type": ["Debug"],
487 "with_otp": ["off"],
488 "with_bl2": [True],
489 "with_ns": [False],
490 "profile": [""],
491 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800492 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800493 "lazy": ["OFF"],
494 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800495 },
496 "common_params": _common_tfm_builder_cfg,
497 "invalid": _common_tfm_invalid_configs + []
498 }
499
Minos Galanakisea421232019-06-20 17:11:28 +0100500config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800501 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800502 "toolchain_file": ["toolchain_GNUARM.cmake",
503 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800504 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 "isolation_level": ["1", "2"],
506 "test_regression": [True, False],
507 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100508 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800509 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "with_bl2": [True, False],
511 "with_ns": [True, False],
512 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800513 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800514 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800515 "lazy": ["OFF"],
516 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100517 },
518 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800519 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100520 }
521
Xinyu Zhangb708f572020-09-15 11:43:46 +0800522config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800523 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
524 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 "toolchain_file": ["toolchain_GNUARM.cmake",
526 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800527 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 "isolation_level": ["1", "2"],
529 "test_regression": [True, False],
530 "test_psa_api": ["OFF"],
531 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800532 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 "with_bl2": [True, False],
534 "with_ns": [True, False],
535 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800536 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800537 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800538 "lazy": ["OFF"],
539 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800540 },
Minos Galanakisea421232019-06-20 17:11:28 +0100541 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100543 }
544
Minos Galanakisea421232019-06-20 17:11:28 +0100545config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800546 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
547 "arm/musca_b1/sse_200",
548 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700549 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700550 "stm/stm32l562e_dk",
551 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "toolchain_file": ["toolchain_GNUARM.cmake",
553 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800554 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "isolation_level": ["1", "2"],
556 "test_regression": [True, False],
557 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800558 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800559 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800560 "with_bl2": [True, False],
561 "with_ns": [True, False],
562 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800563 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800564 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800565 "lazy": ["OFF"],
566 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100567 },
568 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800569 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800570 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800571 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800572 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800573 True, "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800574 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800575 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800576 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800577 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800578 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800579 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800580 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800581 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800582 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800583 }
584
Karl Zhangaff558a2020-05-15 14:28:23 +0100585config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800586 "tfm_platform": ["arm/mps2/an521",
587 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800588 "toolchain_file": ["toolchain_ARMCLANG.cmake",
589 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800590 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800591 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 "test_regression": [True, False],
593 "test_psa_api": ["OFF"],
594 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800595 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800596 "with_bl2": [True],
597 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800599 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800600 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800601 "lazy": ["OFF"],
602 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 },
604 "common_params": _common_tfm_builder_cfg,
605 "invalid": _common_tfm_invalid_configs + []
606 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800607
Karl Zhangaff558a2020-05-15 14:28:23 +0100608config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800609 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800610 "toolchain_file": ["toolchain_ARMCLANG.cmake",
611 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800612 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800613 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800614 "test_regression": [True, False],
615 "test_psa_api": ["OFF"],
616 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800617 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800618 "with_bl2": [True],
619 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800621 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800622 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800623 "lazy": ["OFF"],
624 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800625 },
626 "common_params": _common_tfm_builder_cfg,
627 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800628 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800629 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 ]
631 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100632
Karl Zhang14573bc2020-06-08 09:23:21 +0800633config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800634 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
635 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 "toolchain_file": ["toolchain_ARMCLANG.cmake",
637 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800638 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800639 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800640 "test_regression": [True, False],
641 "test_psa_api": ["OFF"],
642 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800643 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800644 "with_bl2": [True],
645 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800646 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800647 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800648 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800649 "lazy": ["OFF"],
650 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 },
652 "common_params": _common_tfm_builder_cfg,
653 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800654 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800655 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800656 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800657 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800658 "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800659 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800660 "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800661 ]
662 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800663
Karl Zhangaff558a2020-05-15 14:28:23 +0100664config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800665 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800666 "toolchain_file": ["toolchain_ARMCLANG.cmake",
667 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800668 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800669 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "test_regression": [True, False],
671 "test_psa_api": ["OFF"],
672 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800673 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800675 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800676 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800677 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800678 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800679 "lazy": ["OFF"],
680 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 },
682 "common_params": _common_tfm_builder_cfg,
683 "invalid": _common_tfm_invalid_configs + []
684 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100685
Minos Galanakisea421232019-06-20 17:11:28 +0100686config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800687 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "toolchain_file": ["toolchain_ARMCLANG.cmake",
689 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800690 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 "isolation_level": ["1", "2"],
692 "test_regression": [True, False],
693 "test_psa_api": ["OFF"],
694 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800695 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 "with_bl2": [True],
697 "with_ns": [True, False],
698 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800699 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800700 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800701 "lazy": ["OFF"],
702 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + []
706 }
Minos Galanakisea421232019-06-20 17:11:28 +0100707
Mark Horvath8d281cd2020-12-07 15:20:26 +0100708config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800709 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100710 "toolchain_file": ["toolchain_ARMCLANG.cmake",
711 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800712 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100713 "isolation_level": ["1"],
714 "test_regression": [False],
715 "test_psa_api": ["OFF"],
716 "cmake_build_type": ["Debug", "Release"],
717 "with_otp": ["off"],
718 "with_bl2": [True],
719 "with_ns": [False],
720 "profile": [""],
721 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800722 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800723 "lazy": ["OFF"],
724 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100725 },
726 "common_params": _common_tfm_builder_cfg,
727 "invalid": _common_tfm_invalid_configs + []
728 }
729
Karl Zhangeffed972020-06-30 15:48:01 +0800730config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800731 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "toolchain_file": ["toolchain_ARMCLANG.cmake",
733 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800734 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 "isolation_level": ["1", "2"],
736 "test_regression": [True, False],
737 "test_psa_api": ["OFF"],
738 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800739 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 "with_bl2": [True],
741 "with_ns": [True, False],
742 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800743 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800744 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800745 "lazy": ["OFF"],
746 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 },
748 "common_params": _common_tfm_builder_cfg,
749 "invalid": _common_tfm_invalid_configs + []
750 }
Karl Zhangeffed972020-06-30 15:48:01 +0800751
Karl Zhangaff558a2020-05-15 14:28:23 +0100752config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800753 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
754 "arm/musca_b1/sse_200", "arm/musca_s1",
755 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "toolchain_file": ["toolchain_ARMCLANG.cmake",
757 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800758 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800759 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "test_regression": [True, False],
761 "test_psa_api": ["OFF"],
762 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800763 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800764 "with_bl2": [True, False],
765 "with_ns": [True, False],
766 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800767 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800768 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800769 "lazy": ["OFF"],
770 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800771 },
772 "common_params": _common_tfm_builder_cfg,
773 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800774 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800775 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800776 ]
777 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100778
779# Configure build manager to build several combinations
780config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800781 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
782 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800783 "toolchain_file": ["toolchain_GNUARM.cmake",
784 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800785 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 "isolation_level": ["1", "2"],
787 "test_regression": [False],
788 "test_psa_api": ["IPC",
789 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800790 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800791 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800793 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 "with_bl2": [True],
795 "with_ns": [True, False],
796 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800797 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800798 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800799 "lazy": ["OFF"],
800 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100801 },
802 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800804 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800805 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100807 }
808
Karl Zhangaff558a2020-05-15 14:28:23 +0100809config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800810 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
811 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 "toolchain_file": ["toolchain_GNUARM.cmake",
813 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800814 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800815 "isolation_level": ["1", "2"],
816 "test_regression": [False],
817 "test_psa_api": ["IPC"],
818 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800819 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800820 "with_bl2": [True],
821 "with_ns": [True, False],
822 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800823 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800824 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800825 "lazy": ["OFF"],
826 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100827 },
828 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800830 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800831 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800832 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100833 }
834
Karl Zhang14573bc2020-06-08 09:23:21 +0800835config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800836 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
837 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800838 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "toolchain_file": ["toolchain_GNUARM.cmake",
840 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800841 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800842 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800843 "test_regression": [True, False],
844 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800845 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800846 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800847 "with_bl2": [True],
848 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800849 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800850 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800851 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800852 "lazy": ["OFF"],
853 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800854 },
855 "common_params": _common_tfm_builder_cfg,
856 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800857 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800858 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800859 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800860 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800861 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800862 True, "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800863 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800864 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800865 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800866 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800867 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800868 "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800869 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800870 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800871 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800872 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 ]
874 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800875
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800876config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800877 "tfm_platform": ["arm/mps2/an521"],
878 "toolchain_file": ["toolchain_GNUARM.cmake",
879 "toolchain_ARMCLANG.cmake"],
880 "lib_model": [True, False],
881 "isolation_level": ["1", "2", "3"],
882 "test_regression": [True],
883 "test_psa_api": ["OFF"],
884 "cmake_build_type": ["Debug"],
885 "with_otp": ["off"],
886 "with_bl2": [True],
887 "with_ns": [True],
888 "profile": [""],
889 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800890 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800891 "lazy": ["OFF"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800892 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800893 },
894 "common_params": _common_tfm_builder_cfg,
895 "invalid": _common_tfm_invalid_configs + []
896 }
897
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800898config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800899 "tfm_platform": ["arm/mps2/an521"],
900 "toolchain_file": ["toolchain_GNUARM.cmake",
901 "toolchain_ARMCLANG.cmake"],
902 "lib_model": [False],
903 "isolation_level": ["1"],
904 "test_regression": [True],
905 "test_psa_api": ["OFF"],
906 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
907 "with_otp": ["off"],
908 "with_bl2": [True],
909 "with_ns": [True],
910 "profile": [""],
911 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800912 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800913 "lazy": ["OFF"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800914 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800915 },
916 "common_params": _common_tfm_builder_cfg,
917 "invalid": _common_tfm_invalid_configs + []
918 }
919
Karl Zhang14573bc2020-06-08 09:23:21 +0800920config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800921 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
922 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800923 "toolchain_file": ["toolchain_ARMCLANG.cmake",
924 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800925 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800926 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800927 "test_regression": [True, False],
928 "test_psa_api": ["OFF"],
929 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800930 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800931 "with_bl2": [True],
932 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800933 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800934 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800935 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800936 "lazy": ["OFF"],
937 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800938 },
939 "common_params": _common_tfm_builder_cfg,
940 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800941 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800942 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800943 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800944 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800945 "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800946 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800947 "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800948 ]
949 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800950
Karl Zhang14573bc2020-06-08 09:23:21 +0800951config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800952 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
953 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800954 "toolchain_file": ["toolchain_GNUARM.cmake",
955 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800956 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800957 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958 "test_regression": [False],
959 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800960 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800961 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800962 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800963 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800964 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800965 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800966 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800967 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800968 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800969 "lazy": ["OFF"],
970 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800971 },
972 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800973 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800974 }
975
Karl Zhang14573bc2020-06-08 09:23:21 +0800976config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800977 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
978 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800979 "toolchain_file": ["toolchain_GNUARM.cmake",
980 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800981 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800982 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800983 "test_regression": [False],
984 "test_psa_api": ["IPC"],
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"],
Feder Liang567e8c22021-10-26 14:16:21 +0800991 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800992 "lazy": ["OFF"],
993 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800994 },
995 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800996 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800997 }
998
Karl Zhang14573bc2020-06-08 09:23:21 +0800999config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001000 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001001 "toolchain_file": ["toolchain_GNUARM.cmake",
1002 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001003 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001004 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001005 "test_regression": [True],
1006 "test_psa_api": ["OFF"],
1007 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001008 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001009 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001010 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001011 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001012 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001013 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001014 "lazy": ["OFF"],
1015 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001016 },
1017 "common_params": _common_tfm_builder_cfg,
1018 "invalid": _common_tfm_invalid_configs + []
1019 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001020
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001021config_nightly_psoc64 = {"seed_params": {
1022 "tfm_platform": ["cypress/psoc64"],
1023 "toolchain_file": ["toolchain_GNUARM.cmake",
1024 "toolchain_ARMCLANG.cmake"],
1025 "lib_model": [False],
1026 "isolation_level": ["1", "2"],
1027 "test_regression": [True],
1028 "test_psa_api": ["OFF"],
1029 "cmake_build_type": ["Release"],
1030 "with_otp": ["off"],
1031 "with_bl2": [False],
1032 "with_ns": [True],
1033 "profile": [""],
1034 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001035 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001036 "lazy": ["OFF"],
1037 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001038 },
1039 "common_params": _common_tfm_builder_cfg,
1040 "invalid": _common_tfm_invalid_configs + []
1041 }
1042
Arthur Shef3657742021-09-07 14:23:18 -07001043config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1044 "tfm_platform": ["nxp/lpcxpresso55s69"],
1045 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001046 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001047 "isolation_level": ["2"],
1048 "test_regression": [True, False],
1049 "test_psa_api": ["OFF"],
1050 "cmake_build_type": ["Relwithdebinfo"],
1051 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001052 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001053 "with_ns": [True],
1054 "profile": ["profile_medium"],
1055 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001056 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001057 "lazy": ["OFF"],
1058 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001059 },
1060 "common_params": _common_tfm_builder_cfg,
1061 "invalid": _common_tfm_invalid_configs + []
1062 }
1063
1064config_nightly_FP = {"seed_params": {
1065 "tfm_platform": ["arm/musca_s1"],
1066 "toolchain_file": ["toolchain_GNUARM.cmake",
1067 "toolchain_ARMCLANG.cmake"],
1068 "lib_model": [False],
1069 "isolation_level": ["1", "2"],
1070 "test_regression": [True],
1071 "test_psa_api": ["OFF"],
1072 "cmake_build_type": ["Debug"],
1073 "with_otp": ["off"],
1074 "with_bl2": [True],
1075 "with_ns": [True],
1076 "profile": [""],
1077 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001078 "fp": ["0", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001079 "lazy": ["ON", "OFF"],
1080 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -07001081 },
1082 "common_params": _common_tfm_builder_cfg,
1083 "invalid": _common_tfm_invalid_configs + []
1084 }
1085
Karl Zhang14573bc2020-06-08 09:23:21 +08001086config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001087 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001088 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001089 "toolchain_file": ["toolchain_GNUARM.cmake",
1090 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001091 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001092 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001093 "test_regression": [True],
1094 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001095 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001096 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001097 "with_bl2": [True],
1098 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001099 "profile": ["", "profile_small", "profile_medium"],
1100 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001101 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001102 "lazy": ["OFF"],
1103 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001104 },
1105 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001106 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001107 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001108 True, "1", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001109 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001110 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001111 False, "2", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001112 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001113 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001114 False, "3", False, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001115 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001116 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001117 False, "2", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001118 "off", True, True, "profile_medium", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001119 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001120 False, "3", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001121 "off", True, True, "profile_large", "ON", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001122 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001123 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1124 False, "2", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001125 "off", True, True, "profile_medium", "OFF", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001126 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001127 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1128 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001129 "off", True, True, "", "ON", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001130 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001131 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1132 False, "1", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001133 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001134 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001135 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001136 False, "2", False, "OFF", "Release",
1137 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001138 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001139 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1140 False, "3", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001141 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_OFF"),
Feder Liang567e8c22021-10-26 14:16:21 +08001142 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_SFP2_SLAZY
1143 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1144 False, "2", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001145 "off", True, True, "", "ON", "2", "ON", ""),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001146 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001147 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001148 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001149 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001150 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001151 # valid configs supported by TF-M but not needed in per-patch
1152 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001153 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001154 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001155 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001156 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001157 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001158 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001159 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001160 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001161 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001162 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001163 "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001164 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001165 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001166 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001167 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001168 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001169 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001170 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001171 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001172 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001173 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001174 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001175 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001176 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001177 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001178 ]
1179 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001180
Karl Zhang14573bc2020-06-08 09:23:21 +08001181config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001182 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001183 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001184 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001185 "isolation_level": ["1", "2"],
1186 "test_regression": [True],
1187 "test_psa_api": ["OFF"],
1188 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001189 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 "with_bl2": [True],
1191 "with_ns": [True, False],
1192 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001193 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001194 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001195 "lazy": ["OFF"],
1196 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001197 },
1198 "common_params": _common_tfm_builder_cfg,
1199 "invalid": _common_tfm_invalid_configs + []
1200 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001201
1202# Configure build manager to build several combinations
1203config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001204 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001205 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001206 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001207 "isolation_level": ["2"],
1208 "test_regression": [False],
1209 "test_psa_api": ["IPC",
1210 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001211 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001212 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001213 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001214 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001215 "with_bl2": [True],
1216 "with_ns": [True, False],
1217 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001218 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001219 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001220 "lazy": ["OFF"],
1221 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001222 },
1223 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001224 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001225 }
1226
Karl Zhang14573bc2020-06-08 09:23:21 +08001227config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001228 "tfm_platform": ["cypress/psoc64"],
1229 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001230 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001231 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001232 "test_regression": [True],
1233 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001234 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001235 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001237 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001238 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001239 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001240 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001241 "lazy": ["OFF"],
1242 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001243 },
1244 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001245 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001246 }
1247
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001248config_cov_an519 = {"seed_params": {
1249 "tfm_platform": ["arm/mps2/an519"],
1250 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001251 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001252 "isolation_level": ["1", "2", "3"],
1253 "test_regression": [True, False],
1254 "test_psa_api": ["OFF"],
1255 "cmake_build_type": ["Debug", "Release"],
1256 "with_otp": ["off"],
1257 "with_bl2": [True],
1258 "with_ns": [True],
1259 "profile": ["", "profile_small", "profile_medium"],
1260 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001261 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001262 "lazy": ["OFF"],
1263 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001264 },
1265 "common_params": _common_tfm_builder_cfg,
1266 "invalid": _common_tfm_invalid_configs + []
1267 }
1268
1269config_cov_an521 = {"seed_params": {
1270 "tfm_platform": ["arm/mps2/an521"],
1271 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001272 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001273 "isolation_level": ["1", "2", "3"],
1274 "test_regression": [True, False],
1275 "test_psa_api": ["OFF"],
1276 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1277 "with_otp": ["off"],
1278 "with_bl2": [True],
1279 "with_ns": [True],
1280 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1281 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001282 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001283 "lazy": ["OFF"],
1284 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001285 },
1286 "common_params": _common_tfm_builder_cfg,
1287 "invalid": _common_tfm_invalid_configs + []
1288 }
1289
Minos Galanakisea421232019-06-20 17:11:28 +01001290# Configruation used for document building
1291config_doxygen = {"common_params": {
1292 "config_type": "tf-m_documents",
1293 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001294 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001295 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001296 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001297 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001298 "cmake --build ./ -- docs"]},
1299 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1300 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001301 r'/(\w+\.(?:html|md|pdf))$',
1302 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001303 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001304 }
1305
Karl Zhangaff558a2020-05-15 14:28:23 +01001306# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001307config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001308 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001309 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001310 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001311 "isolation_level": ["1"],
1312 "test_regression": [False],
1313 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001314 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001315 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001316 "with_bl2": [True],
1317 "with_ns": [True],
1318 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001319 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001320 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001321 "lazy": ["OFF"],
1322 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001323 },
1324 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001325 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001326 }
1327
Dean Birch4c6ad622020-03-13 11:28:03 +00001328# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001329config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001330 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001331 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1332 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001333 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001334 "isolation_level": ["1", "2"],
1335 "test_regression": [True, False],
1336 "test_psa_api": ["OFF"],
1337 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001338 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001339 "with_bl2": [True, False],
1340 "with_ns": [True],
1341 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001342 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001343 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001344 "lazy": ["OFF"],
1345 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001346 },
1347 "common_params": _common_tfm_builder_cfg,
1348 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001349 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001350 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001351 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001352 "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001353 ]
1354 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001355
Xinyu Zhangb708f572020-09-15 11:43:46 +08001356config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001357 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001358 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001359 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001360 "isolation_level": ["1", "2"],
1361 "test_regression": [True],
1362 "test_psa_api": ["OFF"],
1363 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001364 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001365 "with_bl2": [True, False],
1366 "with_ns": [True, False],
1367 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001368 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001369 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001370 "lazy": ["OFF"],
1371 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001372 },
1373 "common_params": _common_tfm_builder_cfg,
1374 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001375 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001376 "*", "*", True, "*", "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001377 ]
1378 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001379
Xinyu Zhang38b76742021-11-11 13:57:56 +08001380config_an547 = {"seed_params": {
1381 "tfm_platform": ["arm/mps3/an547"],
1382 "toolchain_file": ["toolchain_GNUARM.cmake"],
1383 "lib_model": [False],
1384 "isolation_level": ["1"],
1385 "test_regression": [False],
1386 "test_psa_api": ["OFF"],
1387 "cmake_build_type": ["Debug"],
1388 "with_otp": ["off"],
1389 "with_bl2": [True],
1390 "with_ns": [False],
1391 "profile": [""],
1392 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001393 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001394 "lazy": ["OFF"],
1395 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001396 },
1397 "common_params": _common_tfm_builder_cfg,
1398 "invalid": _common_tfm_invalid_configs + []
1399 }
1400
1401config_corstone_polaris = {"seed_params": {
1402 "tfm_platform": ["arm/mps3/corstone_polaris"],
1403 "toolchain_file": ["toolchain_GNUARM.cmake"],
1404 "lib_model": [False],
1405 "isolation_level": ["1"],
1406 "test_regression": [False],
1407 "test_psa_api": ["OFF"],
1408 "cmake_build_type": ["Debug"],
1409 "with_otp": ["off"],
1410 "with_bl2": [True],
1411 "with_ns": [False],
1412 "profile": [""],
1413 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001414 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001415 "lazy": ["OFF"],
1416 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001417 },
1418 "common_params": _common_tfm_builder_cfg,
1419 "invalid": _common_tfm_invalid_configs + []
1420 }
1421
1422config_bl5340 = {"seed_params": {
1423 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1424 "toolchain_file": ["toolchain_GNUARM.cmake"],
1425 "lib_model": [False],
1426 "isolation_level": ["1"],
1427 "test_regression": [False],
1428 "test_psa_api": ["OFF"],
1429 "cmake_build_type": ["Debug"],
1430 "with_otp": ["off"],
1431 "with_bl2": [True],
1432 "with_ns": [False],
1433 "profile": [""],
1434 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001435 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001436 "lazy": ["OFF"],
1437 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001438 },
1439 "common_params": _common_tfm_builder_cfg,
1440 "invalid": _common_tfm_invalid_configs + []
1441 }
1442
1443config_nrf5340dk = {"seed_params": {
1444 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1445 "toolchain_file": ["toolchain_GNUARM.cmake"],
1446 "lib_model": [False],
1447 "isolation_level": ["1"],
1448 "test_regression": [False],
1449 "test_psa_api": ["OFF"],
1450 "cmake_build_type": ["Debug"],
1451 "with_otp": ["off"],
1452 "with_bl2": [True],
1453 "with_ns": [False],
1454 "profile": [""],
1455 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001456 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001457 "lazy": ["OFF"],
1458 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001459 },
1460 "common_params": _common_tfm_builder_cfg,
1461 "invalid": _common_tfm_invalid_configs + []
1462 }
1463
1464config_nrf9160dk = {"seed_params": {
1465 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1466 "toolchain_file": ["toolchain_GNUARM.cmake"],
1467 "lib_model": [False],
1468 "isolation_level": ["1"],
1469 "test_regression": [False],
1470 "test_psa_api": ["OFF"],
1471 "cmake_build_type": ["Debug"],
1472 "with_otp": ["off"],
1473 "with_bl2": [True],
1474 "with_ns": [False],
1475 "profile": [""],
1476 "partition_ps": ["ON"],
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_m2351 = {"seed_params": {
1486 "tfm_platform": ["nuvoton/m2351"],
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": ["Release"],
1493 "with_otp": ["off"],
1494 "with_bl2": [True],
1495 "with_ns": [False],
1496 "profile": [""],
1497 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001498 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001499 "lazy": ["OFF"],
1500 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001501 },
1502 "common_params": _common_tfm_builder_cfg,
1503 "invalid": _common_tfm_invalid_configs + []
1504 }
1505
1506config_m2354 = {"seed_params": {
1507 "tfm_platform": ["nuvoton/m2354"],
1508 "toolchain_file": ["toolchain_GNUARM.cmake"],
1509 "lib_model": [False],
1510 "isolation_level": ["1"],
1511 "test_regression": [False],
1512 "test_psa_api": ["OFF"],
1513 "cmake_build_type": ["Debug"],
1514 "with_otp": ["off"],
1515 "with_bl2": [True],
1516 "with_ns": [False],
1517 "profile": [""],
1518 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001519 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001520 "lazy": ["OFF"],
1521 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001522 },
1523 "common_params": _common_tfm_builder_cfg,
1524 "invalid": _common_tfm_invalid_configs + []
1525 }
1526
1527config_b_u585i_iot02a = {"seed_params": {
1528 "tfm_platform": ["stm/b_u585i_iot02a"],
1529 "toolchain_file": ["toolchain_GNUARM.cmake"],
1530 "lib_model": [False],
1531 "isolation_level": ["1"],
1532 "test_regression": [False],
1533 "test_psa_api": ["OFF"],
1534 "cmake_build_type": ["Release"],
1535 "with_otp": ["off"],
1536 "with_bl2": [True],
1537 "with_ns": [False],
1538 "profile": [""],
1539 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001540 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001541 "lazy": ["OFF"],
1542 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001543 },
1544 "common_params": _common_tfm_builder_cfg,
1545 "invalid": _common_tfm_invalid_configs + []
1546 }
1547
1548config_nucleo_l552ze_q = {"seed_params": {
1549 "tfm_platform": ["stm/nucleo_l552ze_q"],
1550 "toolchain_file": ["toolchain_GNUARM.cmake"],
1551 "lib_model": [False],
1552 "isolation_level": ["1"],
1553 "test_regression": [False],
1554 "test_psa_api": ["OFF"],
1555 "cmake_build_type": ["Release"],
1556 "with_otp": ["off"],
1557 "with_bl2": [True],
1558 "with_ns": [False],
1559 "profile": [""],
1560 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001561 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001562 "lazy": ["OFF"],
1563 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001564 },
1565 "common_params": _common_tfm_builder_cfg,
1566 "invalid": _common_tfm_invalid_configs + []
1567 }
1568
Karl Zhangaff558a2020-05-15 14:28:23 +01001569_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001570 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001571 "tfm_test": config_tfm_test,
1572 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001573 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001574 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001575 "tfm_nsce": config_nsce,
1576 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001577 "psa_api": config_PSA_API,
1578 "psa_api_otp": config_PSA_API_OTP,
1579 "psa_ff": config_PSA_FF,
1580 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001581 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001582 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001583 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001584 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001585
1586 #nightly test group
1587 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001588 "nightly_nsce": config_nsce,
1589 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001590 "nightly_profile": config_nightly_profile,
1591 "nightly_psa_api": config_nightly_PSA_API,
1592 "nightly_ff": config_nightly_PSA_FF,
1593 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001594 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001595 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001596 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001597 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001598
1599 #per patch test group
1600 "pp_test": config_pp_test,
1601 "pp_OTP": config_pp_OTP,
1602 "pp_PSA_API": config_pp_PSA_API,
1603 "pp_psoc64": config_pp_PSoC64,
1604
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001605 #code coverage test group
1606 "coverage_an519": config_cov_an519,
1607 "coverage_an521": config_cov_an521,
1608
Xinyu Zhang38b76742021-11-11 13:57:56 +08001609 #extra build group
1610 "arm_corstone1000": config_corstone1000,
1611 "arm_an547": config_an547,
1612 "arm_corstone_polaris": config_corstone_polaris,
1613 "cypress_psoc64": config_PSOC64,
1614 "laird_bl5340": config_bl5340,
1615 "nordic_nrf5340dk": config_nrf5340dk,
1616 "nordic_nrf9160dk": config_nrf9160dk,
1617 "nuvoton_m2351": config_m2351,
1618 "nuvoton_m2354": config_m2354,
1619 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1620 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1621 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1622 "stm_stm32l562e_dk": config_STM32L562E_DK,
1623
Karl Zhang14573bc2020-06-08 09:23:21 +08001624 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001625 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001626
1627 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001628 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001629 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001630 "an521_psa_api": config_AN521_PSA_API,
1631 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001632 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001633 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001634 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001635 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001636 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001637 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001638 "ipc": config_IPC,
1639 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001640 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001641 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001642 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001643
1644 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001645 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001646 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001647
1648if __name__ == '__main__':
1649 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001650
Minos Galanakisea421232019-06-20 17:11:28 +01001651 # Default behavior is to export refference config when called
1652 _dir = os.getcwd()
1653 from utils import save_json
1654 for _cname, _cfg in _builtin_configs.items():
1655 _fname = os.path.join(_dir, _cname + ".json")
1656 print("Exporting config %s" % _fname)
1657 save_json(_fname, _cfg)