blob: d878374ad6ac3948cd4140886718708cb2a7b072 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Coles61b43a42022-01-12 11:42:57 +000011 * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080037 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080038 "isolation_level",
39 "test_regression",
40 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010041 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080042 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080043 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080044 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangf3e19482022-01-11 15:48:13 +080049 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080050 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang433771e2022-04-01 16:49:17 +080051 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(compiler)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080052 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000055 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080057 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080058 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080059 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080060 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080061 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
62 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
63 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
64 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080065 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010066
Xinyu Zhang433771e2022-04-01 16:49:17 +080067 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
68
Minos Galanakisea421232019-06-20 17:11:28 +010069 # A small subset of string substitution params is allowed in commands.
70 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
71 # _tbm_target_platform_ with the paths set when building
72
Xinyu Zhangb708f572020-09-15 11:43:46 +080073 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010074 r'/(\w+\.(?:axf|bin|hex))$'),
75
76 # ALL commands will be executed for every build.
77 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010078 "build_cmds": {"all": ["cmake --build ./ -- install"],
Mark Horvathef57baa2022-09-12 13:36:36 +020079 "arm/musca_b1": [("srec_cat "
80 "%(_tbm_build_dir_)s/bin/"
81 "bl2.bin "
82 "-Binary -offset 0xA000000 "
83 "-fill 0xFF 0xA000000 0xA020000 "
84 "%(_tbm_build_dir_)s/bin/"
85 "tfm_s_ns_signed.bin "
86 "-Binary -offset 0xA020000 "
87 "-fill 0xFF 0xA020000 0xA200000 "
88 "-o %(_tbm_build_dir_)s/bin/"
89 "tfm.hex -Intel")],
Satish Kumar1cfdd912022-08-01 09:24:07 +010090 "arm/corstone1000": [("cat "
91 "%(_tbm_build_dir_)s/bin/"
92 "bl2_signed.bin "
93 "%(_tbm_build_dir_)s/bin/"
94 "bl2_signed.bin "
95 "%(_tbm_build_dir_)s/bin/"
96 "tfm_s_signed.bin "
97 "%(_tbm_build_dir_)s/bin/"
98 "tfm_s_signed.bin "
99 "> "
100 "%(_tbm_build_dir_)s/bin/"
101 "flash.bin")],
Summer Qin3c2b5722021-05-26 10:43:45 +0800102 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800103 "%(_tbm_build_dir_)s/bin/"
104 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800105 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000106 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800107 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800108 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000109 "-Binary -offset 0xA020000 "
110 "-fill 0xFF 0xA020000 0xA200000 "
111 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700112 "tfm.hex -Intel")],
113 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
114 "%(_tbm_build_dir_)s/postbuild.sh;"
115 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700116 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
117 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800118 "popd")],
119 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
120 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
121 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
122 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
123 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
124 "python3 ./${FLASH_FILE};"
125 "cd %(_tbm_build_dir_)s/bin;"
126 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
127 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800128 "popd")],
129 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
130 "pushd %(_tbm_build_dir_)s/..;"
131 "sudo /usr/local/bin/cysecuretools "
132 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
133 "--target cy8ckit-064s0s2-4343w "
134 "sign-image "
135 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
136 "--image-type BOOT --image-id 1;"
137 "sudo /usr/local/bin/cysecuretools "
138 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
139 "--target cy8ckit-064s0s2-4343w "
140 "sign-image "
141 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
142 "--image-type BOOT --image-id 16;"
143 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
144 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
145 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100146 },
147
148 # (Optional) If set will fail if those artefacts are missing post build
149 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800150 "%(_tbm_build_dir_)s/bin/"
151 "tfm_s.bin",
152 "%(_tbm_build_dir_)s/bin/"
153 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200154 "arm/musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800155 "%(_tbm_build_dir_)s/bin/"
156 "tfm.hex",
157 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800158 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800159 "%(_tbm_build_dir_)s/bin/"
160 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800161 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800162 "%(_tbm_build_dir_)s/bin/"
163 "tfm.hex",
164 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800165 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800166 "%(_tbm_build_dir_)s/bin/"
167 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100168 }
169}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100170
Xinyu Zhangb708f572020-09-15 11:43:46 +0800171# List of all build configs that are impossible under all circumstances
172_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800173 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800174 ("arm/musca_b1", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "", "*"),
175 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800176 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800177 ("arm/musca_b1", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*"),
178 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800179 # LVL2 and LVL3 requires IPC model
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800180 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*"),
181 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300182 # FF does not support library model
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800183 ("*", "*", True, "*", "*", "IPC", "*", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300184 # FF does not support L3
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800185 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800186 # Musca requires BL2
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800187 ("arm/musca_b1", "*", "*", "*", "*", "*", "*", False, "*", "*"),
188 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800189 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800190 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*"),
191 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*"),
192 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800193 ]
194
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100195# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800196# Config group for per-patch job
197config_pp_test = {"seed_params": {
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800198 # AN519_ARMCLANG_IPC_1_REG_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800199 "tfm_platform": ["arm/mps2/an519"],
200 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800201 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800202 "isolation_level": ["1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800203 "test_regression": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800204 "test_psa_api": ["OFF"],
205 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800206 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800207 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800208 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800209 },
210 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800211 "valid": [
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800212 # AN519_ARMCLANG_IPC_2_REG_Release_BL2
213 ("arm/mps2/an519", "ARMCLANG_6_13", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800214 True, "OFF", "Release", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800215 # AN519_GCC_IPC_1_REG_Debug_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800216 ("arm/mps2/an519", "GCC_10_3", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800217 True, "OFF", "Debug", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800218 # AN519_GCC_IPC_2_REG_Release_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800219 ("arm/mps2/an519", "GCC_10_3", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800220 True, "OFF", "Release", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800221 # AN519_GCC_LIB_1_REG_Debug_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800222 ("arm/mps2/an519", "GCC_10_3", True, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800223 True, "OFF", "Debug", True, "", ""),
Xinyu Zhangc3252782022-09-05 18:24:16 +0800224 # AN521_ARMCLANG_LIB_1_REG_Debug_BL2_SMALL_PSOFF
225 ("arm/mps2/an521", "ARMCLANG_6_13", True, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800226 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800227 # AN521_ARMCLANG_IPC_1_REG_Debug_BL2
228 ("arm/mps2/an521", "ARMCLANG_6_13", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800229 True, "OFF", "Debug", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800230 # AN521_ARMCLANG_IPC_2_REG_Release_BL2
231 ("arm/mps2/an521", "ARMCLANG_6_13", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800232 True, "OFF", "Release", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800233 # AN521_ARMCLANG_IPC_3_REG_Minsizerel_BL2
234 ("arm/mps2/an521", "ARMCLANG_6_13", False, "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800235 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhangc3252782022-09-05 18:24:16 +0800236 # AN521_ARMCLANG_IPC_1_REG_Debug_BL2_SMALL_PSOFF_SFN
237 ("arm/mps2/an521", "ARMCLANG_6_13", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800238 True, "OFF", "Debug", True, "profile_small", "PSOFF, SFN"),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800239 # AN521_GCC_IPC_1_REG_Debug_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800240 ("arm/mps2/an521", "GCC_10_3", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800241 True, "OFF", "Debug", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800242 # AN521_GCC_IPC_2_Debug_BL2_MEDIUM
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800243 ("arm/mps2/an521", "GCC_10_3", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800244 False, "OFF", "Debug", True, "profile_medium", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800245 # AN521_GCC_IPC_2_REG_Release_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800246 ("arm/mps2/an521", "GCC_10_3", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800247 True, "OFF", "Release", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800248 # AN521_GCC_IPC_3_REG_Minsizerel_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800249 ("arm/mps2/an521", "GCC_10_3", False, "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800250 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800251 # AN521_GCC_LIB_1_REG_Debug_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800252 ("arm/mps2/an521", "GCC_10_3", True, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800253 True, "OFF", "Debug", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800254 # AN552_GNUARM_IPC_1_REG_Debug_BL2
255 ("arm/mps3/an552", "GCC_10_3", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800256 True, "OFF", "Debug", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800257 # AN552_GNUARM_IPC_1_REG_Release_BL2
258 ("arm/mps3/an552", "GCC_10_3", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800259 True, "OFF", "Release", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800260 # MUSCA_B1_GCC_LIB_1_REG_Minsizerel_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800261 ("arm/musca_b1", "GCC_10_3", True, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800262 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800263 # MUSCA_S1_ARMCLANG_IPC_2_REG_Release_BL2
264 ("arm/musca_s1", "ARMCLANG_6_13", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800265 True, "OFF", "Release", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800266 # MUSCA_S1_GCC_IPC_1_REG_Debug_BL2
267 ("arm/musca_s1", "GCC_10_3", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800268 True, "OFF", "Debug", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800269 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2
270 ("arm/musca_s1", "GCC_10_3", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800271 True, "OFF", "Release", True, "", ""),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800272 # MUSCA_S1_GCC_LIB_1_REG_Debug_BL2
273 ("arm/musca_s1", "GCC_10_3", True, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800274 True, "OFF", "Debug", True, "", ""),
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200275 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2_FPON
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800276 ("arm/musca_s1", "GCC_10_3", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800277 True, "OFF", "Release", True, "", "FPON"),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800278 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_CC_DRIVER_PSA
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800279 ("arm/musca_s1", "GCC_10_3", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800280 True, "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800281 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2
282 ("stm/stm32l562e_dk", "ARMCLANG_6_13", False, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800283 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800284 # stm32l562e_dk_GCC_IPC_2_REG_Release_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800285 ("stm/stm32l562e_dk", "GCC_10_3", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800286 False, "OFF", "Release", True, "", "CRYPTO_ON"),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800287 # stm32l562e_dk_GCC_IPC_3_REG_Release_BL2
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800288 ("stm/stm32l562e_dk", "GCC_10_3", False, "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800289 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800290 # psoc64_GCC_IPC_2_REG_Release
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800291 ("cypress/psoc64", "GCC_10_3", False, "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800292 True, "OFF", "Release", False, "", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800293 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800294 "invalid": _common_tfm_invalid_configs + []
295 }
296
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800297# Config group for nightly job
298config_nightly_test = {"seed_params": {
299 "tfm_platform": ["arm/mps2/an519",
300 "arm/mps2/an521",
301 "arm/mps3/an524",
302 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200303 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800304 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800305 "lib_model": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800306 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "test_regression": [True, False],
308 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800309 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800310 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800312 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100313 },
314 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100316 }
317
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800318# Config group for release job
319config_release_test = {"seed_params": {
320 "tfm_platform": ["arm/mps2/an519",
321 "arm/mps2/an521",
322 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200323 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800324 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800325 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800326 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800327 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "test_regression": [True, False],
329 "test_psa_api": ["OFF"],
330 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800331 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800333 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 },
335 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800336 "valid": [
337 # sanity test for GCC v11.2
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800338 # AN521_GCC_IPC_3_REG_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800339 ("arm/mps2/an521", "GCC_11_2",
340 False, "3", True, "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800341 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800342 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800343 "invalid": _common_tfm_invalid_configs + []
344 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800345
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800346# Config groups for TF-M features
347config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800348 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800349 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800350 "lib_model": [True],
351 "isolation_level": ["1"],
352 "test_regression": [True, False],
353 "test_psa_api": ["OFF"],
354 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800355 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800356 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800357 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800358 },
359 "common_params": _common_tfm_builder_cfg,
360 "valid": [
361 # Profile Small also supports SFN model
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800362 ("*", "*", False, "*", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800363 "*", "*", "*", "PSOFF, SFN")
David Huda27ae72022-03-28 15:32:19 +0800364 ],
365 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800366 ("arm/mps2/an519", "GCC_10_3", "*", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800367 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800368 ]
369 }
370
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800371config_profile_m = {"seed_params": {
372 "tfm_platform": ["arm/mps2/an519",
373 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200374 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800375 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800376 "lib_model": [False],
377 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800378 "test_regression": [True, False],
379 "test_psa_api": ["OFF"],
380 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800381 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800382 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800383 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800384 },
385 "common_params": _common_tfm_builder_cfg,
386 "invalid": _common_tfm_invalid_configs + []
387 }
388
389config_profile_l = {"seed_params": {
390 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800391 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800392 "lib_model": [False],
393 "isolation_level": ["3"],
394 "test_regression": [True, False],
395 "test_psa_api": ["OFF"],
396 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800397 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800398 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800399 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800400 },
401 "common_params": _common_tfm_builder_cfg,
402 "invalid": _common_tfm_invalid_configs + []
403 }
404
405config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200406 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800407 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800408 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800409 "lib_model": [False],
410 "isolation_level": ["1"],
411 "test_regression": [True],
412 "test_psa_api": ["OFF"],
413 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800414 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800416 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800417 },
418 "common_params": _common_tfm_builder_cfg,
419 "invalid": _common_tfm_invalid_configs + []
420 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100421
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800422config_fp = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800423 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800424 "compiler": ["GCC_10_3"],
425 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 "isolation_level": ["1", "2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800427 "test_regression": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800428 "test_psa_api": ["OFF"],
429 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800430 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800431 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200432 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800433 },
434 "common_params": _common_tfm_builder_cfg,
435 "invalid": _common_tfm_invalid_configs + []
436 }
Karl Zhangeffed972020-06-30 15:48:01 +0800437
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800438config_psa_api = {"seed_params": {
439 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200440 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800441 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800442 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800443 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800444 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800445 "test_regression": [False],
446 "test_psa_api": ["IPC",
447 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800448 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800449 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800450 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800451 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800453 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800454 },
455 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300456 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800457 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800458
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800459config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800460 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800461 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800462 "lib_model": [True, False],
463 "isolation_level": ["1", "2", "3"],
464 "test_regression": [True],
465 "test_psa_api": ["OFF"],
466 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800467 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800468 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800469 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800470 },
471 "common_params": _common_tfm_builder_cfg,
472 "invalid": _common_tfm_invalid_configs + []
473 }
474
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800475config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800476 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800477 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800478 "lib_model": [False],
479 "isolation_level": ["1"],
480 "test_regression": [True],
481 "test_psa_api": ["OFF"],
482 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800483 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800484 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800485 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800486 },
487 "common_params": _common_tfm_builder_cfg,
488 "invalid": _common_tfm_invalid_configs + []
489 }
490
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800491# Config groups for code coverage
492config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800493config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800494
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800495config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800496config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800497
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800498config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800499config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800500
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800501config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800502config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800503
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800504config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800505config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800506
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800507# Config groups for platforms
508config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800509 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800510 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800511 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "isolation_level": ["1", "2"],
513 "test_regression": [True, False],
514 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800515 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800516 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800518 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800519 },
520 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800521 "invalid": _common_tfm_invalid_configs + []
522 }
523
524config_an521 = {"seed_params": {
525 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800526 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800527 "lib_model": [True, False],
528 "isolation_level": ["1", "2", "3"],
529 "test_regression": [True, False],
530 "test_psa_api": ["OFF"],
531 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800532 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800533 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800534 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800535 },
536 "common_params": _common_tfm_builder_cfg,
537 "invalid": _common_tfm_invalid_configs + []
538 }
539
540config_an524 = {"seed_params": {
541 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800542 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800543 "lib_model": [True, False],
544 "isolation_level": ["1", "2"],
545 "test_regression": [True, False],
546 "test_psa_api": ["OFF"],
547 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800548 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800549 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800550 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800551 },
552 "common_params": _common_tfm_builder_cfg,
553 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000555
Xinyu Zhang38b76742021-11-11 13:57:56 +0800556config_an547 = {"seed_params": {
557 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100558 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800559 "lib_model": [False],
560 "isolation_level": ["1"],
561 "test_regression": [False],
562 "test_psa_api": ["OFF"],
563 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800564 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800565 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800566 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800567 },
568 "common_params": _common_tfm_builder_cfg,
569 "invalid": _common_tfm_invalid_configs + []
570 }
571
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800572config_an552 = {"seed_params": {
573 "tfm_platform": ["arm/mps3/an552"],
574 "compiler": ["GCC_10_3"],
575 "lib_model": [True, False],
576 "isolation_level": ["1", "2"],
577 "test_regression": [True, False],
578 "test_psa_api": ["OFF"],
579 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800580 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800581 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800582 "extra_params": [""]
583 },
584 "common_params": _common_tfm_builder_cfg,
585 "invalid": _common_tfm_invalid_configs + []
586 }
587
588config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200589 "tfm_platform": ["arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800590 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800591 "lib_model": [True, False],
592 "isolation_level": ["1", "2", "3"],
593 "test_regression": [True, False],
594 "test_psa_api": ["OFF"],
595 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800596 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800597 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800598 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800599 },
600 "common_params": _common_tfm_builder_cfg,
601 "invalid": _common_tfm_invalid_configs + []
602 }
603
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800604config_musca_s1 = {"seed_params": {
605 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800606 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800607 "lib_model": [True, False],
608 "isolation_level": ["1", "2"],
609 "test_regression": [True, False],
610 "test_psa_api": ["OFF"],
611 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800612 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800613 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800614 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800615 },
616 "common_params": _common_tfm_builder_cfg,
617 "invalid": _common_tfm_invalid_configs + []
618 }
619
Bence Balogh8731a092022-05-24 17:24:54 +0200620config_corstone310 = {"seed_params": {
621 "tfm_platform": ["arm/mps3/corstone310_fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100622 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800623 "lib_model": [False],
624 "isolation_level": ["1"],
625 "test_regression": [False],
626 "test_psa_api": ["OFF"],
627 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800628 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800629 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800630 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800631 },
632 "common_params": _common_tfm_builder_cfg,
633 "invalid": _common_tfm_invalid_configs + []
634 }
635
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100636config_rss = {"seed_params": {
637 "tfm_platform": ["arm/rss"],
638 "compiler": ["GCC_10_3"],
639 "lib_model": [False],
640 "isolation_level": ["1", "2"],
641 "test_regression": [True, False],
642 "test_psa_api": ["OFF"],
643 "cmake_build_type": ["Debug", "Release"],
644 "with_bl2": [True],
645 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800646 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100647 },
648 "common_params": _common_tfm_builder_cfg,
649 "invalid": _common_tfm_invalid_configs + []
650 }
651
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800652config_psoc64 = {"seed_params": {
653 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800654 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800655 "lib_model": [False],
656 "isolation_level": ["1", "2"],
657 "test_regression": [True],
658 "test_psa_api": ["OFF"],
659 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800660 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800661 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800662 "extra_params": [""]
663 },
664 "common_params": _common_tfm_builder_cfg,
665 "invalid": _common_tfm_invalid_configs + []
666 }
667
668config_corstone1000 = {"seed_params": {
669 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800670 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800671 "lib_model": [False],
672 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100673 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800674 "test_psa_api": ["OFF"],
675 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800676 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800677 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800678 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800679 },
680 "common_params": _common_tfm_builder_cfg,
681 "invalid": _common_tfm_invalid_configs + []
682 }
683
684config_stm32l562e_dk = {"seed_params": {
685 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800686 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800687 "lib_model": [True, False],
688 "isolation_level": ["1", "2", "3"],
689 "test_regression": [True, False],
690 "test_psa_api": ["OFF"],
691 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800692 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800693 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800694 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
695 },
696 "common_params": _common_tfm_builder_cfg,
697 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800698 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2
699 ("stm/stm32l562e_dk", "ARMCLANG_6_13", True, "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800700 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800701 # all other tests are off when CRYPTO is ON
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800702 ("stm/stm32l562e_dk", "*", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800703 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800704 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800705 ("stm/stm32l562e_dk", "*", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800706 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800707 ]
708 }
709
710config_b_u585i_iot02a = {"seed_params": {
711 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800712 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800713 "lib_model": [False],
714 "isolation_level": ["1"],
715 "test_regression": [False],
716 "test_psa_api": ["OFF"],
717 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800718 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800719 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800720 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800721 },
722 "common_params": _common_tfm_builder_cfg,
723 "invalid": _common_tfm_invalid_configs + []
724 }
725
726config_nucleo_l552ze_q = {"seed_params": {
727 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800728 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800729 "lib_model": [False],
730 "isolation_level": ["1"],
731 "test_regression": [False],
732 "test_psa_api": ["OFF"],
733 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800734 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800735 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800736 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800737 },
738 "common_params": _common_tfm_builder_cfg,
739 "invalid": _common_tfm_invalid_configs + []
740 }
741
742config_lpcxpresso55s69 = {"seed_params": {
743 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800744 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800745 "lib_model": [False],
746 "isolation_level": ["2"],
747 "test_regression": [True, False],
748 "test_psa_api": ["OFF"],
749 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800750 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800751 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800752 "extra_params": [""]
753 },
754 "common_params": _common_tfm_builder_cfg,
755 "invalid": _common_tfm_invalid_configs + []
756 }
757
Xinyu Zhang38b76742021-11-11 13:57:56 +0800758config_bl5340 = {"seed_params": {
759 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800760 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800761 "lib_model": [False],
762 "isolation_level": ["1"],
763 "test_regression": [False],
764 "test_psa_api": ["OFF"],
765 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800766 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800767 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800768 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800769 },
770 "common_params": _common_tfm_builder_cfg,
771 "invalid": _common_tfm_invalid_configs + []
772 }
773
774config_nrf5340dk = {"seed_params": {
775 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800776 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800777 "lib_model": [False],
778 "isolation_level": ["1"],
779 "test_regression": [False],
780 "test_psa_api": ["OFF"],
781 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800782 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800783 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800784 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800785 },
786 "common_params": _common_tfm_builder_cfg,
787 "invalid": _common_tfm_invalid_configs + []
788 }
789
790config_nrf9160dk = {"seed_params": {
791 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800792 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800793 "lib_model": [False],
794 "isolation_level": ["1"],
795 "test_regression": [False],
796 "test_psa_api": ["OFF"],
797 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800798 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800799 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800800 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800801 },
802 "common_params": _common_tfm_builder_cfg,
803 "invalid": _common_tfm_invalid_configs + []
804 }
805
806config_m2351 = {"seed_params": {
807 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800808 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800809 "lib_model": [False],
810 "isolation_level": ["1"],
811 "test_regression": [False],
812 "test_psa_api": ["OFF"],
813 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800814 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800815 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800816 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800817 },
818 "common_params": _common_tfm_builder_cfg,
819 "invalid": _common_tfm_invalid_configs + []
820 }
821
822config_m2354 = {"seed_params": {
823 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800824 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800825 "lib_model": [False],
826 "isolation_level": ["1"],
827 "test_regression": [False],
828 "test_psa_api": ["OFF"],
829 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800830 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800831 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800832 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800833 },
834 "common_params": _common_tfm_builder_cfg,
835 "invalid": _common_tfm_invalid_configs + []
836 }
837
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800838# Config groups for debug
839config_debug = {"seed_params": {
840 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800841 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800842 "lib_model": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800843 "isolation_level": ["1"],
844 "test_regression": [False],
845 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800846 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800847 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800848 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800849 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800850 },
851 "common_params": _common_tfm_builder_cfg,
852 "invalid": _common_tfm_invalid_configs + []
853 }
854
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800855config_debug_regr = deepcopy(config_debug)
856config_debug_regr["seed_params"]["test_regression"] = [True]
857
858config_debug_PSA_API = {"seed_params": {
859 "tfm_platform": ["arm/mps2/an521"],
860 "compiler": ["ARMCLANG_6_13"],
861 "lib_model": [True],
862 "isolation_level": ["1"],
863 "test_regression": [False],
864 "test_psa_api": ["CRYPTO",
865 "INITIAL_ATTESTATION",
866 "STORAGE",
867 "IPC"],
868 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800869 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800870 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800871 "extra_params": [""]
872 },
873 "common_params": _common_tfm_builder_cfg,
874 "invalid": _common_tfm_invalid_configs + []
875 }
876
877config_debug_PSA_API_nolib = {"seed_params": {
878 "tfm_platform": ["arm/mps2/an521"],
879 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800880 "lib_model": [False],
881 "isolation_level": ["1"],
882 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800883 "test_psa_api": ["CRYPTO",
884 "INITIAL_ATTESTATION",
885 "STORAGE",
886 "IPC"],
887 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800888 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800889 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800890 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800891 },
892 "common_params": _common_tfm_builder_cfg,
893 "invalid": _common_tfm_invalid_configs + []
894 }
895
Karl Zhangaff558a2020-05-15 14:28:23 +0100896_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800897 # per-patch test groups
898 "pp_test": config_pp_test,
899 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800900
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800901 # nightly test groups
902 "nightly_test": config_nightly_test,
903 "nightly_profile_s": config_profile_s,
904 "nightly_profile_m": config_profile_m,
905 "nightly_profile_l": config_profile_l,
906 "nightly_cc_driver_psa": config_cc_driver_psa,
907 "nightly_fp":config_fp,
908 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800909 "nightly_nsce": config_nsce,
910 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800911 "nightly_an547": config_an547,
912 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200913 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100915 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800916 "nightly_psoc64": config_psoc64,
917 "nightly_stm32l562e_dk": config_stm32l562e_dk,
918 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800919
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800920 # release test groups
921 "release_test": config_release_test,
922 "release_profile_s": config_profile_s,
923 "release_profile_m": config_profile_m,
924 "release_profile_l": config_profile_l,
925 "release_cc_driver_psa": config_cc_driver_psa,
926 "release_fp": config_fp,
927 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800928 "release_nsce": config_nsce,
929 "release_mmio": config_mmio,
930 "release_an547": config_an547,
931 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200932 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100933 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800934 "release_psoc64": config_psoc64,
935 "release_stm32l562e_dk": config_stm32l562e_dk,
936 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800937
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800938 # code coverage test groups
939 "coverage_profile_s": config_cov_profile_s,
940 "coverage_profile_m": config_cov_profile_m,
941 "coverage_profile_l": config_cov_profile_l,
942 "coverage_nsce": config_cov_nsce,
943 "coverage_mmio": config_cov_mmio,
944 "coverage_fp": config_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800945
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800946 # platform groups
947 "an521": config_an521,
948 "an519": config_an519,
949 "an524": config_an524,
950 "an547": config_an547,
951 "an552": config_an552,
952 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800953 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +0200954 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100955 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800956 "cypress_psoc64": config_psoc64,
957 "corstone1000": config_corstone1000,
958 "stm_stm32l562e_dk": config_stm32l562e_dk,
959 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
960 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
961 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +0800962 "laird_bl5340": config_bl5340,
963 "nordic_nrf5340dk": config_nrf5340dk,
964 "nordic_nrf9160dk": config_nrf9160dk,
965 "nuvoton_m2351": config_m2351,
966 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +0800967
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800968 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +0000969 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +0300970 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +0300971 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +0300972 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800973 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100974
975if __name__ == '__main__':
976 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100977
Minos Galanakisea421232019-06-20 17:11:28 +0100978 # Default behavior is to export refference config when called
979 _dir = os.getcwd()
980 from utils import save_json
981 for _cname, _cfg in _builtin_configs.items():
982 _fname = os.path.join(_dir, _cname + ".json")
983 print("Exporting config %s" % _fname)
984 save_json(_fname, _cfg)