Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ endfunction()
# Set post build operations
#
function(mbed_set_post_build target)
# The mapfile name includes the top-level target name and the
# The mapfile name includes the top-level target name and the
# executable suffix for all toolchains as CMake hardcodes the name of the
# diagnostic output file for some toolchains.
mbed_configure_memory_map(mbed-core "${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.map")
mbed_configure_memory_map(${target} "${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.map")
mbed_validate_application_profile(${target})
mbed_generate_bin_hex(${target})

Expand Down
2 changes: 1 addition & 1 deletion tools/cmake/toolchains/ARM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ endfunction()
# See https://gitlab.kitware.com/cmake/cmake/-/issues/21538
function(mbed_configure_memory_map target mapfile)
target_link_options(${target}
INTERFACE
PRIVATE
"--map"
"--list=${mapfile}"
)
Expand Down
2 changes: 1 addition & 1 deletion tools/cmake/toolchains/GCC_ARM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ endfunction()
# Add linker flags to generate a mapfile with a given name
function(mbed_configure_memory_map target mapfile)
target_link_options(${target}
INTERFACE
PRIVATE
"-Wl,-Map=${mapfile}"
)
endfunction()