mingw: change backslashes to forward slashes
If the path of the SOURCE_DIR has the windows format. We change the backslashes to avoid escaping the characters. Change-Id: I93247ade884374b292cd34176dee81f53796da8a Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
947fb40ef3
commit
4a2ce3c0c9
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ SOURCE_DIR ?= $(PROJECT_BASE)/src/
|
|||
# Kbuild doesn't work correctly if this is an absolute path
|
||||
# FIXME Do not depend on python
|
||||
override SOURCE_DIR := $(shell python -c "import os.path; print(\"%s\" % os.path.relpath(os.path.realpath('$(SOURCE_DIR)'), os.path.realpath('$(ZEPHYR_BASE)')))")/
|
||||
override SOURCE_DIR := $(subst \,/,$(SOURCE_DIR))
|
||||
export SOURCE_DIR
|
||||
|
||||
ifeq ("$(origin V)", "command line")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue