You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/20 13:07:49 UTC

[incubator-nuttx] 09/09: boards/imxrt1060-evk: Generate nuttx.map in the root directory

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit f706f5e0e8cf24cf173d0bff555c29ddde943d07
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Apr 20 10:04:05 2020 +0800

    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 <file>..." 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 <xi...@xiaomi.com>
---
 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 fed7bb4..450e25e 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