Skip to content

Commit 2bf22ae

Browse files
jmnlcruzAnas Nashif
authored andcommitted
win-build: Fixes an issue supporting quotes
Jira: ZEP-517 Change-Id: Ic63df69e3df83d90343ac5d1f88a1c496a8f6e09 Signed-off-by: Juan Manuel Cruz <[email protected]>
1 parent 78ce02f commit 2bf22ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile.inc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# vim: filetype=make
22
#
33

4-
DQUOTE = "
5-
# "
6-
74
ARCH ?= x86
85

96
UNAME := $(shell uname)
107
ifeq (MINGW, $(findstring MINGW, $(UNAME)))
8+
DQUOTE = '
9+
# '
1110
PROJECT_BASE ?= $(shell sh -c "pwd -W")
1211
else
12+
DQUOTE = "
13+
# "
1314
PROJECT_BASE ?= $(CURDIR)
1415
endif
1516

@@ -64,7 +65,7 @@ endif
6465
export CFLAGS
6566

6667
zephyrmake = +$(MAKE) -C $(ZEPHYR_BASE) O=$(1) \
67-
PROJECT=$(PROJECT_BASE) SOURCE_DIR="$(SOURCE_DIR)" $(2)
68+
PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(DQUOTE)$(SOURCE_DIR)$(DQUOTE) $(2)
6869

6970
BOARDCONFIG = $(O)/.board_$(BOARD)
7071

0 commit comments

Comments
 (0)