Should "west zephyr-export" be removed from the getting started guide? #61039
-
The getting started guide (https://docs.zephyrproject.org/latest/develop/getting_started/index.html#get-zephyr-and-install-python-dependencies) shows a step to export a cmake package for Zephyr.
If I understand it correctly that may not be needed for the getting started guide since zephyr will be part of the workspace anyway and it may only be needed for freestanding applications. Assuming that's correct (please let me know otherwise), would it make sense to remove that step from the getting started guide to make it simpler for beginners and avoid confusing them with cmake stuff? Or is it really needed for anything else? Just let me know and if it makes sense, I could send a PR to modify the documentation. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@tejlmand FYI |
Beta Was this translation helpful? Give feedback.
-
it is needed, even for getting started. But if using |
Beta Was this translation helpful? Give feedback.
it is needed, even for getting started.
But if using
west
, thenwest
will setZEPHYR_BASE
before invoking CMake, and then build will work, but remember that you may also use plain CMake, in which caseZEPHYR_BASE
is not set in environment and is therefore found from the CMake package registry.