Skip to content

Commit bcf8cc6

Browse files
committed
M2351: Translate target names to platform name
Translate target names with naming rule below to platform name 'NU_PFM_M2351' for the NuMaker-PFM-M2351 board: 'NU_PFM_M2351'+'_'+['P', 'NP']+'_'+['S', 'NS'] 1. Online database has limit of max 20 chars on target name, so we cannot follow the naming rule below for this board: 'NUMAKER_PFM_M2351'+'_'+['PSA', 'NOPSA']+'_'+['S', 'NS'] 2. The originally registered platform name 'NUMAKER_PFM_M2351' in mbed-os-tools must change to 'NU_PFM_M2351' accordingly.
1 parent c90e60b commit bcf8cc6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tools/test_api.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,18 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
22722272

22732273
def test_spec_from_test_builds(test_builds):
22742274
for build in test_builds:
2275-
if Target.get_target(test_builds[build]['platform']).is_PSA_non_secure_target:
2275+
if test_builds[build]['platform'][:12] == 'NU_PFM_M2351':
2276+
# Translate target names with naming rule below to platform name
2277+
# 'NU_PFM_M2351' for the NuMaker-PFM-M2351 board:
2278+
# 'NU_PFM_M2351'+'_'+['P', 'NP']+'_'+['S', 'NS']
2279+
#
2280+
# 1. Online database has limit of max 20 chars on target name,
2281+
# so we cannot follow the naming rule below for this board:
2282+
# 'NUMAKER_PFM_M2351'+'_'+['PSA', 'NOPSA']+'_'+['S', 'NS']
2283+
# 2. The originally registered platform name 'NUMAKER_PFM_M2351'
2284+
# in mbed-os-tools must change to 'NU_PFM_M2351' accordingly.
2285+
test_builds[build]['platform'] = 'NU_PFM_M2351'
2286+
elif Target.get_target(test_builds[build]['platform']).is_PSA_non_secure_target:
22762287
if test_builds[build]['platform'].endswith('_NS'):
22772288
test_builds[build]['platform'] = test_builds[build]['platform'][:-3]
22782289
if test_builds[build]['platform'].endswith('_PSA'):

0 commit comments

Comments
 (0)