diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-10-29 17:52:48 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-01 23:02:53 +0000 |
commit | 5ff00345b91a38a0288b13ac3574a890b4e557e7 (patch) | |
tree | 126659c3d3928796e430a9617184463fea31a0d4 /zephyr/projects/asurada/hayato/BUILD.py | |
parent | a9fe8ed20bce856ded8f251b19c9a0c238b490b1 (diff) | |
download | chrome-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/projects/asurada/hayato/BUILD.py')
-rw-r--r-- | zephyr/projects/asurada/hayato/BUILD.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/projects/asurada/hayato/BUILD.py b/zephyr/projects/asurada/hayato/BUILD.py new file mode 100644 index 0000000000..a8d71628b2 --- /dev/null +++ b/zephyr/projects/asurada/hayato/BUILD.py @@ -0,0 +1,9 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +register_binman_project( + "hayato", + zephyr_board="asurada", + dts_overlays=["battery.dts", "gpio.dts", "motionsense.dts", "pwm.dts"], +) |