@@ -11,9 +11,9 @@ This document describes the following scripts:
11
11
12
12
## \_\_ init\_\_ .py
13
13
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.
15
15
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.
17
17
18
18
## Code generation scripts
19
19
@@ -22,30 +22,36 @@ Mbed OS holds two implementations of PSA:
22
22
* MBED_SPM - Implementation for dual-core v7 targets.
23
23
* TF-M - Implementation for v8 targets.
24
24
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:
26
26
27
27
* ` generate_partition_code.py ` - Generate files for both implementations.
28
28
* ` generate_mbed_spm_partition_code.py ` - Generate files for MBED_SPM.
29
29
* ` 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.
31
31
32
32
## Secure image generation
33
33
34
34
` release.py ` is the script assigned with compiling the secure images:
35
35
36
36
```
37
- usage: release.py [-h] [-m MCU] [-d] [--commit]
37
+ usage: release.py [-h] [-m MCU] [-d] [-q] [-l] [--commit] [--skip-tests]
38
+ [-x ...]
38
39
39
40
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
44
49
```
45
50
46
51
* When ` MCU ` is not specified, the script compiles all the images for all the targets.
47
52
* When ` -d/--debug ` is not specified, the script compiles the images using the release profile.
48
53
* 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).
49
55
50
56
This script should be run in following scenarios:
51
57
0 commit comments