mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
boards: Replace CONFIG_CYGWIN_WINTOOL with CONVERT_PATH
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
1d1bdd85a3
commit
163fe4ff0b
+4
-13
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user