Skip to content

CMake: GCC ARM toolchain script specifies the wrong target variable for linker script and map file paths #13983

Closed
@sa-nloika

Description

@sa-nloika

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions