Makefiles: Change ${shell pwd} to $(CURDIR) since pwd doesn't exist on Windows

This commit is contained in:
Xiang Xiao 2019-10-02 07:06:50 -06:00 committed by Gregory Nutt
parent f7229b24fe
commit e73ca15c99
6 changed files with 6 additions and 11 deletions

View File

@ -35,12 +35,7 @@
#
############################################################################
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
APPDIR = ${shell echo %CD%}
else
APPDIR = ${shell pwd}
endif
APPDIR = $(CURDIR)
TOPDIR ?= $(APPDIR)/import
-include $(TOPDIR)/Make.defs
-include $(APPDIR)/Make.defs

View File

@ -55,7 +55,7 @@ LVGL_DIR = .
# Set up build configuration and environment
WD := ${shell pwd | sed -e 's/ /\\ /g'}
WD := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'}
CONFIG_GRAPH_LVGL_URL ?= "https://littlevgl.com/download/"

View File

@ -34,7 +34,7 @@
#############################################################################
WD = ${shell pwd}
WD = $(CURDIR)
TRAVELER = $(WD)/../..
NUTTXDIR = $(WD)/../include

View File

@ -33,7 +33,7 @@
#
############################################################################
BUILDDIR := ${shell pwd | sed -e 's/ /\\ /g'}
BUILDDIR := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'}
-include $(TOPDIR)/Make.defs

View File

@ -39,7 +39,7 @@
# Set up build configuration and environment
WD := ${shell pwd | sed -e 's/ /\\ /g'}
WD := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'}
CONFIG_NETUTILS_CJSON_URL ?= "https://github.com/DaveGamble/cJSON/archive"
CONFIG_NETUTILS_CJSON_VERSION ?= "1.7.10"

View File

@ -39,7 +39,7 @@
# Set up build configuration and environment
WD := ${shell pwd | sed -e 's/ /\\ /g'}
WD := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'}
CONFIG_TESTING_UNITY_URL ?= "https://github.com/ThrowTheSwitch/Unity/archive"
CONFIG_TESTING_UNITY_VERSION ?= "2.4.3"