8dad8eeffa
MinGW expects to have new program locations added to the end of the PATH variable. Change-Id: Ifd31b63c9ef39a7f2b416ffef39461290c822dd7 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com> Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
25 lines
833 B
Bash
25 lines
833 B
Bash
|
|
if [ "X$(basename -- "$0")" == "Xzephyr-env.sh" ]; then
|
|
echo "Source this file (do NOT execute it!) to set the Zephyr Kernel environment."
|
|
exit
|
|
fi
|
|
|
|
# You can further customize your environment by creating a bash script called
|
|
# zephyr-env_install.bash in your home directory. It will be automatically
|
|
# run (if it exists) by this script.
|
|
|
|
uname | grep -q MINGW && MINGW_OPT="-W"
|
|
|
|
# identify OS source tree root directory
|
|
export ZEPHYR_BASE=$( builtin cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ${MINGW_OPT})
|
|
|
|
scripts_path=${ZEPHYR_BASE}/scripts
|
|
echo "${PATH}" | grep -q "${scripts_path}"
|
|
[ $? != 0 ] && export PATH=${PATH}:${scripts_path}
|
|
unset scripts_path
|
|
|
|
# enable custom environment settings
|
|
zephyr_answer_file=~/zephyr-env_install.bash
|
|
[ -f ${zephyr_answer_file} ] && . ${zephyr_answer_file}
|
|
unset zephyr_answer_file
|