mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 20:27:47 +00:00
[build] create separate linker map files for each application binary (#1992)
Previously, a global 'map.map' filename was used. However, when building FTD and MTD versions of a given application, the 'map.map' files would overwrite each other. This commit gives different filenames to each .map file for a given binary.
This commit is contained in:
@@ -199,6 +199,11 @@ ot_cli_mtd_SOURCES = \
|
||||
$(SOURCES_COMMON) \
|
||||
$(NULL)
|
||||
|
||||
if OPENTHREAD_ENABLE_LINKER_MAP
|
||||
ot_cli_ftd_LDFLAGS += -Wl,-Map=ot-cli-ftd.map
|
||||
ot_cli_mtd_LDFLAGS += -Wl,-Map=ot-cli-mtd.map
|
||||
endif
|
||||
|
||||
if OPENTHREAD_BUILD_COVERAGE
|
||||
CLEANFILES = $(wildcard *.gcda *.gcno)
|
||||
endif # OPENTHREAD_BUILD_COVERAGE
|
||||
|
||||
Reference in New Issue
Block a user