Skip to content

Commit 8be5da2

Browse files
committed
CMake: hardcode mem map name to "application" for Gcc Arm
We need to fix linker script differently, it should not need APP_TARGET. This is a series of commits fixing APP_TARGET in our tree. We should not require it. The linker script preprocessing will be fixed differently. "application" prefix is temporary until we clean this up completely.
1 parent d227723 commit 8be5da2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/cmake/set_linker_script.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ function(mbed_set_linker_script input_target raw_linker_script_path)
3535
set(LinkerScriptTarget ${input_target}LinkerScript)
3636
add_custom_target(${LinkerScriptTarget} DEPENDS ${LINKER_SCRIPT_PATH} VERBATIM)
3737
add_dependencies(${input_target} ${LinkerScriptTarget})
38+
# We hardcore mmemory file to "application"
3839
target_link_options(${input_target}
3940
INTERFACE
4041
"-T" "${LINKER_SCRIPT_PATH}"
41-
"-Wl,-Map=${CMAKE_BINARY_DIR}/${APP_TARGET}${CMAKE_EXECUTABLE_SUFFIX}.map"
42+
"-Wl,-Map=${CMAKE_BINARY_DIR}/application${CMAKE_EXECUTABLE_SUFFIX}.map"
4243
)
4344
elseif(MBED_TOOLCHAIN STREQUAL "ARM")
4445
target_link_options(${input_target}

0 commit comments

Comments
 (0)