Yatharth Kochar | b1c2fe0 | 2015-10-14 15:27:24 +0100 | [diff] [blame] | 1 | # |
Chris Kay | 523e864 | 2023-12-04 12:03:51 +0000 | [diff] [blame] | 2 | # Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved. |
Yatharth Kochar | b1c2fe0 | 2015-10-14 15:27:24 +0100 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Yatharth Kochar | b1c2fe0 | 2015-10-14 15:27:24 +0100 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | BL2U_SOURCES += bl2u/bl2u_main.c \ |
Yatharth Kochar | 18dfb30 | 2016-11-22 11:06:03 +0000 | [diff] [blame] | 8 | bl2u/${ARCH}/bl2u_entrypoint.S \ |
| 9 | plat/common/${ARCH}/platform_up_stack.S |
| 10 | |
| 11 | ifeq (${ARCH},aarch64) |
| 12 | BL2U_SOURCES += common/aarch64/early_exceptions.S |
| 13 | endif |
Yatharth Kochar | b1c2fe0 | 2015-10-14 15:27:24 +0100 | [diff] [blame] | 14 | |
Chris Kay | 68d2836 | 2023-01-16 16:53:45 +0000 | [diff] [blame] | 15 | BL2U_DEFAULT_LINKER_SCRIPT_SOURCE := bl2u/bl2u.ld.S |
Chris Kay | 78dca36 | 2023-01-26 18:31:52 +0000 | [diff] [blame] | 16 | |
Chris Kay | cfba645 | 2023-12-04 09:55:50 +0000 | [diff] [blame] | 17 | ifeq ($($(ARCH)-ld-id),gnu-gcc) |
Chris Kay | 78dca36 | 2023-01-26 18:31:52 +0000 | [diff] [blame] | 18 | BL2U_LDFLAGS += -Wl,--sort-section=alignment |
Chris Kay | cfba645 | 2023-12-04 09:55:50 +0000 | [diff] [blame] | 19 | else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),) |
Chris Kay | 78dca36 | 2023-01-26 18:31:52 +0000 | [diff] [blame] | 20 | BL2U_LDFLAGS += --sort-section=alignment |
| 21 | endif |