]> git.baikalelectronics.ru Git - arm-tf.git/commit
build: clarify linker script generation
authorChris Kay <chris.kay@arm.com>
Mon, 16 Jan 2023 16:53:45 +0000 (16:53 +0000)
committerChris Kay <chris.kay@arm.com>
Fri, 10 Feb 2023 17:01:46 +0000 (17:01 +0000)
commit82274936374bf630bf5256370e93a531fdda6372
treed40922c4ed0df403d503efaac3a20f75fc080544
parentf90fe02f061b8a203391e566682221396b656c6f
build: clarify linker script generation

The following build system variables have been renamed:

- `LINKERFILE` -> `DEFAULT_LINKER_SCRIPT`
- `BL_LINKERFILE` -> `DEFAULT_LINKER_SCRIPT_SOURCE`
- `<IMAGE>_LINKERFILE` -> `<IMAGE>_DEFAULT_LINKER_SCRIPT_SOURCE`

These new names better reflect how each variable is used:

1. the default linker script is passed via `-dT` instead of `-T`
2. linker script source files are first preprocessed

Additionally, linker scripts are now placed in the build directory
relative to where they exist in the source directory. For example,
the `bl32/sp_min/sp_min.ld.S` would now preprocess to
`sp_min/sp_min.ld` instead of just `bl32.ld`

BREAKING-CHANGE: The `LINKERFILE`, `BL_LINKERFILE` and
 `<IMAGE_LINKERFILE>` build system variables have been renamed. See the
 commit message for more information.

Change-Id: If8cef65dcb8820e8993736702c8741e97a66e6cc
Signed-off-by: Chris Kay <chris.kay@arm.com>
bl1/bl1.mk
bl2/bl2.mk
bl2u/bl2u.mk
bl31/bl31.mk
bl32/sp_min/sp_min.mk
bl32/tsp/tsp.mk
make_helpers/build_macros.mk
plat/marvell/armada/a8k/common/ble/ble.mk
services/std_svc/rmmd/trp/linker.ld.S [new file with mode: 0644]
services/std_svc/rmmd/trp/linker.lds [deleted file]
services/std_svc/rmmd/trp/trp.mk