From c1510f53dccc1a30db57197b3872278e0ebe9342 Mon Sep 17 00:00:00 2001 From: Louise Mendoza Date: Tue, 8 Dec 2015 20:49:00 -0600 Subject: [PATCH] mingw: Use windows path style when building with MinGW When building with MinGW the base path has to be with the windows style format path. Change-Id: I67c116c424e6ad70cc0e1a4fc1620361eaabbb82 Signed-off-by: Louise Mendoza Signed-off-by: Anas Nashif --- zephyr-env.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zephyr-env.sh b/zephyr-env.sh index 00694665b44..ec24450fe24 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -8,8 +8,10 @@ fi # 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 ) +export ZEPHYR_BASE=$( builtin cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ${MINGW_OPT}) scripts_path=${ZEPHYR_BASE}/scripts echo "${PATH}" | grep -q "${scripts_path}"