boards: Replace CONFIG_CYGWIN_WINTOOL with CONVERT_PATH

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-02-20 10:34:50 +08:00
committed by Petro Karashchenko
parent 1d1bdd85a3
commit 163fe4ff0b
113 changed files with 340 additions and 1296 deletions
+4 -13
View File
@@ -21,19 +21,10 @@
include $(TOPDIR)/.config
include $(EXPORTDIR)/Make.defs
ifdef ARCHSCRIPT
# ARCHSCRIPT may contain a leading -T; it must not be followed by a space
# for this to work.
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
LDPATH = $(shell cygpath -u $(patsubst -T%,%,$(ARCHSCRIPT)))
else
LDPATH = $(patsubst -T%,%,$(ARCHSCRIPT))
endif
LDNAME = ${notdir ${LDPATH}}
LDDIR = ${dir ${LDPATH}}
ifneq ($(ARCHSCRIPT),)
LDPATH = $(call CONVERT_PATH,$(ARCHSCRIPT))
LDNAME = ${notdir ${LDPATH}}
LDDIR = ${dir ${LDPATH}}
endif
ARCHSUBDIR = "arch/$(CONFIG_ARCH)/src"