summaryrefslogtreecommitdiff
path: root/zephyr/zmake/zmake/__main__.py
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-10-29 17:52:48 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-01 23:02:53 +0000
commit5ff00345b91a38a0288b13ac3574a890b4e557e7 (patch)
tree126659c3d3928796e430a9617184463fea31a0d4 /zephyr/zmake/zmake/__main__.py
parenta9fe8ed20bce856ded8f251b19c9a0c238b490b1 (diff)
downloadchrome-ec-5ff00345b91a38a0288b13ac3574a890b4e557e7.tar.gz
zephyr: zmake: Upgrade to new BUILD.py format
go/zephyr-variants defines a BUILD.py format that replaces zmake.yaml. BUILD.py is inspired by Bazel build definitions, allowing for arbitrary Python code to be used as the config format. This enables defining multiple projects in a single directory, and projects to make program-specific customizations to the config definition functions. The other following changes are of note: - Projects can still be referenced by directory name, but can be referenced by the much shorter project name. For example, both of the following work equivalently: $ zmake configure -b zephyr/projects/volteer/delbin $ zmake configure -b delbin - The default build directory was changed to: build/zephyr/${name} This implements the new format, drops the old YAML+jsonschema, and migrates all our projects to the new format. BUG=b:193815337 BRANCH=none TEST=unit tests TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ib1e53d9abf558063117cc3f86a5d636e69cf77fe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3253969 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/zmake/zmake/__main__.py')
-rw-r--r--zephyr/zmake/zmake/__main__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py
index ea639584cc..ad4a7d96f0 100644
--- a/zephyr/zmake/zmake/__main__.py
+++ b/zephyr/zmake/zmake/__main__.py
@@ -200,7 +200,8 @@ def main(argv=None):
help="Test the .elf file after configuration",
)
configure.add_argument(
- "project_dir", type=pathlib.Path, help="Path to the project to build"
+ "project_name_or_dir",
+ help="Path to the project to build",
)
configure.add_argument(
"-c",