CMake: Produce linker .map files for application, basebands.

This commit is contained in:
Jared Boone 2016-10-03 11:34:59 -07:00
parent aed58f2a3f
commit f756ac4eac
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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