zephyr/cmake/linker
Torsten Rasmussen 9c74027a7b cmake: CMake linker script generator pass handling
To prepare for linker script creation with flexible number of linker
passes depending on system configuration then the Zephyr CMake linker
script generator has been updated to use pass names instead of pass
numbers.

This allows greater flexibility as a section can now be active based on
the settings on the pass and not the linking pass index number.

As part of this, the `PASS` processing in `linker_script_common.cmake`
has been adjusted so that it properly handles when a linking pass is
handling multiple settings, such as both `LINKER_APP_SMEM_UNALIGNED`
and `DEVICE_HANDLES_PASS1` in same linking pass.

As the number of linking passes are more flexible, then the PASS
argument in `zephyr_linker_section()` and
`zephyr_linker_section_configure()` has been updated to also support
a `NOT <name>` argument, for example: `PASS NOT LINKER_ZEPHYR_FINAL`.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-11-08 20:45:07 +01:00
..
arcmwdt cmake: update configure_linker_script() to prepend `-D` on defines 2021-11-08 20:45:07 +01:00
armlink cmake: CMake linker script generator pass handling 2021-11-08 20:45:07 +01:00
ld cmake: CMake linker script generator pass handling 2021-11-08 20:45:07 +01:00
lld cmake: update configure_linker_script() to prepend `-D` on defines 2021-11-08 20:45:07 +01:00
linker_flags_template.cmake cmake: toolchain: Toolchain abstraction templates 2020-09-04 20:36:59 +02:00
linker_script_common.cmake cmake: CMake linker script generator pass handling 2021-11-08 20:45:07 +01:00