Skip to content

Commit

Permalink
[microTVM] Zephyr: Fix option name in PROJECT_OPTIONS (#8884)
Browse files Browse the repository at this point in the history
Fix option name for using an extra tarball when creating a new project
directory: it should read 'extra_files_tar', not 'extra_files'.

This commit also removes the implicit C-style string concatenation in
the help strings for options 'nrfjprog_snr' and 'openocd_serial'. It
also adds a period at the end of some help strings, because some are
missing it plus help strings in TVMC use that form.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
  • Loading branch information
gromero authored Sep 7, 2021
1 parent 9b034d7 commit f33b717
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions apps/microtvm/zephyr/template_project/microtvm_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,28 +215,26 @@ def _get_nrf_device_args(options):

PROJECT_OPTIONS = [
server.ProjectOption(
"extra_files",
help="If given, during generate_project, uncompress the tarball at this path into the project dir",
"extra_files_tar",
help="If given, during generate_project, uncompress the tarball at this path into the project dir.",
),
server.ProjectOption(
"gdbserver_port", help=("If given, port number to use when running the local gdbserver")
"gdbserver_port", help=("If given, port number to use when running the local gdbserver.")
),
server.ProjectOption(
"nrfjprog_snr",
help=(
"When used with nRF targets, serial # of the " "attached board to use, from nrfjprog"
),
help=("When used with nRF targets, serial # of the attached board to use, from nrfjprog."),
),
server.ProjectOption(
"openocd_serial",
help=("When used with OpenOCD targets, serial # of the " "attached board to use"),
help=("When used with OpenOCD targets, serial # of the attached board to use."),
),
server.ProjectOption(
"project_type",
help="Type of project to generate.",
choices=tuple(PROJECT_TYPES),
),
server.ProjectOption("verbose", help="Run build with verbose output"),
server.ProjectOption("verbose", help="Run build with verbose output."),
server.ProjectOption(
"west_cmd",
help=(
Expand All @@ -245,7 +243,7 @@ def _get_nrf_device_args(options):
),
),
server.ProjectOption("zephyr_base", help="Path to the zephyr base directory."),
server.ProjectOption("zephyr_board", help="Name of the Zephyr board to build for"),
server.ProjectOption("zephyr_board", help="Name of the Zephyr board to build for."),
]


Expand Down

0 comments on commit f33b717

Please sign in to comment.