mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/14265/head
parent
d22772342c
commit
8be5da2619
|
|
@ -35,10 +35,11 @@ function(mbed_set_linker_script input_target raw_linker_script_path)
|
|||
set(LinkerScriptTarget ${input_target}LinkerScript)
|
||||
add_custom_target(${LinkerScriptTarget} DEPENDS ${LINKER_SCRIPT_PATH} VERBATIM)
|
||||
add_dependencies(${input_target} ${LinkerScriptTarget})
|
||||
# We hardcore mmemory file to "application"
|
||||
target_link_options(${input_target}
|
||||
INTERFACE
|
||||
"-T" "${LINKER_SCRIPT_PATH}"
|
||||
"-Wl,-Map=${CMAKE_BINARY_DIR}/${APP_TARGET}${CMAKE_EXECUTABLE_SUFFIX}.map"
|
||||
"-Wl,-Map=${CMAKE_BINARY_DIR}/application${CMAKE_EXECUTABLE_SUFFIX}.map"
|
||||
)
|
||||
elseif(MBED_TOOLCHAIN STREQUAL "ARM")
|
||||
target_link_options(${input_target}
|
||||
|
|
|
|||
Loading…
Reference in New Issue