From b1f851c987e798a782c2fab42f753492b9e8b257 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Sat, 12 Sep 2020 16:18:36 +0100 Subject: [PATCH] boards/xtensa/esp32/esp32-core/scripts/Make.defs: Generate a map file with a cross reference table. Signed-off-by: Abdelatif Guettouche --- boards/xtensa/esp32/esp32-core/scripts/Make.defs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/boards/xtensa/esp32/esp32-core/scripts/Make.defs b/boards/xtensa/esp32/esp32-core/scripts/Make.defs index 72d299476f..b9b94c61a9 100644 --- a/boards/xtensa/esp32/esp32-core/scripts/Make.defs +++ b/boards/xtensa/esp32/esp32-core/scripts/Make.defs @@ -106,6 +106,13 @@ else endif LDFLAGS += -nostartfiles -nodefaultlibs + +ifeq ($(CONFIG_CYGWIN_WINTOOL),y) + LDFLAGS += -Map="${shell cygpath -w $(TOPDIR)/nuttx.map}" --cref +else + LDFLAGS += -Map=$(TOPDIR)/nuttx.map --cref +endif + ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif