Description of defect
The CMake toolchain function mbed_set_toolchain_options() in tools/cmake/toolchains/GCC_ARM.cmake construct the linker script and map file paths using the variable ${APP_TARGET} instead of the function argument ${target}. This can cause improper files outputs if APP_TARGET is not defined.
https://github.com/ARMmbed/mbed-os/blob/master/tools/cmake/toolchains/GCC_ARM.cmake#L22
Target(s) affected by this defect ?
all
Toolchain(s) (name and version) displaying this defect ?
GCC ARM
What version of Mbed-os are you using (tag or sha) ?
33a7e66
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-tools, 4ed041a416e6b8a08eb22ffdfdd2bb111c2f2c84
How is this defect reproduced ?
NA