zephyr/cmake/linker/ld
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
..
clang toolchain: improved toolchain abstraction for compilers and linker 2020-09-04 20:36:59 +02:00
gcc toolchain: improved toolchain abstraction for compilers and linker 2020-09-04 20:36:59 +02:00
host-gcc toolchain: improved toolchain abstraction for compilers and linker 2020-09-04 20:36:59 +02:00
ld_script.cmake cmake: linker generator: group symbol from section 2021-09-24 15:13:13 -04:00
linker_flags.cmake toolchain: improved toolchain abstraction for compilers and linker 2020-09-04 20:36:59 +02:00
target.cmake cmake: CMake linker script generator pass handling 2021-11-08 20:45:07 +01:00
target_baremetal.cmake build: Fix native_posix build on GNU GCC 2021-10-05 05:44:32 -04:00
target_base.cmake build: Fix native_posix build on GNU GCC 2021-10-05 05:44:32 -04:00
target_configure.cmake kernel: app_smem: allowing pinning memory partitions 2021-08-26 21:16:22 -04:00
target_cpp.cmake cmake: Use zephyr_link_libraries in toolchain_ld_cpp. 2019-11-07 16:37:50 +01:00
target_relocation.cmake cmake: scripts: supporting gen_relocate_app feature in windows 2021-01-20 11:51:47 +01:00