Revert "build: Do not depend on python while creating the relative path"
This patch while it fixes a few bugs, introduces other issues, espcially
when building on windows.
This reverts commit ae327c60c9
.
Change-Id: I1ffcd6c88d17f5bd6a66df28d99d2d27c0683930
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
1bcdb48643
commit
b62b810620
1 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@ $(error BOARD is not defined!)
|
|||
endif
|
||||
|
||||
SOURCE_DIR ?= $(PROJECT_BASE)/src/
|
||||
override SOURCE_DIR := $(abspath $(SOURCE_DIR))
|
||||
# Kbuild doesn't work correctly if SOURCE_DIR is an absolute path
|
||||
override SOURCE_DIR := $(subst $(ZEPHYR_BASE),.,$(SOURCE_DIR))/
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue