zephyr/cmake/linker/xt-ld
Torsten Rasmussen 9bb0140522 cmake: remove the use of PROPERTY_LINKER_SCRIPT_DEFINES
The support of PROPERTY_LINKER_SCRIPT_DEFINES has been broken since
the transition to CMake in 12f8f76165.

The intention was probably to allow users / projects to adjust
PROPERTY_LINKER_SCRIPT_DEFINES by setting a CMake cache variable.

The implementation tests for the CMake variable (local scope or cache)
PROPERTY_LINKER_SCRIPT_DEFINES, but it never uses such CMake variable.

Instead it uses a CMake global property named
PROPERTY_LINKER_SCRIPT_DEFINES. CMake variables and CMake global
properties are two very different things, and therefore the current
implementation has never worked. The fact that no one has never noticed
this flaw, means that the feature has never been used as intended.

Simplify the code by removing the use of the global CMake property and
instead set the value of the property on the linker script
pre-processing invocation.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-09-04 21:26:59 +02:00
..
linker_flags.cmake llext: xtensa: add support for the xt-clang toolchain 2024-05-29 10:49:40 -07:00
target.cmake cmake: remove the use of PROPERTY_LINKER_SCRIPT_DEFINES 2024-09-04 21:26:59 +02:00
target_base.cmake cmake: remove the use of PROPERTY_LINKER_SCRIPT_DEFINES 2024-09-04 21:26:59 +02:00