Skip to content

Commit 03c0302

Browse files
author
Oren Cohen
committed
Add list option
1 parent aa21d36 commit 03c0302

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

tools/psa/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ Each implementation requires a set of autogenerated files describing the secure
3434
`release.py` is the script assigned with compiling the secure images:
3535

3636
```
37-
usage: release.py [-h] [-m MCU] [-d] [-q] [--commit] [--skip-tests]
37+
usage: release.py [-h] [-m MCU] [-d] [-q] [-l] [--commit] [--skip-tests]
3838
3939
optional arguments:
4040
-h, --help show this help message and exit
4141
-m MCU, --mcu MCU build for the given MCU
4242
-d, --debug set build profile to debug
4343
-q, --quiet No Build log will be printed
44+
-l, --list Print supported PSA secure targets
4445
--commit create a git commit for each platform
4546
--skip-tests skip the test build phase
4647
```

tools/psa/release.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,16 @@ def get_parser():
292292
default=False,
293293
help="No Build log will be printed")
294294

295+
parser.add_argument('-l', '--list',
296+
action="store_true",
297+
default=False,
298+
help="Print supported PSA secure targets")
299+
295300
parser.add_argument("--commit",
296301
help="create a git commit for each platform",
297302
action="store_true",
298303
default=False)
299-
304+
300305
parser.add_argument('--skip-tests',
301306
action="store_true",
302307
default=False,
@@ -328,6 +333,11 @@ def main():
328333
subprocess_output = FNULL
329334
subprocess_err = subprocess.STDOUT
330335

336+
if options.list:
337+
logger.info("Avialable platforms are: {}".format(
338+
', '.join([t for t in _get_psa_secure_targets_list()])))
339+
return
340+
331341
prep_build_dir()
332342
psa_platforms_list = get_mbed_official_psa_release(options.mcu)
333343
logger.info("Building the following platforms: {}".format(

0 commit comments

Comments
 (0)