ARMmbed / mbed-os-tf-m-regression-tests

An Mbed OS application that runs the TF-M regression tests
2 stars 12 forks source link

Fix unsupported TF-M targets in `build_tfm.py` #13

Closed jainvikas8 closed 4 years ago

jainvikas8 commented 4 years ago

When executing mbed-os-tf-m-regression-tests$ python3 build_tfm.py -l [Build-TF-M] 10:35:00: Supported TF-M targets are: K64F, SDT64B, K66F, NUCLEO_F429ZI, ARM_MUSCA_A1, ARM_MUSCA_B1, FVP_MPS2_M0, FVP_MPS2_M0P, FVP_MPS2_M3, FVP_MPS2_M4, FVP_MPS2_M7, CY8CKIT_064S2_4343W, CYESKIT_064B0S2_4343W, GD32_F450ZI.

Only list the TF-M supported targets.

The possible problem is in tools/targets/__init__.py of Mbed OS def is_TFM_target(self):

Patater commented 4 years ago

This list is coming from is_PSA_target(), which K64 and other single-v7 targets are when they have PSA listed in their targets.json entries. Agreed, we should use an is_TFM_target() function instead to generate this list.

Patater commented 4 years ago

Fixed in https://github.com/ARMmbed/mbed-os/pull/12955

jainvikas8 commented 4 years ago

On - https://github.com/ARMmbed/mbed-os/commit/a6207cadad0acd1876f436dc6baeddf46c42af06 Still see this issue -

/mbed-os-tf-m-regression-tests$ python3 build_tfm.py -l
[Build-TF-M] 16:07:00: Supported TF-M targets are: ARM_MUSCA_B1, ARM_MUSCA_B1_NS.
jainvikas8 commented 4 years ago

Fixed

mbed-os-tf-m-regression-tests$ python3 build_tfm.py -l
[Build-TF-M] 17:19:36: Supported TF-M regression targets are: ARM_MUSCA_B1.