summaryrefslogtreecommitdiff
path: root/docs/zephyr/zephyr_troubleshooting.md
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2023-04-03 09:17:04 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-03 18:30:56 +0000
commitadbd46d7bcec33270da2bf7f24f0a0fa529d1033 (patch)
tree9e1ed1899b3ce97e6eedb6e03192fb32908906fe /docs/zephyr/zephyr_troubleshooting.md
parentc02695e85c4978a9e58bd812c190dc5bc204e40a (diff)
downloadchrome-ec-adbd46d7bcec33270da2bf7f24f0a0fa529d1033.tar.gz
zmake: use CONFIG_COMPILER_SAVE_TEMPS for save-temps
There's now a dedicated Kconfig option for enabling save-temps, switch the zmake save-temps flag to use that instead of EXTRA_CFLAGS directly. Update the troubleshooting documentation as well while we are at it. BRANCH=none BUG=none TEST=python3 -m zmake build --save-temps rex Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Cq-Depend: chromium:4393983 Change-Id: I04ecf7cee5134da095c5b3656df2c4f7fdad2056 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4393512 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'docs/zephyr/zephyr_troubleshooting.md')
-rw-r--r--docs/zephyr/zephyr_troubleshooting.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/zephyr/zephyr_troubleshooting.md b/docs/zephyr/zephyr_troubleshooting.md
index 552f22eac1..57284bfc79 100644
--- a/docs/zephyr/zephyr_troubleshooting.md
+++ b/docs/zephyr/zephyr_troubleshooting.md
@@ -149,7 +149,13 @@ object files, this is useful to inspect the macro output. To do that use the
`zmake` flag:
```
-zmake build $PROJECT --extra-cflags=-save-temps=obj
+zmake build --save-temps $PROJECT
+```
+
+or for unit tests:
+
+```
+./twister -x=CONFIG_COMPILER_SAVE_TEMPS=y
```
This leaves a bunch of `.i` files in the build/ directory.