From f706f5e0e8cf24cf173d0bff555c29ddde943d07 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 20 Apr 2020 10:04:05 +0800 Subject: [PATCH] boards/imxrt1060-evk: Generate nuttx.map in the root directory to avoid the follow warning: Normalize imxrt1060-evk/nshocram HEAD detached at pull/831/merge Untracked files: (use "git add ..." to include in what will be committed) arch/arm/src/nuttx.map nothing added to commit but untracked files present (use "git add" to track) Signed-off-by: Xiang Xiao --- boards/arm/imxrt/imxrt1060-evk/scripts/Make.defs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/boards/arm/imxrt/imxrt1060-evk/scripts/Make.defs b/boards/arm/imxrt/imxrt1060-evk/scripts/Make.defs index fed7bb4438..450e25e9e2 100644 --- a/boards/arm/imxrt/imxrt1060-evk/scripts/Make.defs +++ b/boards/arm/imxrt/imxrt1060-evk/scripts/Make.defs @@ -115,7 +115,12 @@ LIBEXT = .a EXEEXT = ifneq ($(CROSSDEV),arm-nuttx-elf-) - LDFLAGS += -nostartfiles -nodefaultlibs -Map nuttx.map + LDFLAGS += -nostartfiles -nodefaultlibs +ifeq ($(WINTOOL),y) + LDFLAGS += -Map="${shell cygpath -w $(TOPDIR)/nuttx.map}" +else + LDFLAGS += -Map=$(TOPDIR)/nuttx.map +endif endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g