Skip to content

Conversation

@marc-hb
Copy link
Contributor

@marc-hb marc-hb commented Apr 8, 2023

  • Change "re-run CMake" to "re-run CMake configuration steps" because west build -v ... displays cmake --build ... every time which can confuse non-experts.

  • Explain what is the actual issue with re-configuring: it makes the incremental builds slower. But not much slower:

   $ west  build -b qemu_x86 samples/hello_world/ -DCONFIG_OUTPUT_STAT=y
   [133/133] Linking C executable zephyr/zephyr.elf
   $ west  build -b qemu_x86 samples/hello_world/ -DCONFIG_OUTPUT_STAT=y
   [16/16] Linking C executable zephyr/zephyr.elf
  • Explain that the best solution is to simply skip to the next section

EDIT: this was found in bug

It was previously discussed (and misunderstood) in:

- Change "re-run CMake" to "re-run CMake configuration steps" because
  `west build -v ...` displays `cmake --build ...` every time which can
  confuse non-experts.

- Explain what is the actual issue with re-configuring: it makes the
  incremental builds slower. But not much slower:

```
   $ west  build -b qemu_x86 samples/hello_world/ -DCONFIG_OUTPUT_STAT=y
   [133/133] Linking C executable zephyr/zephyr.elf
   $ west  build -b qemu_x86 samples/hello_world/ -DCONFIG_OUTPUT_STAT=y
   [16/16] Linking C executable zephyr/zephyr.elf
```

- Explain that the best solution is to simply skip to the next section

Signed-off-by: Marc Herbert <[email protected]>
@carlescufi carlescufi merged commit 087add3 into zephyrproject-rtos:main Apr 12, 2023
@marc-hb marc-hb deleted the docs-cmake-args branch April 12, 2023 18:46
marc-hb added a commit to marc-hb/sof that referenced this pull request Apr 12, 2023
--cmake-args is actually safe, just a bit slower. See explanation in
zephyrproject-rtos/zephyr#56671

Fixes unnecessary restriction added by commit 9fb7a60
("xtensa-build-zephyr.py: fix -C option so it can support whitespace")

Also warn for overlays because they act the same.

Log the `west config` due to the suggestion to use build.cmake-args and
the recent rimage changes in Zephyr PR 54700

Signed-off-by: Marc Herbert <[email protected]>
kv2019i pushed a commit to thesofproject/sof that referenced this pull request Apr 24, 2023
--cmake-args is actually safe, just a bit slower. See explanation in
zephyrproject-rtos/zephyr#56671

Fixes unnecessary restriction added by commit 9fb7a60
("xtensa-build-zephyr.py: fix -C option so it can support whitespace")

Also warn for overlays because they act the same.

Log the `west config` due to the suggestion to use build.cmake-args and
the recent rimage changes in Zephyr PR 54700

Signed-off-by: Marc Herbert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants