.. | |||
templates | 5 years ago | ||
tfm | 5 years ago | ||
README.md | 5 years ago | ||
__init__.py | 5 years ago | ||
generate_partition_code.py | 5 years ago | ||
mbed_spm_tfm_common.py | 5 years ago | ||
partition_description_schema.json | 5 years ago | ||
release.py | 5 years ago | ||
spm_template_file_list.json | 5 years ago |
Mbed-OS contains two implementations of PSA Firmware Framework:
Both PSA Firmware Framework implementation impose the following requirements:
To satisfy the requirement listed above, Mbed-OS build system invokes generate_partition_code.py
script during the build process for PSA targets.
PSA code generation step has the following effects:
TESTS
directories.#ifndef
guards. To enable them following defines must be passed to build command (typically done automatically via release.py):
-DUSE_PSA_TEST_PARTITIONS
-DUSE_<name>
where <name>
corresponds to the name in PSA manifest file ("name"
property).release.py
is the script assigned with compiling the default secure images.
For an application with custom secure portions, the secure image should be generated by invoking mbed-cli
directly.
Note: when building targets utilizing TF-M PSA implementations, add the following arguments to a build command for the secure image:
--app-config <mbed-os-root>/tools/psa/tfm/mbed_app.json
usage: release.py [-h] [-m MCU] [-t TC] [-d] [-q] [-l] [--commit] [--skip-tests] [-x ...] optional arguments: -h, --help show this help message and exit -m MCU, --mcu MCU build for the given MCU -t TC, --tc TC build for the given tool chain (default is default_toolchain) -d, --debug set build profile to debug -q, --quiet No Build log will be printed -l, --list Print supported PSA secure targets --commit create a git commit for each platform --skip-tests skip the test build phase -x ..., --extra ... additional build parameters
MCU
is not specified, the script compiles all the images for all the targets.-t/--tc
is not specified, the script compiles with the default_toolchain speciified in targets.json.-d/--debug
is not specified, the script compiles the images using the release profile.--commit
is not specified, the script will not commit the images to git.This script should be run in following scenarios: