forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Introduce a user-local configuration file
Introduce a .cmake file that is included by CMake to support machine-specific configuration without using environment variables (except for ZEPHYR_BASE). User testing is showing that Windows users are running into a myriad of user errors related to environment variables[0]. This PR intends to resolve them by limiting the required use of environment variables to a minimum; just ZEPHYR_BASE. The user errors that will be resolved include: Forgetting to run zephyr-env.cmd when opening a new terminal. Not realizing that the environment variable has not been set on all alive terminals. And finally; not cleaning the build directory that contains a prioritized cached value. The configuration file needs a location and a format. CMake was chosen for the format because it allows complex configuration, such as modal configuration and changing the configuration based on which ZEPHYR_BASE repo is active. The file location was chosen to be outside of the Zephyr repository to avoid accidental git cleaning. [0] zephyrproject-rtos#9578 Signed-off-by: Sebastian Bøe <[email protected]>
- Loading branch information
1 parent
13a2103
commit ba089f6
Showing
7 changed files
with
138 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# set(ZEPHYR_SDK_INSTALL_DIR $ENV{HOME}/zephyr-sdk) | ||
# set(ZEPHYR_TOOLCHAIN_VARIANT zephyr) | ||
|
||
# set_ifndef(BOARD nrf52_pca10040) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.