diff options
author | bitpathe <bitpathe@gmail.com> | 2016-05-10 00:12:09 +0200 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-05-16 22:21:01 +0000 |
commit | ae327c60c96e4d5e1f88b8ec86e79de20f72a6fd (patch) | |
tree | c7012d314590a72d43ffabd1794aef43b8cc43ba /Makefile.inc | |
parent | 37c0944d05e642ddf37387ce2b245d108b9106e3 (diff) |
build: Do not depend on python while creating the relative path
Change-Id: I45892371b3d72a681fc0d5c3fdc49af2f0094296
Signed-off-by: Bit Pathe <bitpathe@gmail.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.inc b/Makefile.inc index a91fca713..18115e5c0 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -39,9 +39,9 @@ $(error BOARD is not defined!) endif 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 := $(abspath $(SOURCE_DIR)) +# Kbuild doesn't work correctly if SOURCE_DIR is an absolute path +override SOURCE_DIR := $(subst $(ZEPHYR_BASE),.,$(SOURCE_DIR))/ override SOURCE_DIR := $(subst \,/,$(SOURCE_DIR)) export SOURCE_DIR |