Use .zephyrrc for initializing common variables
The file can be used to define variables used by the SDK to avoid having to define them everytime a session is started. The old file names ~/zephyr-env_install.bash will still work but it will warn about the file being renamed. We do not want to break users who have ~/zephyr-env_install.bash in their home and depend on it. Change-Id: I04fcaa76854bda3dcfc1cabe75e00e95c511b10d Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a77c7d819a
commit
3096b54257
3 changed files with 27 additions and 1 deletions
|
@ -20,5 +20,11 @@ unset scripts_path
|
|||
|
||||
# enable custom environment settings
|
||||
zephyr_answer_file=~/zephyr-env_install.bash
|
||||
[ -f ${zephyr_answer_file} ] && . ${zephyr_answer_file}
|
||||
[ -f ${zephyr_answer_file} ] && {
|
||||
echo "Warning: Please rename ~/zephyr-env_install.bash to ~/.zephyrrc";
|
||||
. ${zephyr_answer_file};
|
||||
}
|
||||
unset zephyr_answer_file
|
||||
zephyr_answer_file=~/.zephyrrc
|
||||
[ -f ${zephyr_answer_file} ] && . ${zephyr_answer_file};
|
||||
unset zephyr_answer_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue