From f756ac4eac4a8c964f6a8270eabb3f5a24013c84 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 3 Oct 2016 11:34:59 -0700 Subject: [PATCH] CMake: Produce linker .map files for application, basebands. --- firmware/application/CMakeLists.txt | 1 + firmware/baseband/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/firmware/application/CMakeLists.txt b/firmware/application/CMakeLists.txt index 23d617362..d481844fc 100644 --- a/firmware/application/CMakeLists.txt +++ b/firmware/application/CMakeLists.txt @@ -322,6 +322,7 @@ add_definitions(${DEFS}) include_directories(. ${INCDIR}) link_directories(${LLIBDIR}) target_link_libraries(${PROJECT_NAME}.elf ${LIBS}) +target_link_libraries(${PROJECT_NAME}.elf -Wl,-Map=${PROJECT_NAME}.map) add_custom_command( OUTPUT ${PROJECT_NAME}.bin diff --git a/firmware/baseband/CMakeLists.txt b/firmware/baseband/CMakeLists.txt index 2a8b1b536..eade87c16 100644 --- a/firmware/baseband/CMakeLists.txt +++ b/firmware/baseband/CMakeLists.txt @@ -258,6 +258,7 @@ macro(DeclareTargets chunk_tag name) include_directories(. ${INCDIR}) link_directories(${LLIBDIR}) target_link_libraries(${PROJECT_NAME}.elf ${LIBS}) + target_link_libraries(${PROJECT_NAME}.elf -Wl,-Map=${PROJECT_NAME}.map) add_custom_command( OUTPUT ${PROJECT_NAME}.bin ${PROJECT_NAME}.img