Skip to content

Commit

Permalink
cmake: ld: adding common linker script generator
Browse files Browse the repository at this point in the history
Adding intial version of linker_script_common.cmake.

This script parses memory regions, groups, sections, settings, and
symbols defined in the Zephyr CMake build system.

The linker script creates objects for each type above and groups
sections, symbols, and groups together based on their configuration.

This creates a hierarchy which the `<linker>_script.cmake`
implementations can then use during linker script generation.

linker_script_common.cmake also provides stubs for <type>_to_string()
functions which are used when generating the output script.

Each specific `<linker>_script.cmake` must implement those to_string()
functions to create the final linker script.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
  • Loading branch information
tejlmand authored and nashif committed Aug 30, 2021
1 parent 450b9fa commit 02fb26d
Showing 1 changed file with 672 additions and 0 deletions.

0 comments on commit 02fb26d

Please sign in to comment.