mirror of https://github.com/ARMmbed/mbed-os.git
Add list option
parent
aa21d36f51
commit
03c0302850
|
|
@ -34,13 +34,14 @@ Each implementation requires a set of autogenerated files describing the secure
|
||||||
`release.py` is the script assigned with compiling the secure images:
|
`release.py` is the script assigned with compiling the secure images:
|
||||||
|
|
||||||
```
|
```
|
||||||
usage: release.py [-h] [-m MCU] [-d] [-q] [--commit] [--skip-tests]
|
usage: release.py [-h] [-m MCU] [-d] [-q] [-l] [--commit] [--skip-tests]
|
||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
-m MCU, --mcu MCU build for the given MCU
|
-m MCU, --mcu MCU build for the given MCU
|
||||||
-d, --debug set build profile to debug
|
-d, --debug set build profile to debug
|
||||||
-q, --quiet No Build log will be printed
|
-q, --quiet No Build log will be printed
|
||||||
|
-l, --list Print supported PSA secure targets
|
||||||
--commit create a git commit for each platform
|
--commit create a git commit for each platform
|
||||||
--skip-tests skip the test build phase
|
--skip-tests skip the test build phase
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -292,11 +292,16 @@ def get_parser():
|
||||||
default=False,
|
default=False,
|
||||||
help="No Build log will be printed")
|
help="No Build log will be printed")
|
||||||
|
|
||||||
|
parser.add_argument('-l', '--list',
|
||||||
|
action="store_true",
|
||||||
|
default=False,
|
||||||
|
help="Print supported PSA secure targets")
|
||||||
|
|
||||||
parser.add_argument("--commit",
|
parser.add_argument("--commit",
|
||||||
help="create a git commit for each platform",
|
help="create a git commit for each platform",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
default=False)
|
default=False)
|
||||||
|
|
||||||
parser.add_argument('--skip-tests',
|
parser.add_argument('--skip-tests',
|
||||||
action="store_true",
|
action="store_true",
|
||||||
default=False,
|
default=False,
|
||||||
|
|
@ -328,6 +333,11 @@ def main():
|
||||||
subprocess_output = FNULL
|
subprocess_output = FNULL
|
||||||
subprocess_err = subprocess.STDOUT
|
subprocess_err = subprocess.STDOUT
|
||||||
|
|
||||||
|
if options.list:
|
||||||
|
logger.info("Avialable platforms are: {}".format(
|
||||||
|
', '.join([t for t in _get_psa_secure_targets_list()])))
|
||||||
|
return
|
||||||
|
|
||||||
prep_build_dir()
|
prep_build_dir()
|
||||||
psa_platforms_list = get_mbed_official_psa_release(options.mcu)
|
psa_platforms_list = get_mbed_official_psa_release(options.mcu)
|
||||||
logger.info("Building the following platforms: {}".format(
|
logger.info("Building the following platforms: {}".format(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue