From 56e4515086f9d84eee894ff17d8aed39fa151bf2 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Mon, 3 Jun 2024 17:11:09 +0200 Subject: [PATCH] cmake: create linker map by default --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4b4031d..7d2505da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,7 +211,7 @@ function(add_target_common TGTNAME CPU_FAMILY) add_executable(${TGTNAME}_fw ${SOURCE_FILES}) add_dependencies(${TGTNAME}_fw version_h) target_include_directories(${TGTNAME}_fw PRIVATE include/ ${CMAKE_CURRENT_BINARY_DIR}) - target_link_options(${TGTNAME}_fw PRIVATE -T ${CPU_FAMILY}_processed.ld) + target_link_options(${TGTNAME}_fw PRIVATE -T ${CPU_FAMILY}_processed.ld LINKER:-Map=${TGTNAME}_fw.map) make_bin_file(${TGTNAME}_fw) dfu_flash(${TGTNAME}_fw) show_object_size(${TGTNAME}_fw)