mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
so the correct value can be determinated by Kconfig system automatically Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
0a6f978771
commit
d232823e63
17 changed files with 22 additions and 27 deletions
|
|
@ -148,7 +148,7 @@ endif
|
|||
# Tool related definitions
|
||||
# Compiler
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
|
||||
# Windows-native toolchains
|
||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include}"
|
||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include}" -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include$(DELIM)cxx}"
|
||||
|
|
@ -181,7 +181,7 @@ AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
|||
|
||||
# Linker
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
|
||||
# Windows-native toolchains
|
||||
LDLIBPATH = -L "${shell cygpath -w $(APPDIR)}" -L "${shell cygpath -w $(TOPDIR)$(DELIM)libs}"
|
||||
else
|
||||
|
|
@ -203,7 +203,7 @@ endif
|
|||
# ELF module definitions
|
||||
|
||||
LDELFFLAGS = -r -e _start -Bstatic
|
||||
ifeq ($(WINTOOL),y)
|
||||
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
|
||||
LDELFFLAGS += -T "${shell cygpath -w $(TOPDIR)/scripts/gnu-elf.ld}"
|
||||
else
|
||||
LDELFFLAGS += -T $(TOPDIR)/scripts/gnu-elf.ld
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue