summaryrefslogtreecommitdiff
path: root/zephyr/zmake/zmake/__main__.py
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-06-23 22:51:54 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-24 17:32:29 +0000
commit46481b71d4d9a7d0f0830794fb84900e8cfd3d7a (patch)
tree33cbb199d82de97a243d95f5186dbf2649034f57 /zephyr/zmake/zmake/__main__.py
parent0250c5d2866b425bf2f808daa82d600ef4694dd2 (diff)
downloadchrome-ec-46481b71d4d9a7d0f0830794fb84900e8cfd3d7a.tar.gz
zmake: Add ability to print compatible zephyr versions
This simple subcommand in zmake prints the compatible Zephyr versions for the project. It will be used in the zephyr ebuild to set the correct zephyr-base and modules directories. BRANCH=none BUG=b:190731415, b:191892353 TEST=zmake print-versions zephyr/projects/volteer/volteer TEST=added unit tests Change-Id: If597035f71cca1e90c9402dbdb0e5e558e1e0892 Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2984298 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/zmake/zmake/__main__.py')
-rw-r--r--zephyr/zmake/zmake/__main__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py
index 942fb1ea0d..45712cc591 100644
--- a/zephyr/zmake/zmake/__main__.py
+++ b/zephyr/zmake/zmake/__main__.py
@@ -85,6 +85,10 @@ def main(argv=None):
sub = parser.add_subparsers(dest='subcommand', help='Subcommand')
sub.required = True
+ print_versions = sub.add_parser('print-versions')
+ print_versions.add_argument('project_dir', type=pathlib.Path,
+ help='Path to the project to build')
+
configure = sub.add_parser('configure')
configure.add_argument(
'--ignore-unsupported-zephyr-version', action='store_true',