Open LDong-Arm opened 3 years ago
The following include code from the legacy tools in mbed-os (tools/toolchains and tools/targets) which will be removed eventually: https://github.com/ARMmbed/mbed-os-tf-m-regression-tests/blob/09088440447e79c3825ee7a9fe965379d59f8153/build_tfm.py#L28-L29
tools/toolchains
tools/targets
https://github.com/ARMmbed/mbed-os-tf-m-regression-tests/blob/09088440447e79c3825ee7a9fe965379d59f8153/psa_builder.py#L72
Possible solutions:
TOOLCHAIN_PATHS/<command>
<command>
PATH
TARGET_MAP
mbed-os/targets/targets.json
json.load()
The following include code from the legacy tools in mbed-os (
tools/toolchains
andtools/targets
) which will be removed eventually: https://github.com/ARMmbed/mbed-os-tf-m-regression-tests/blob/09088440447e79c3825ee7a9fe965379d59f8153/build_tfm.py#L28-L29https://github.com/ARMmbed/mbed-os-tf-m-regression-tests/blob/09088440447e79c3825ee7a9fe965379d59f8153/psa_builder.py#L72
Possible solutions:
TOOLCHAIN_PATHS/<command>
, just call<command>
directly. Mbed CLI 2 requires toolchains to be inPATH
.TARGET_MAP
is just parsedmbed-os/targets/targets.json
, which we can use python'sjson.load()
to load instead.