Skip to content

Commit 7e7f4f5

Browse files
author
Cruz Monrreal
authored
Merge pull request #10070 from kfnta/tool_options
PSA more options in release tool
2 parents 54e1ec6 + 42a9d48 commit 7e7f4f5

File tree

2 files changed

+181
-74
lines changed

2 files changed

+181
-74
lines changed

tools/psa/README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ This document describes the following scripts:
1111

1212
## \_\_init\_\_.py
1313

14-
This file holds common functions dedicated to help SiP with their postbuild logic.
14+
This file holds common functions dedicated to help SiP with their post-build logic.
1515

16-
* find_secure_image - Scans a Resource object to find the correct binary of the secure image to merge with the nonsecure build.
16+
* find_secure_image - Scans a Resource object to find the correct binary of the secure image to merge with the non-secure build.
1717

1818
## Code generation scripts
1919

@@ -22,30 +22,36 @@ Mbed OS holds two implementations of PSA:
2222
* MBED_SPM - Implementation for dual-core v7 targets.
2323
* TF-M - Implementation for v8 targets.
2424

25-
Each implementation requires a set of autogenerated files describing the secure partitions:
25+
Each implementation requires a set of auto-generated files describing the secure partitions:
2626

2727
* `generate_partition_code.py` - Generate files for both implementations.
2828
* `generate_mbed_spm_partition_code.py` - Generate files for MBED_SPM.
2929
* `generate_tfm_partition_code.py` - Generate files for TF-M.
30-
* `mbed_spm_tfm_common.py` - Holds common functions for both.
30+
* `mbed_spm_tfm_common.py` - Holds common functions for both.
3131

3232
## Secure image generation
3333

3434
`release.py` is the script assigned with compiling the secure images:
3535

3636
```
37-
usage: release.py [-h] [-m MCU] [-d] [--commit]
37+
usage: release.py [-h] [-m MCU] [-d] [-q] [-l] [--commit] [--skip-tests]
38+
[-x ...]
3839
3940
optional arguments:
40-
-h, --help show this help message and exit
41-
-m MCU, --mcu MCU build for the given MCU
42-
-d, --debug set build profile to debug
43-
--commit create a git commit for each platform
41+
-h, --help show this help message and exit
42+
-m MCU, --mcu MCU build for the given MCU
43+
-d, --debug set build profile to debug
44+
-q, --quiet No Build log will be printed
45+
-l, --list Print supported PSA secure targets
46+
--commit create a git commit for each platform
47+
--skip-tests skip the test build phase
48+
-x ..., --extra ... additional build parameters
4449
```
4550

4651
* When `MCU ` is not specified, the script compiles all the images for all the targets.
4752
* When `-d/--debug` is not specified, the script compiles the images using the release profile.
4853
* When `--commit` is not specified, the script will not commit the images to git.
54+
* A user can specify additional commands that will be passed on to the build commands (Ex. -D for compilation defines).
4955

5056
This script should be run in following scenarios:
5157

0 commit comments

Comments
 (0)