summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorJuan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>2016-08-26 17:24:13 -0500
committerAnas Nashif <nashif@linux.intel.com>2016-09-12 12:28:14 +0000
commit941059c69f9488613775a1a8802a099447cdea4c (patch)
tree89f3e231236474777f77e9faa19e1de0d635d107 /Makefile.inc
parentc7faacf3d62c99c1e7ee1fda27be3e4acb422a55 (diff)
win-build: fixes to build with alternative make implementations
Some make implementations have different implementations for notdir and absdir functions. notdir may require that his parameter do not finish with "\". absdir may fail when given a windows formated path as input. The path that is given to notdir as parameter is removed from the final "\" and abspath is replaced with realpath when the input given can be a windows formated path. Jira: ZEP-762 Change-Id: Ic83e3526fc5234decb3192ab1f9f538addf9a76e Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 39e0f883f..e7de4e46e 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -48,7 +48,7 @@ KERNEL_TYPE ?= micro
override CONF_FILE := $(strip $(subst $(DQUOTE),,$(CONF_FILE)))
SOURCE_DIR ?= $(PROJECT_BASE)/src/
-override SOURCE_DIR := $(abspath $(SOURCE_DIR))
+override SOURCE_DIR := $(realpath $(SOURCE_DIR))
override SOURCE_DIR := $(subst \,/,$(SOURCE_DIR))
override SOURCE_DIR_PARENT := $(patsubst %, %/.., $(SOURCE_DIR))
override SOURCE_DIR_PARENT := $(abspath $(SOURCE_DIR_PARENT))