diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-02-14 14:51:54 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-23 03:12:57 +0000 |
commit | e328bf3ec4768ac170a4b6d5c489f93ab1510074 (patch) | |
tree | 44c3d1a2f6d1924bf8f2c7c66e09424e098d3465 /docs/zephyr | |
parent | 146139588395faa002c5f8dab7f74c0f88ec06cc (diff) | |
download | chrome-ec-e328bf3ec4768ac170a4b6d5c489f93ab1510074.tar.gz |
zmake: Implement zmake build v2
As described in go/zmake-cli-v2
Change zmake build to call zmake configure --build.
Updated docs to stop telling people to run both configure and build as
well as some other small documentation mistakes.
BRANCH=None
BUG=b:217788621
TEST=zmake -j8 build herobrine_npcx9
zmake -j8 build test-drivers
zmake -j8 build herobrine_npcx9 test-drivers
zmake -j8 build --all
zmake -j8 build --coverage herobrine_npcx9
zmake -j8 build --coverage test-drivers
zmake -j8 build --coverage herobrine_npcx9 test-drivers
zmake -j8 build --all --coverage
zmake test build/zephyr/test-drivers/
zmake test --coverage build/zephyr/test-drivers/
zmake -j8 configure --build herobrine_npcx9
zmake -j8 configure --build test-drivers
zmake -j8 configure --build herobrine_npcx9 test-drivers
zmake -j8 configure --build --all
zmake -j8 configure --build --coverage herobrine_npcx9
zmake -j8 configure --build --coverage test-drivers
zmake -j8 configure --build --coverage herobrine_npcx9 test-drivers
zmake -j8 configure --build --all --coverage
zmake -j8 configure --test herobrine_npcx9
zmake -j8 configure --test test-drivers
zmake -j8 configure --test herobrine_npcx9 test-drivers
zmake -j8 configure --test --all
zmake -j8 configure --test --coverage herobrine_npcx9
zmake -j8 configure --test --coverage test-drivers
zmake -j8 configure --test --coverage herobrine_npcx9 test-drivers
zmake -j8 configure --test --all --coverage
Cq-Depend: chromium:3470081
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Iee939b92e39f0787e50234040a8b6b248ba6c831
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3462631
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'docs/zephyr')
-rw-r--r-- | docs/zephyr/zephyr_build.md | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/docs/zephyr/zephyr_build.md b/docs/zephyr/zephyr_build.md index c20d4f25e7..414dfb832b 100644 --- a/docs/zephyr/zephyr_build.md +++ b/docs/zephyr/zephyr_build.md @@ -111,32 +111,26 @@ documentation] to install the Zephyr build tools. You can use `zmake help` to obtain help on how to use zmake. The following is a rough guide. -First configure the build with the project you want: +First configure the build with the project(s) you want: ```bash -zmake configure -B /tmp/z volteer -``` - -Then build with just the target directory: - -``` -zmake build /tmp/z/volteer +zmake build -B /tmp/z volteer ``` The output is in that directory: -* `output/zephyr.bin` - output binary (read-only and read-write packed +* `volteer/output/zephyr.bin` - output binary (read-only and read-write packed together) -* `output/zephyr.ro.elf` - read-only ELF for debugging -* `output/zephyr.rw.elf` - read-write ELF for debugging +* `volteer/output/zephyr.ro.elf` - read-only ELF for debugging +* `volteer/output/zephyr.rw.elf` - read-write ELF for debugging You might also find these files useful (using read-only as an example): -* `build-ro/zephyr/.config` - Kconfig options selected -* `build-ro/zephyr/include/generated/devicetree_unfixed.h` - the (large) +* `volteer/build-ro/zephyr/.config` - Kconfig options selected +* `volteer/build-ro/zephyr/include/generated/devicetree_unfixed.h` - the (large) header file that zephyr uses to provide devicetree information to the C code -* `build-ro/zephyr/zephyr.dts` - devicetree that is used -* `build-ro/zephyr/zephyr.dts` - map of image +* `volteer/build-ro/zephyr/zephyr.dts` - devicetree that is used +* `volteer/build-ro/zephyr/zephyr.dts` - map of image Googlers may be interested in setting up [building with Goma](../goma.md) as well. |